User Profile & Activity

Roger Chen Member
Page
of 3
 var table = grid.RootTable;
 var column= table.GetElement(WG40.COLHEADER, WG40.HTMLTABLE).childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0]; -- Remove underline code,it can work。
 column.innerText = "Book Code";     

Thank you.

Thank you, Riendy, after used

grid.RootTable.Columns.GetNamedItem("CategoryID").GetElement(WG40.COLHEADER, WG             40.HTMLDIV).parentNode.childNodes[1].innerText = "Book Code";

, but sort function do not work?

 

Thanks

I create a sample project show the issue 2, you can use "create table.sql" file to create table and data. my db name is SampleDB.

when set "wg2" AllowAutoDataCaching = False, issue 1 will happen.

 

thanks.

I found two problems.

1. when i sort webgrid A by click someone column head(expanded child status), it still show error "System.Exception: SelectedObject's Element is not available yet in this event.". I set RestoreRowSelection = All, but still show same error.

2.webgrid A have two rows(a_rows1 and a_rows2), When i expanded a_rows2, select first child row, webgrid B display right(pic1),  When i expand a_rows1, select first child row of the a_rows1, webgrid B still display right, after this operation, i select first child row of a_rows2 again, WebGrid B display error information(pic2). when i select secondly child row of a_rows2,WebGrid B display information corresponding first child row of the a_rows2(pic3), when i select third child row of a_rows2,WebGrid B display information corresponding secondly child row of the a_rows2(pic4), When i shrink a_rows1, then select first(second or third) child row of a_rows2, WebGrid B display right(pic5). i debug the code, when  a_rows1 is expand, get information by  "RetrieveClientLastSelectedObject()" function is not right. is this a bug?

 

thanks

 

Thanks a lot, This't OK!

i found way to get the information by InitializePostBack event using InvokeScript functon to execite client javascript code, thanks!

Posted: February 8, 2010 9:45 PM

Thank you, I make a mistake, so GetCachedDataSource() return is null, now it can work, thanks again

 

Best Regards

Posted: February 8, 2010 9:01 PM

I try to using the snippet code, but GetCachedDataSource() function always return null, (AllowAutoDataCaching=True, AlwaysUseCachedDataOnFirstLoad=False). How can i do?

 

Best Regards

Posted: February 8, 2010 2:28 AM

Thanks a lot, If webgrid in SelfReferencing mode and ColumnFooterAggregateMode="CalculateAllData", how to use CustomAggregate API calculate all data? this example only  calculate the level 1 rows. not all data.

 

Best Regards

 

Posted: December 15, 2009 3:12 AM

I can set EnableCaching = No to avoid this issue now, but the other question "smaple2.aspx file, after add new shelf, then immediately do update or delete operate, then get some error. ". how can i solve this issue. Thanks.

Regards

 

All times are GMT -5. The time now is 10:59 PM.
Previous Next