Click here to Skip to main content
15,901,368 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a multi select radcombobox(it has checkboxes).

the text of radcomboboxitems are very long and when selecting each of the checkboxes ,i want to show the value of radcomboboxitems instead of the text in text of radcombobox.

thancks
Posted

Try this code

XML
<script type="text/javascript">
    function StopPropagation(e) {
        e.cancelBubble = true;
        if (e.stopPropagation) {
            e.stopPropagation();
        }
    }
</script>

                        <div id="QuarterFilterItem">
                            <div class="filter_item">
                                <asp:Label ID="FilterQuarterLabel" runat="server" Text="Select Quarter(s)"></asp:Label>
                                <br />
                                <telerik:RadComboBox ID="FilterQuarterComboBox" Runat="server" Width="100%"
                                    Text=" ">
                                    <Items>
                                    <telerik:RadComboBoxItem Text="Q1" Value="Q1" />
                                    <telerik:RadComboBoxItem Text="Q2" Value="Q2" />
                                    <telerik:RadComboBoxItem Text="Q3" Value="Q3" />
                                    <telerik:RadComboBoxItem Text="Q4" Value="Q4" />
                                    </Items>
                                        <ItemTemplate>
                                            <asp:CheckBox runat="server" ID="CheckBox" onclick="StopPropagation(event);"
                                                 Text=""/> <%# DataBinder.Eval(Container, "Text") %>
                                            </ItemTemplate>
                                </telerik:RadComboBox>
                            </div>
                        </div>
 
Share this answer
 
Why don't you look at their documentation? Here: RadCombobox[^]

I just think, posting such issues about a 3rd party control at telerik Forum would be more useful, here:TELERIK Forum[^]

I had found that specific questions related to 3rd party is answered more quickly and accurately at respective forums.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900