Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
igtbl commands npt working
posted

I'm new to infragistics.  I see lots of examples for the igtbl commands.  Mine are not working.  Do I need to do something special in the grid area to allow access to these functions ?  Below is my code.    The lines marked "does not work" are where I am having trouble:

 

<script id="Infragistics" type="text/javascript">

function UltraWebGrid1_CellClickHandler(gridname, cellid, button){

 

 

//Add code to handle your event here.

alert(gridname);                             works

alert(cellid);                                   works

alert(button);                                 works

 

var grid = igtbl_getGridById('UltraWebGrid1');

alert(cellid);                                   works

 

var cell = igtbl_getCellById(cellID);     does not work  -  nothing happens after this line

alert(cellid);

var row = igtbl_getRowById(cellId);    does not work  -  nothing happens after this line

alert(cellid);

 

 

 

 

 

Parents
No Data
Reply
  • 5389
    posted

    jrmpat654,

     

    There isn't anything special you have to do to enable the igtbl functions to work.  However, when I took at look at the code snippet your provided, I noticed that you are passing in "cellID" or "cellId" into the function.  Javascript is case-sensitive, so if you are trying to pass in the CellClickHandler's "cellid" parameter, it must be the same case, otherwise Javascript thinks it's a different object.  Try using:

    var cell = igtbl_getCellById(cellid);  

    and see if that helps.

Children
No Data