Using RadCombobox to Create Custom Cell Type

Posted by: asurur on 8 September 2017, 3:04 pm EST

  • Posted 8 September 2017, 3:04 pm EST

    I was looking for customCelltype where the control allows to select multiple item like (listbox) and put the selected values as comma separated value. since i didn't get this as part of your builtin control I was trying to use asp.net Server controls(in this case RadCombox or basic asp.net ListBox with selection mode="multiselect").

    I was able to render the control by overloading the  two methods

        public Telerik.Web.UI.RadComboBox cbo = new Telerik.Web.UI.RadComboBox();
        public override Control GetEditorControl(string id, TableCell parent, Appearance style, Inset margin, object value, bool upperLevel)
        {     
            cbo.CheckBoxes = true;
            cbo.DataSource = datasource;
            cbo.DataBind();
            return cbo;
        }
        public override Control PaintCell(string id, TableCell parent, Appearance style, Inset margin, object value, bool upperLevel)
        {
            return cbo;
        }

     

    on postback I am unable to acess the value. any help will be appreciated.

  • Replied 8 September 2017, 3:04 pm EST

    Hello,

    Please have a look at the following forum links that discuss similar kind of issues.

                      http://www.clubfarpoint.com/Forums/forums/thread/86459.aspx

                      http://www.clubfarpoint.com/Forums/forums/thread/82495.aspx

    Hope it will help you. Please let me know if you have any queries further.

    Thanks,

    Manpreet Kaur

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels