GridViewCombobox column

11 posts, 0 answers
  1. Bhavin
    Bhavin avatar
    1 posts
    Member since:
    Dec 2010

    Posted 08 Dec 2010 Link to this post

    Hello all,

    I have designed a Gridview chich has a datasource and contains 2 combobox columns.
    the first combobox column is for Department, ValueMember=ID and DisplayMember = Name.
    The second combobox column is for operations, valuemmember=id and displaymember=operation.

    no what happenes, when the gridview is loaded, the department combobox and operations combobox both are filled with all the values,

    i want to fill the Operations Combobox Column based on the value of the Department combobox column.

    How to achieve this?

    Thanks in Advance.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 09 Dec 2010 Link to this post

    Hello,

    Please take a look at this forum post which describes this scenario and has an example project attached.

    Hope that helps
    Richard
  3. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 10 Dec 2010 Link to this post

    Hello,

    how did this go? If it helped, please remember to mark as answer.
    Thanks
    Richard
  4. Jegan Sivathanu
    Jegan Sivathanu avatar
    3 posts
    Member since:
    Jul 2017

    Posted 07 Jul 2017 Link to this post

    Hi,

    I have three column in my Rad gridview.1st and 2 nd columns are Text box column 3 rd column is GridViewComboBoxColumn.i need to add items in combobox in dynamically based on some condition.for example if the first cell value is "String1" means the combo box items would be three value.if cell value is "string2" means the combo box items values are 4 values.how we can proceed with telerik grid.

    Thanks in advance

     

    Jegan.

     

  5. Hristo
    Admin
    Hristo avatar
    1510 posts

    Posted 07 Jul 2017 Link to this post

    Hello Jegan,

    Thank you for writing.

    You can subscribe to the CellEditorInitialized event and in the handler, bind the RadDropDownListEditor to whatever data source you want to display. Please check the following documentation article: http://docs.telerik.com/devtools/winforms/gridview/editors/handling-editors'-events.

    Additionally, you can check our cascading combo boxes example: http://www.telerik.com/support/kb/winforms/gridview/details/cascading-comboboxes-in-radgridview.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  6. Jegan Sivathanu
    Jegan Sivathanu avatar
    3 posts
    Member since:
    Jul 2017

    Posted 07 Jul 2017 in reply to Hristo Link to this post

    Thank you for your reply Hristo's.hope this helpful!.

    Jegan

     

     

  7. Muhammad Naveed
    Muhammad Naveed avatar
    12 posts
    Member since:
    Jul 2017

    Posted 10 Jul 2017 in reply to Hristo Link to this post

    How can i did this with database?

    Actually i want to populate data from database table in GridViewComboBoxColumn.

    It shows empty GridViewComboBoxColumn.

  8. Hristo
    Admin
    Hristo avatar
    1510 posts

    Posted 10 Jul 2017 Link to this post

    Hello Muhammad,

    Thank you for writing.

    When binding RadGridViewComboBox column it is important to set the ValueMember and DisplayMember properties of the column. They need to be present on your data source object. Detailed information is available here: http://docs.telerik.com/devtools/winforms/gridview/columns/column-types/gridviewcomboboxcolumn.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  9. Muhammad Naveed
    Muhammad Naveed avatar
    12 posts
    Member since:
    Jul 2017

    Posted 11 Jul 2017 in reply to Hristo Link to this post

    I am doing the same process as you defined,

    but combobox shows empty and when i click on it will displayed error as ..

    " An unhandled exception of type 'System.FormatException' occurred in Telerik.WinControls.GridView.dll "

     

  10. Hristo
    Admin
    Hristo avatar
    1510 posts

    Posted 11 Jul 2017 Link to this post

    Hi Muhammad,

    Thank you for writing back.

    We are not aware of a similar issue. You can test with the attached sample project which properly populates the GridViewComboBoxColumn

    In case you keep experiencing issues please open a support ticket and send us your project.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  11. Muhammad Naveed
    Muhammad Naveed avatar
    12 posts
    Member since:
    Jul 2017

    Posted 11 Jul 2017 in reply to Hristo Link to this post

    Thank You @Hristo for providing fast and a meaningful solution which overcomes my problem.
Back to Top