Client-side ItemType property

6 posts, 0 answers
  1. Ali
    Ali avatar
    120 posts
    Member since:
    Jan 2007

    Posted 04 Apr 2008 Link to this post

    Hi,
    How can I access ItemType property at client-side?

    Old Version
    window[grid.id].MasterTableView.Rows[index].ItemType working fine

    Prometheus
    $find(grid.id).get_masterTableView().get_dataItems()[index].ItemType not working

    Ali
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Apr 2008 Link to this post

    Hello Ali,

    In RadGrid "Prometheus" all grid items are from the same type - data item.

    Greetings,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. nick
    nick avatar
    11 posts
    Member since:
    Apr 2007

    Posted 14 May 2008 Link to this post

    So, if the ItemType property has been removed from the Client API, what's the best method to determine if a row is in Edit mode or not, etc?
  5. Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 17 May 2008 Link to this post

    Hello nick,

    Can you please elaborate more on the scenario you are trying to accomplish? Based on that we will be able to suggest the best approach in your case.

    Regards,
    Rosen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. nick
    nick avatar
    11 posts
    Member since:
    Apr 2007

    Posted 17 May 2008 Link to this post

    We have an editable grid on the page, and the user can run actions on the lines being edited.  Before, we would loop through the rows in the grid, and check the ItemType.  If it was being edited we'd take action on the row, otherwise continue looping through the rows to the end...
  7. Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 20 May 2008 Link to this post

    Hello nick,

    In such scenario I suggest you to use a client object such as array in which to hold the edited items indexes. This array can be populated on RadGrid PreRender server-side event for example. Then when needed you can traverse grid's items and check if current item is edited. I have attached a very simple implementation of such approach.

    Sincerely yours,
    Rosen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017