SelectedObject's Element is not available yet in this event.

8 replies. Last post: March 20, 2011 10:51 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Roger ChenMember

two webgrid in one page(grid a and grid b), webgrid a display hierarchical data, when select children table row, refresh webgrid b by client code,  in b_InitializePostBack event,

                    SelectedObject selObj = a.RetrieveClientLastSelectedObject();
                    WebGridRow selRow = (WebGridRow)selObj.GetElement();

this row "WebGridRow selRow = (WebGridRow)selObj.GetElement();" throw a error.

"System.Exception: SelectedObject's Element is not available yet in this event." why?

WebGrid version is 6.0.7200.220.

 

thanks


All times are GMT -5. The time now is 8:43 PM.
Previous Next