Welcome to the Xceed Community | Help
Community Search  
More Search Options

Combobox as filter

Sort Posts: Previous Next
  •  12-25-2010, 4:32 PM Post no. 29535

    Combobox as filter

    Hello,

    I'm trying to change my filter from a regular text box to a combo box selection like the filtering example on the demos section but i cant figure out how to do it...

    Anyone managed to do it and can provide some tips?

    Thanks ;)

    Filed under: , ,
  •  01-03-2011, 2:31 PM Post no. 29554 in reply to 29535

    Re: Combobox as filter

    Hi,

    You need to assign a ComboBoxCellEditor to the CellEditorType property of your column; this will automatically change the corresponding Editor to a ComboBox in the FilterRow.

    <sldg:Column FieldName="CustomerID"

    Title="Customer"

    Width="185"

    CellEditorType="Xceed.Silverlight.DataGrid.ComboBoxCellEditor"

    .../>


    Regards,

    Alain Jreij,

    Web Developer,

    Xceed Software Inc
  •  02-04-2011, 4:05 PM Post no. 29752 in reply to 29554

    Re: Combobox as filter

    Hey Alain,

    Thank you for your help but unfortunately I still can’t get it to work...

    Using the code you provided I indeed got the combo box in my filter row but it came back empty.

    I'm sure i need to set the item source for that combo box somewhere but I can’t find where I set that...

    Thanks for your help once again,

    Johnny.

  •  02-07-2011, 9:07 AM Post no. 29763 in reply to 29752

    Re: Combobox as filter

    Hi Johnny,

    You are right, you need to bind your ComboBox to a data source. Please take a look at the "LocalDataAccess" sample, as it shows exactly how to achieve the binding. You can find it at the folowing location in your local drive:

     C:\Xceed Samples\Xceed DataGrid for Silverlight v1.1\CSharp\LocalDataAccess


    Regards,

    Alain Jreij,

    Web Developer,

    Xceed Software Inc
  •  02-08-2011, 11:33 AM Post no. 29776 in reply to 29763

    Re: Combobox as filter

    Hey Alain,

    Thank you for your tip, i finally figured it out ;)

    Johnny.

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.