Access CommandItem Toolbar on client side

2 posts, 0 answers
  1. ColinBowern
    ColinBowern avatar
    51 posts
    Member since:
    Aug 2012

    Posted 16 Jun 2009 Link to this post

    I am looking to create a script to toggle the enable/disable flag of a few toolbar items when they are/aren't selected.  I keep getting null back from get_masterTableView - it looks correct to me though - am I missing something?

    function Grid1_OnRowSelected(sender, eventArgs) 
        var MasterTable = sender.get_masterTableView(); 
        var selectedRows = MasterTable.get_selectedItems(); 
        var gridToolbar = GetRegisteredServerElement("Grid1Toolbar"); 
        if (selectedRows.get_Count() > 0) 
            // Enable copy/move command items 
            // Disable copy/move command items 

  2. Veli
    Veli avatar
    2002 posts

    Posted 18 Jun 2009 Link to this post

    Hello colinbo,

    It really looks correct. Can you post a little more information on how do you initialize your RadGrid, attach your client-side OnRowselected event and find your CommandItem controls.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top