User Profile & Activity

Mariusz Kopera Member
Posted: January 20, 2010 6:22 AM

Hi Andi,

    I tried you solution. I found interesting property for Webgrid "NeedHeightResize" on client side and I used it this way :

function WebExplorerPane1_OnAfterCollapse() {
    var oWebGrid = ISGetObject("WebGrid1");
    oWebGrid.NeedHeightResize = true;
}
function WebExplorerPane1_OnAfterExpand() {
    var oWebGrid = ISGetObject("WebGrid1");
    oWebGrid.NeedHeightResize = true;
}

It works fine for empty WebGrid, but unfortunately after executing search and collapsing parameters panel a receive something like this (window_bars.png). This is pobably a bug with WebGrid behaviour.

It could be acceptable solution without problem with bars. Do you know how to solve problem with bars.


Problem with bars appears always when we use WebGrid in WebExplorerPane. It doesn't matter if I tray to resize it or not . 


 Thank you in advance.

Regards,

Mariusz

Posted: September 3, 2009 6:19 AM

Glenn,

Thanks again. 

Your first and second solution works fine.  

I know that there is cache collection like I mentioned in my first post . I considered to use your second solution to go through entire cache collection and find this cache keys that containt specific key (e.g. "CacheKey"). But this is some kind prosthesis. I am still waiting for answer about CacheKeyDependency or could you please admit that "CacheKeyDependency" doesn't work properly and I should find diffrent way to solve my problem. My next question to someone from support team is "Will it be fixed?".


Regards,

Mariusz



Posted: September 3, 2009 4:46 AM

Glenn, 

Thank you for you answer, but it isn't so simple. I presented simplest case in my solution. My real scenerio must have posibility to invalidate some cache from different page. Clearing cache suggested by you works only if I am on this page now and ISDataSource1 exists. I am trying to use CacheKeyDependency as it was designed by Microsoft. MSDN cachekeydependency

In ma scenario


I create cache in global.ascx

            Cache.Insert("CacheKey",DateTime.Now);

then I configure cache for table on Page1.aspx  attachement1.png. ISDataSource1 CacheKeyDependency is set to "CacheKey"

After that I'm going to Page2.aspx  and changing  cache under "CacheKey"

 Cache.Insert("CacheKey",DateTime.Now); <- Here we have new date than previous one.

Table cache on Page1.aspx should invalidate by itself on first load this page.





Regards,

Mariusz



All times are GMT -5. The time now is 7:00 AM.
Previous Next