Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
When the field is set to ReadOnly=true the set_value not work!

Enabled cannot use because the user needs access to the field to copy the information.
How do I fix this?
Dimo
Telerik team
 answered on 29 Nov 2010
1 answer
163 views
I've seen the examples showing how to use
AllowAutomaticLoadOnDemand="true" 
for the GridDropDownColumn, but it seems these examples simply do a lazy load of the list and don't allow for auto complete type lookup from the user.

What I am getting at, if they lookup contains 100,000 items, I don't believe there is a way to used the built in load on demand features to allow the user to type a few characters and get back only the items that match their search.

As a work around we've been using a item template with a RadComboBox and the
OnItemsRequested
option used to query the database with the users typed in value as the search parameter.

I am just writing to verify that there is no simpler way to do this with the GridDropDownColumn.
Veli
Telerik team
 answered on 29 Nov 2010
2 answers
176 views
Hi,
I've had a RadnumericTextbox on my page :

<telerik:RadNumericTextBox runat="server" ID="txbOCCCplafond" SkinID="txbEntier" NumberFormat-decimalSeparator=',' MinValue="0" />

As you can see the decimal separator is the comma (french format).

I would like to allow the user to press ',' or '.' (as a result the '.' becomes ',')

For example setting NumberFormat-DecimalSeparator= ',.'

Hope you understand my poor english

Could you help me ?



 

 



 

Anthony
Top achievements
Rank 1
 answered on 29 Nov 2010
3 answers
697 views
I'm relatively new to the Telerik controls, so bear with me.

Working in VS2010, in a Telerik project... styles and CSS seem to wire up no problem, all is working as it should.

Trouble is - it seems like a huge pain to insert a series of inputs and get things to line up.  Meaning, I'd like a two-column layout with the label for the input say 200px, and the input to be 300px.  With padding and whatnot, the overall box would be about 525px.

I think I'm missing something conceptually about how to do this quick.  Right now, I'm dropping in a ASP Panel control, then adding RadTextBoxes.  You can set the width of the overall control (RadTextBox that is), but the width of each input area and each label is different.

What's the best practice way to accomplish a nice looking input form with everything aligned in a couple columns?  I'd rather not use tables, and I've done fieldsets in other projects, and tables too.  I thought the Skins might fix it, but it doesn't appear to assign a width, AND it's using tables for the layout.

I'm sure there's something simple, but I've been combing the how-to's for a couple hours.

<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"
    Skin="Web20" DecorationZoneID="ContentPlaceholder1" />
<h1>
    Search Attendee Records</h1>
<p>
    Enter a value or a partial value in any of the fields below. Your search will return
    all matches or partial matches. For example if you enter "A" for last name, your
    search will return all names beginning with "A".</p>
<asp:Panel ID="Panel1" runat="server" GroupingText="Search Data" Width="450px">
    <telerik:RadTextBox ID="txtRegistrantID" runat="server" Label="RegistrantID" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtLastName" runat="server" Label="Last Name" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtFirstName" runat="server" Label="First Name" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtCompany" runat="server" Label="Company" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtCity" runat="server" Label="City" Width="400px" 
        Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadButton ID="btnSubmit" runat="server" Text="Submit">
    </telerik:RadButton>
</asp:Panel>
Dimo
Telerik team
 answered on 29 Nov 2010
4 answers
210 views
Hi all,

I think the answer to this is no, but, I just wanted to double check, since it's a useful feature that RadGrid has. With RadGrid you can handle the OnNeedDataSource event to do a query to get the list of items for the grid. However, RadComboBox doesn't have this event. I'm wondering if there is an equivalent event, or, why RadComboBox doesn't have that event? Right now, I'm just setting the DataSource in the page's Page_Load event (with !IsPostBack).

I'm using Entity Framework and have been using a mix of EntityDataSources using ESQL as well as some LINQ to Entities code in the code behind files. It would be nice to do the queries in a consistent fasion. Using an EntityDataSource has some benefits, but, so does LINQ, for example, everything is strongly typed and compiler checked.

Jon
Yana
Telerik team
 answered on 29 Nov 2010
2 answers
55 views
I have a radpanelbar  that I use to call a radwindow during an itemclick event. This works as advertised, the problem is that the itemclick event seems to happen again if I cause another postback.

For example, if the user clicks the radpanelbar and fires the itemclick event which opens window1--I then close window1. Now I click on a radtreeview control which causes another postback and for some reason, the radpanelbar itemclick event fires again which opens window1 again even though button1 does not call for window1 to open.

    Private Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeClick
        Dim clickedNode As RadTreeNode = e.Node
        'RadPanelBar1.DataBind()

        If clickedNode.ParentNode.Text = "Other Approvals" Then
            abview1.Visible = True
            abview1.idAgendaBills = clickedNode.Value
            abview1.DataBind()
        Else
            hideControls()
end sub
        End If

Obviously I don't want that to happen. Are there any workarounds to this? Thanks!
PJ Rodriguez
Top achievements
Rank 1
 answered on 29 Nov 2010
4 answers
363 views
I am having a problem with RadMenu staying in a fixed position  on the screen.  The problem seems to plague IE6, and IE7 (I haven't tested IE8).  It does not affect FireFox or Chrome.

Basically, I have a page that uses RadPanes to split the screen into 3 parts (navigation - left side, main screen - right, footer - across the bottom).  Within the main screen I have a table, which contains 2 rows, 1 cell each row.  Top cell contains a RadMenu, and the bottom cell contains a RadTreeView.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <style type="text/css">    
        html, body, form    
        {    
            height: 100%;    
            padding: 0px;    
            margin: 0px;    
        }    
    </style> 
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%" HorizontalAlign="Center"
        <telerik:RadSplitter ID="RadSplitter1" runat="server" HeightOffset="50" Height="100%" Width="100%" LiveResize="true" SplitBarsSize="4px" EnableEmbeddedBaseStylesheet="true" ResizeMode="EndPane"
            <!-- Left web --> 
            <telerik:RadPane ID="RadPane_MainLeft" runat="server" Width="225" Scrolling="Both"
                   Navigation goes here 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar> 
            <!-- Right web --> 
            <telerik:RadPane ID="RadPane_MainRight" runat="server" Scrolling="Y">        
        <asp:Panel runat="server" ID="pnlEdit"
        <p> 
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam nisl lorem, luctus id aliquet ut, luctus ut purus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc in diam lorem, quis rutrum risus. Pellentesque scelerisque orci eget eros luctus posuere. Morbi interdum semper diam non porttitor. Donec in orci sed odio eleifend dictum sed vitae leo. Morbi porttitor, ante et commodo aliquet, magna orci convallis mauris, eu pellentesque elit tortor et nulla. Donec non lacus orci. Vestibulum luctus metus a tellus blandit convallis. Donec suscipit, arcu hendrerit tempus blandit, nisl elit sollicitudin diam, a luctus mi sapien vel mi. Curabitur tempus hendrerit eros vulputate vulputate. Maecenas aliquam ultrices eros, id ornare lectus posuere eu. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus vehicula tempor leo eget facilisis. Suspendisse feugiat bibendum massa id semper. Etiam pellentesque eleifend tellus sed interdum. Maecenas pharetra risus ut velit molestie egestas. Sed vitae lacus mattis eros malesuada dignissim eget at diam. Curabitur sollicitudin lectus a felis gravida blandit. Cras quis augue in est facilisis convallis sit amet at dui. 
        </p> 
            <table width="100%" cellpadding="3" cellspacing="3"><tr><td align="left" valign="top" width="100%"
                <telerik:RadMenu ID="mnuSel" Runat="server"
                    <Items> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem2"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem3"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem4"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem5"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem6"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem7"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                    <Items> 
                                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                        </telerik:RadMenuItem> 
                                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                        </telerik:RadMenuItem> 
                                    </Items> 
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem8"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem9"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                    </Items> 
                    <DefaultGroupSettings RepeatColumns="2" RepeatDirection="Vertical" /> 
                </telerik:RadMenu> 
            </td></tr
            <tr> 
            <td align="left" valign="top" width="100%"><telerik:RadTreeView ID="treeSel" Runat="server"
                <Nodes> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode1"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode2"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode3"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode4"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode5"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode6"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode7"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode8"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode9"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode10"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode11"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode12"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode13"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode14"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode15"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode16"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode17"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode18"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode19"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode20"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode21"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode22"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode23"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode24"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode25"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode26"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode27"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode28"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode29"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode30"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode31"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode32"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode33"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode34"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode35"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode36"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode37"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode38"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode39"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode40"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode41"
                    </telerik:RadTreeNode> 
                </Nodes> 
                </telerik:RadTreeView></td></tr> 
            </table> 
         </asp:Panel> 
            </telerik:RadPane> 
             
        </telerik:RadSplitter> 
         
        <!-- Footer --> 
        <div style="height: 50px; text-align: center; background-color: White;"
             
            Footer goes here 
             
        </div> 
        </telerik:RadAjaxPanel> 
    </div> 
    </form> 
</body> 
</html> 
 

When the page is scrolled, the RadMenu stays fixed and does not move within the screen.  I've also experienced the RadMenu disappearing entirely, if placed at the top of the screen (to see that, remove the "<p>Lorem ipsum...</p>" content from the top of the page in my example above).

I've tried the following, with no success:

1 - set up a style with "position: absolute; z-index: 0;" and attached it to menu only, menu and tree, tree only.  This did not help.
2 - tried setting up a "position: relative;" for each of the items.  This had an even worse effect.

Any help in resolving this is greatly appreciated.  I am attaching 2 screenshots that demonstrate the problem. I'm using the latest version of the Telerik controls.

Thanks,
Alex

T. Tsonev
Telerik team
 answered on 29 Nov 2010
5 answers
350 views
I am trying to enable/disable a raddatepicker control and am unable to do so. I followed the online documentation for the client-side api and when it runs, I get the msg "radAdmitDate" is undefined.

Below is my documented code. What am I doing incorrectly?

html
-------

                                                                                                               <td class="td_AEV">
                                                                                                                                    <asp:CheckBox ID="isAdmitted" runat="server" Text="Patient Admitted" Font-Size="8pt"
                                                                                                                                        onclick="EnableAdmitDate();" />
                                                                                                                                </td>

 

                                                                                                               <td class="td_AEV">
                                                                                                                                    Admit Date:<telerik:RadDatePicker ID="radAdmitDate" runat="server" Font-Size="8pt"
                                                                                                                                        Enabled="false" onblur="CheckForCompletedReqFlds('Chart');">
                                                                                                                                        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"
                                                                                                                                            runat="server">
                                                                                                                                        </Calendar>
                                                                                                                                        <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                                                                                                                        <DateInput ID="DateInput2" DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" runat="server">
                                                                                                                                        </DateInput>
                                                                                                                                    </telerik:RadDatePicker>
                                                                                                                                </td>

 

js
----------

function EnableAdmitDate() {               
                if (document.getElementById("isAdmitted").checked == "1") {
                    var datepicker = <%= radAdmitDate.ClientID %>;
                    datepicker.DateInput.Enable();
                    datepicker.PopupButton.onclick = function()
                                            {
                                                datepicker.TogglePopup();
                                                 return false;
                                            };
                }
                else {
                    var datepicker = <%= radAdmitDate.ClientID %>;
                    datepicker.DateInput.Disable();
                    datepicker.PopupButton.onclick = null;
                }
            }

 

js runtime
---------------

function EnableAdmitDate() {               
                if (document.getElementById("isAdmitted").checked == "1") {
                    var datepicker = radAdmitDate;
                    datepicker.DateInput.Enable();
                    datepicker.PopupButton.onclick = function()
                                            {
                                                datepicker.TogglePopup();
                                                 return false;
                                            };
                }
                else {
                    var datepicker = radAdmitDate;
                    datepicker.DateInput.Disable();
                    datepicker.PopupButton.onclick = null;
                }
            }

Bill
Top achievements
Rank 2
 answered on 29 Nov 2010
1 answer
250 views
Hello Sir,

We use RadComboBox inside RadWindow as the following:

<telerik:RadWindow ID="WinFirms" runat="server" Title="Select Firm" Width="500" Height="200" Behaviors="Move"  VisibleStatusbar="false"
    VisibleOnPageLoad="false" Modal="true" EnableShadow="true" DestroyOnClose="false" Skin="Sunset">
    <ContentTemplate>
    <div style="padding:10px;">
        <div style="float:left; width:10px;">
        Firm:
        </div>
        <div>
            <telerik:RadComboBox runat="server" ID="ddlFirm" Width="100%" MarkFirstMatch="True" CausesValidation="false" HighlightTemplatedItems="true">
                <HeaderTemplate>
                        <table style="width:95%" cellspacing="0" cellpadding="0" class="MultiColumnComboBox">
                            <tr>
                                <td style="width: 50px">DFSA No</td>
                                <td style="width: 100px">Firm Name</td>
                                <td style="width: 50px">Capacity</td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table style="width:100%" cellspacing="0" cellpadding="0" class="MultiColumnComboBox">
                            <tr>
                                <td style="width: 20%; color:Gray;"><%#DataBinder.Eval(Container.DataItem, "DfsaNo")%> </td>
                                <td style="width: 70%"><%#DataBinder.Eval(Container.DataItem, "DName")%></td>
                                <td style="width: 10%; color:Gray;"><%#DataBinder.Eval(Container.DataItem, "Capacity")%></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:RadComboBox>
        </div>
        </div>
        <div style="text-align:center;">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Firm is required" Display="Dynamic" ControlToValidate="ddlFirm"></asp:RequiredFieldValidator>
            <asp:Button runat="server" id="WinOK" OnClientClick="SubmitFirmDialog();return false;" Text="OK" UseSubmitBehavior="False" ValidationGroup="SubmitWindow" CausesValidation="true"/>
            <asp:Button runat="server" id="WinCancel" OnClientClick="Hide();return false;" Text="Cancel" UseSubmitBehavior="False"  />
        </div>
    </ContentTemplate>
</telerik:RadWindow>

We Fill DDL as following

Sub LoadFirmData()
        ddlFirm.DataSource = FirmDetails.GetAfAspRaFirmByVal()
        ddlFirm.DataBind()
End Sub

We set the values inside ItemDataBound even handler after binding it

Protected Sub ddlFirm_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles ddlFirm.ItemDataBound
        e.Item.Text = e.Item.DataItem.DName
        e.Item.Value = e.Item.DataItem.PersonID & "%" & e.Item.DataItem.Capacity
        e.Item.Attributes.Add("FirmID", e.Item.DataItem.PersonID)
        e.Item.Attributes.Add("Capacity", e.Item.DataItem.Capacity)
        e.Item.Attributes.Add("DfsaNo", e.Item.DataItem.DfsaNo)
    End Sub

First page Load the data loads successfully and displayed inside the ComboBox.

 

When a callback happens the ComboBox loads all data as empty as the following HTML:

 

<li class="rcbItem  rcbTemplate">

    <table cellspacing="0" cellpadding="0" class="MultiColumnComboBox" style="width: 100%;">

        <tbody><tr>

            <td style="width: 20%; color: Gray;">&nbsp;</td>

            <td style="width: 70%;"></td>

            <td style="width: 10%; color: Gray;"></td>

        </tr>

    </tbody></table>

</li>

 

At the same time when we assess the list items on client side we get the results of (value + attributes) correctly. But its not displayed in the dropdown.

 

Simon
Telerik team
 answered on 29 Nov 2010
4 answers
136 views

I have a radgrid with one column called ApplicationName.  When I click the "Add New Record" button to add a new record and fill out the textbox, I want to check the textbox to make sure there is not a duplicate ApplicationName in the database.  How do I access the textbox to perform validation on it and what event do I place the code inside.  I thought it would be the ItemCommand evnet but it seems to happen after the insert is completed.

Do you have an example?  I looked at the examples on the website and could not find something to use.
sxd9mm
Top achievements
Rank 1
 answered on 29 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?