CustomRequest on RowSelect for Self Reference grid

6 replies. Last post: November 19, 2009 2:06 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Arun IyerMember

HI,

I have a self referencing grid with 'Load on demand' for loading the child records.

I have a javascript function for OnRowSelect client side event.I am having a SendCustomRequest Call in this function which does a fly postback.The issue is when I click the plus icon of the parent row to get the child this custom request is getting triggered and the childs are not loading ,

Any solution for this to avoid calling 'SendCustomRequest' when I try to expand the parent

?here is my code.

 function wgMessages_OnRowSelect(controlId, tblName, rowIndex, rowEl)
{
 var wgMessages = ISGetObject(controlId);
var selectedObject = wgMessages.GetSelectedObject(); // return object of type SelectedObject	
var selectedRowElement = wgGetRootRow(selectedObject.GetRowElement()); 
 if ((selectedRowElement.type == "Record")                                                                                                                    
{
	wgMessages.SendCustomRequest();
}

}                                                                                                                                                                  
All times are GMT -5. The time now is 4:10 AM.
Previous Next