how to include selectall checkbox and selectall funtionality to existing combobox in ext.net 3.0

  1. #1

    how to include selectall checkbox and selectall funtionality to existing combobox in ext.net 3.0

    How Can I Implement A MultiComboBox With SelectAll Checkbox On The Top OF The List Of MultiCombo Checkboxes Items, Which are From Store In Ext.NET 3.0
  2. #2
    Hi dear,
    If you are binding the data from the database through store, just add record as 'select all' to that store.
    else do the following...
    <listeners>
    <BeforeExpand handler="addSelectAll(this);" />
    </listeners>
    <script>
    var addSelectAll=function(control)
    {
           if(control.getStore().getAt(0).get('DataIndexOfValueField')!=0)
          {
                 control.getStore().insertRecord(0,{DataindexofDisaplayField:'Select All',DataIndexOfValueField:0});  
          }
    }
    </script>
    Attached Thumbnails Click image for larger version. 

Name:	mtype.png 
Views:	51 
Size:	15.4 KB 
ID:	24251  
    Last edited by Daniil; Sep 29, 2015 at 7:47 PM. Reason: Please use [CODE] tags
  3. #3
    hi Sateesh,

    I Had used your code, it is showing that BeforeExpand Is Not Supported For This Listener and also if i changed the BeforeExpand To BeforeRender then it is not showing blank page.

    please can you give me some more that works for me.

    thank you

Similar Threads

  1. Replies: 6
    Last Post: Sep 29, 2015, 1:03 PM
  2. [CLOSED] selectAll attribute not work in gridpanel
    By JCarlosF in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Dec 06, 2013, 7:56 AM
  3. [CLOSED] grid.selModel.selectAll()
    By Z in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Aug 28, 2013, 3:40 AM
  4. [CLOSED] SelectionModel.SelectAll() Not Working As Expected
    By garrisrd in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 09, 2011, 8:30 AM
  5. [CLOSED] CheckboxSelectionModel selectAll
    By jwaite in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 23, 2010, 8:04 PM

Posting Permissions