How can I provide a
A) Select All(as a label and not as a checkbox) feature to that demo?
I am using the code
Asp .NET Page
<telerik:RadComboBox ID="radBox" runat="server" EmptyMessage="Please Select" HighlightTemplatedItems="True"
AllowCustomText="True" OnClientDropDownClosed="onDropDownClosing"
Skin="Office2007">
<ItemTemplate>
<div onclick="StopPropagation(event)">
<asp:CheckBox runat="server" ID="selectBox" checked="false"
onclick="onBoxClick(this)" Text='<%#DataBinder.Eval(Container,"Text")%>'/>
In Cs File
protected void DataBind(){
//Code Omitted
radBox.DataSource = NameList;
radBox.DataValueField = "Id";
radBox.DataTextField = "Text";
radBox.DataBind();
}
Currently If I add a Select All as my List Item its coming as a Checkbox feature,I need to Select All the items on the first item click (How can I include that feature?) and not get that added as a text when selecting .
B) One more feature I would like to have is to limit the user not to enter any invalid characters in the Select All but keep the Empty Message string?
How can I bring that functionality apart from the one specified over here..(That is disabling the keypress) in http://www.telerik.com/community/forums/aspnet-ajax/combobox/how-can-i-show-a-message-at-the-top-of-combobox-like-choose-an-item.aspx
and here( where the empty client side text wont have the Italic Silver style for Rad Combo box)
http://www.telerik.com/community/forums/aspnet-ajax/combobox/set-radcombobox-to-empty-clientside.aspx
The exact problem I am facing here is :
I have normal drop down checkbox
and the Multiselect checkbox in One page.
When I set the style for Drop down checkbox to be AllowCustomText=true ,the empty message is coming and the user can enter everything in that combo box(One work around being disabling all the keypress in javascript code.Which I dont want, and I dont want a custom validator either.
In this forum I have found a way to set the empty text on load ,But that client code is not working,showing the radComboBox is null,when we try to execute the function