Inhalte aufrufen

Profilbild

Dropdown List in Telerik Grid Cell

Dropdown List in Teleric Grid

2 Antworten zu diesem Thema

#1 nitware

nitware

    Member

  • Members
  • 24 Beiträge

Geschrieben: 26 November 2017 - 14:44

Hello Team,

 

I am new to Telerik controls and I have a scenario where I need a dropdown list in a telerik grid cell (on Edit & Insert). I have taken a look at sample implementation in Admin/Product/_CreateOrUpdate.Categories & Admin/Product/_CreateOrUpdate.Attributes, but don't fully understand it. Please use these two examples to teach how it works. Note that this is needed in a plugin I'm currently working on. Thanks in advance.

 

Regards



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3162 Beiträge

Geschrieben: 27 November 2017 - 12:17

Both grids use the same mechanism: if the user clicks Edit the grid row gets in edit mode and client events are published to initialize the control(s).
OnDataBound calls onProductCategoryDataBound to initialize the select2 combo-box with all available categories. OnEdit calls onProductCategoryEdit so that the stored value is always preselected.

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 nitware

nitware

    Member

  • Members
  • 24 Beiträge

Geschrieben: 28 November 2017 - 13:21

Thank you





Auf dieses Thema antworten