Skip to content

Infragistics Community Forum / Cross Platform / Ultimate UI for Xamarin / Uncaught ReferenceError: igtbl_getGridById is not defined

Uncaught ReferenceError: igtbl_getGridById is not defined

New Discussion
Chinzy Ranasinghe
Chinzy Ranasinghe asked on Oct 14, 2015 8:27 AM

I have upgraded my infragistics version to 20150.1 for an application,

now screens are coming up but they have used  var grid = igtbl_getGridById(strGridName); now im getting the javascript error Uncaught ReferenceError: igtbl_getGridById is not defined always, will anyone be able to assist me on this?

Thank you in advance !!

Sign In to post a reply

Replies

  • 0
    Hristo Anastasov
    Hristo Anastasov answered on Oct 13, 2015 7:51 AM

    Hi Chinzy,

    this is how you take reference to the old UltraWebGrid. If you have migrated your UltraWebGrid to WebDataGrid then you should use:

     var grid = ig_controls.strGridName;

    Please let me know if you have further questions on the matter.

    • 0
      Chinzy Ranasinghe
      Chinzy Ranasinghe answered on Oct 13, 2015 11:35 PM

      Hi Hristo,


      Thank you for your quick reply and yes it did take off the issue,

      but it still says undifined to the grid element, 

      one more small issue i have is on igtbl_getLength or igtbl_getRowById, has they been updated as well,

      is there a reference I can find on this? as I was unable to find any ? any suggestions?

      Thank you in advance.

      • 0
        Hristo Anastasov
        Hristo Anastasov answered on Oct 14, 2015 8:27 AM

        Hi Chinzy,

        Unfortunately there is no reference for this so I suggest that you use the browsers developer tools intelisense options. So here is what you can use:

        igtbl_getRowById:

        row = grid.get_rows().get_rowFromKey(dataKey);

        row = grid.get_rows().get_row(index);


        igtbl_getLength:

        row = grid.get_rows().get_length()

        If ig_controls.gridId returns undefined you can send me a sample so that I can investigate it for you. It should return reference to the grid if the id is the same. Looking forward to hearing from you.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Chinzy Ranasinghe
Favorites
0
Replies
3
Created On
Oct 14, 2015
Last Post
10 years, 11 months ago

Suggested Discussions

Created by

Created on

Oct 14, 2015 8:27 AM

Last activity on

Feb 19, 2026 9:00 PM