[CLOSED] Dynamic checkboxselectionmodel direct event

  1. #1

    [CLOSED] Dynamic checkboxselectionmodel direct event

    In dynamic checkboxSelectionModel creation direct event not getting fired.
    From grid when select the checkbox following error occurs
    -> checkBox1 is not found

    
    RowSelectionModel chksRowSelect = null;
    chksRowSelect = new CheckboxSelectionModel { CheckOnly = true, ID = "checkBox1" };
    chksRowSelect.Mode = SelectionMode.Multi;
    chksRowSelect.DirectEvents.Select.ShowWarningOnFailure = false;
    chksRowSelect.DirectEvents.Select.Event += new ComponentDirectEvent.DirectEventHandler(GetSelectedOrder);
    
    
     protected void GetSelectedOrder(object sender, DirectEventArgs e)
        {
            try
            {
                string strJSON = e.ExtraParams["SelectedOrder"];
                string strindex = e.ExtraParams["SelectedOrderIndex"];
                string currentPageIndex = e.ExtraParams["CurrentPageIndex"];            
            }
            catch (Exception)
            {
     
            }
        }
    Last edited by Daniil; Jun 24, 2014 at 3:13 PM. Reason: [CLOSED]
  2. #2
    Hi @speedstepmem4,

    It probably means that you don't recreate the CheckboxSelectionModel on each request, therefore Ext.NET cannot find it.

    A DirectEvent requires a control on server.

Similar Threads

  1. [CLOSED] Dynamic header column component direct event Issue
    By legaldiscovery in forum 1.x Premium Help
    Replies: 4
    Last Post: Dec 21, 2015, 11:56 PM
  2. Replies: 0
    Last Post: Nov 08, 2012, 10:48 AM
  3. Replies: 1
    Last Post: Nov 08, 2012, 1:45 AM
  4. Replies: 8
    Last Post: Sep 10, 2012, 7:38 AM
  5. Replies: 3
    Last Post: Apr 20, 2010, 1:21 PM

Posting Permissions