Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
146 views
hi,
 i am working with trial version of Rad Controls for Asp.NET AJAX. and migrating from ASP controls.I am supposed to evaluate the needed changes and the telerik controls for future purchasing, but unfortunately i have two problems with the rad menu, I am using rad grid and attaching context menu to it on RowContextMenu  event which is handled by javascript fn.
First problem:
The index is always object
The menu var is always object and an error: "object doesn't support method or property"
Here's my html Code
Thanks in advance

<script language="javascript" >
          function RowContextMenu( index,e)
            {
                  document.getElementById("radGridClickedRowIndex").value = index;
                  var menu = <%= gvBrowseContextMenu.ClientID %>;
                  alert(menu);
alert(index.tostring());

                  menu.Show(e);
               
                e.cancelBubble = true;
                e.returnValue = false;

                if (e.stopPropagation)
                {
                   e.stopPropagation();
                   e.preventDefault();
                }
                this.SelectRow(this.Rows[1].Control, true);
            }
         </script>

<telerik:RadContextMenu ID="gvBrowseContextMenu" runat= "server" IsContext="True" Skin="Outlook"  ExpandDelay="10" OnItemClick="gvBrowseContextMenu_OnItemClick" ContextMenuElementID="none">
                        <CollapseAnimation Duration="200" Type="OutQuint" />
                        <Items>
                            <telerik:RadMenuItem runat="server" Text="Edit">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Delete">
                            </telerik:RadMenuItem>
                        </Items>
                 </telerik:RadContextMenu>
                <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" />
           
                <telerik:RadGrid ID="gvBrowse" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
                    AllowSorting="True" BorderWidth="0px" CellSpacing="1" GridLines="None" Height="217px"
                    MasterTableView-DataKeyNames="InvoiceNumber" OnPageIndexChanged="gvBrowse_PageIndexChanging"
                    OnPreRender="gvBrowse_PreRender" PagerStyle-CssClass="es_grid_pager" ShowStatusBar="True"
                    Skin="Office2007" Width="249%" OnNeedDataSource="gvBrowse_NeedDataSource" ShowGroupPanel="True">
                    <PagerStyle CssClass="es_grid_pager" Mode="NextPrevAndNumeric" />
                    <MasterTableView DataKeyNames="InvoiceNumber">
                        <RowIndicatorColumn Visible="False">
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Resizable="False" Visible="False">
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <EditFormSettings>
                            <PopUpSettings ScrollBars="None" />
                        </EditFormSettings>
                        <Columns>
                            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" />
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True">
                        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                </telerik:RadGrid>
Veselin Vasilev
Telerik team
 answered on 09 Jul 2008
2 answers
154 views
Hello:

I am the senior enterprise architect for Leon County Schools in Florida.  We're working on a product that will be used in all Florida counties. LCS has been an Infragistics enterprise customer, but I'd rather prick myself w/needles than use them.  Their support is horrendous, their controls are bloated, and need a complete rewrite.

Here is my issue:  I have 4 requirements for Telerik controls w/DotNetNuke that I need to show specific examples of Telerik controls working with:

1. Need to have a grid where columns all cells in col/rows 2-n when double-clicked will display a drop-down/combo/type ahead control w/the current item selected, and when clicked, will save the change (if any)
2. Need to convert all cells to display a link, including the value for that cell in the link (ie, a cell contains student-id, and when clicked, opens up an aspx file w/yada.aspx?student_id=xxxxx).
3. For (2 above), Enter key moves the cell selection to the cell below it.
4. I need to be able to show that I can change the cell values in column 3, rows 2-10.

No AJAX is needed yet, no paging, just the above functionality.  If someone at Telerik can show me code that accomplishes the above, I can get approval to replace Infragistics for our internal development--which will end up getting Telerik into all the shops in the state of Florida (Infragistics currently controls this).

I have had trouble even discovering how to access a simple row in Telerik (why don't you people use 'Rows' like everyone else? How hard would it be to change your obfuscated .Masteryada.GetItems() to rows?). Your documentation on 'rows' is severely lacking, IMO, but at least it has no broken images and is clean, unlike Infragistics.

There is a 5th requirement, but it appears you can not do mixed (load 2 columns via a databind, then add 3 columns dynamically) loading--which I would consider a serious flaw normally, but it can be worked around by merging into one stored proc.

It will be interesting to see how quickly we can resolve the above.  I had hoped to do this anonymously, but after 12 hours in your documentation, and searching the web, which all too often yields help for an archaic version of the grid.  I hope I am telegraphing how ANXIOUS I am to be able to replace the Infragistics hold that is on the county school systems in Florida...

You can reach me via email at hocka@mail.leon.k12.fl.us
Shinu
Top achievements
Rank 2
 answered on 09 Jul 2008
1 answer
115 views
I have a page where I want to have the user confirm before unchecking (and thus doing an Ajax call to perform an undo).  I constructed a simple test that illustrates the problem I'm running, which is when the user does a confirm, the AJAX call is cancelled which is correct, but the box is unchecked.  Interestingly checking the box again acts as if the box were still checked and performs the confirm again.  I tried to set node.check() after the set_cancel to no avail.  In checking the forums I did see a post that suggested something was fixed in the latest update, which I downloaded the hotfix and the dll in the bin of the project is showing 2008.1.619.335
Can you provide some enlightenment of what I'm missing?

ASPX (note: this page does use a master page)
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
<script language="javascript" type="text/javascript">  
function confirmuncheck(sender, eventArgs)  
{  
    var node = eventArgs.get_node();  
    if (node.get_checked()==true)  
    {  
        var answer = confirm('Are you sure');  
        if (answer == false)  
        {  
            eventArgs.set_cancel(true);  
            //node.check();  
        }  
    }  
}  
</script> 
 
    <asp:Label ID="lbl" runat="server" ForeColor="Red"></asp:Label> 
    <telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="true" OnNodeCheck="NodeChecked" 
     OnClientNodeChecking="confirmuncheck">  
    </telerik:RadTreeView> 
</asp:Content> 
 

The code behind adds in the nodes.  and the method called for the example very simply shows a message
    protected void NodeChecked(object sender, RadTreeNodeEventArgs NodeEvent)  
    {  
        RadTreeNode node = NodeEvent.Node;  
        if (node.Checked)  
        {  
            lbl.Text += " Perform task ";  
        }  
        else  
        {  
            lbl.Text += " UnDone ";  
        }  
    }  
 
Veselin Vasilev
Telerik team
 answered on 09 Jul 2008
2 answers
97 views
The futures build still hasn't fixed this.

For those of you who don't know what I'm talking about, go to this demo, click on the "show ALERT box" button, then, without clicking on anything else, press <return> repeatedly.

--
Stuart
Dan
Top achievements
Rank 1
 answered on 09 Jul 2008
1 answer
160 views
In my project, I want 20-30 editors on the page at one time. Previously we had been using a different open-source editor but it's a bit clumsy and wanted to start using Telerik's controls instead. We like them, however in the best case, RadEditor takes 0.3 seconds in the rendering stage on the server. That means RadEditor is unusable for our project unless we can come up with a solution.

With the open source editor, the solution was easy because we would just initialize the editor on the client, meaning no server burden at all other than simple script/image downloads.

Is this kind of thing possible with RadEditor? The 0.3 second rendering time is not really a terrible problem if we can at least let users start editing right away and let other editors render in the background.

Any solutions are appreciated -- our current solution is to go back to using the open-source editor.

Thank you!
Tervel
Telerik team
 answered on 09 Jul 2008
0 answers
109 views
I'm using RadAjaxManager in a RadWindow; I need to know how can I update Window title on ajax callback.
10x
Michael
Top achievements
Rank 1
 asked on 09 Jul 2008
3 answers
177 views
Hi ,

        Can i use a datarepeater control under a radgrid tree view? In detail, If i click the '+' sign in tree view ,the child items has to be displayed in a datarepeater control. If so how to implement it? Whether it is a good practice to improve the performance? Please post if there is a solution.


Thanks,
Prakash.
Vlad
Telerik team
 answered on 09 Jul 2008
1 answer
143 views
Hi all,

I ran into a problem with a 3 level grid. I am using a grid as a forum (comments) section. I have the masterview as topic, and detail views for comments and replys. The topic and reply work fine, the details and new windows pop up just like they should. However the comments section isnt working as it should. The first row works for both details and edit however the rows fallowing do not open a window, instead throwing a  JScript error claiming [rowIdex] has no properties. Ive included all of the relivant JS,ASPX and VB for the Grid In hopes that one of you know how to fix what must be a hierachical problem (at least I hope its something easy to fix) I have tried different methods for the last 3 days to solve it with no improvement. Thanks in advance.

Anon

JS/ASPX
 
                <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
 
                    <script type="text/javascript">  
                            
              function InsertNewComment(id, rowIndex)  
            {  
                var grid = $find("<%= RadGridDis.ClientID %>");  
                  
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();  
                grid.get_masterTableView().selectItem(rowControl, true);  
                          
                window.radopen("EditPages/NewComment.aspx?TopicID=" + id, "UserListDialog");  
                return false;  
            }  
           
             function ShowViewComment(id, rowIndex)  
            {  
                var grid = $find("<%= RadGridDis.ClientID %>");  
                  
               var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();  
                grid.get_masterTableView().selectItem(rowControl, true);  
                          
                window.radopen("EditPages/ViewComment.aspx?CommentID=" + id, "UserListDialog");  
                return false;  
            }  
             function InsertNewReply(id, rowIndex)  
            {  
                var grid = $find("<%= RadGridDis.ClientID %>");  
                  
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();  
                grid.get_masterTableView().selectItem(rowControl, true);  
                          
                window.radopen("EditPages/NewReply.aspx?CommentID=" + id, "UserListDialog");  
                return false;  
            }  
               function ShowViewReply(id, rowIndex)  
            {  
                var grid = $find("<%= RadGridDis.ClientID %>");  
                  
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();  
                grid.get_masterTableView().selectItem(rowControl, true);  
                          
                window.radopen("EditPages/ViewReply.aspx?ReplyID=" + id, "UserListDialog");  
                return false;  
            }  
            
            function NewComment()  
            {  
               window.radopen("EditPages/NewComment.aspx", "UserListDialog");  
               return false;  
            }  
              
             
            function refreshGrid(arg)  
            {  
             if(!arg)  
             {  
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");              
                }  
                else  
                {  
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");              
                }  
            }  
         
                    </script> 
 
                </telerik:RadCodeBlock> 
                    <telerik:radwindowmanager id="RadWindowManager1" runat="server" Skin="Vista">  
            <windows> 
                <telerik:RadWindow id="UserListDialog" title="User List Dialog" Height="600px" Width="720px" Runat="server" 
                Left="150px" ReloadOnShow="true" Modal="true" VisibleOnPageLoad="true" Visible="false" /> 
            </windows> 
        </telerik:radwindowmanager> 
                 
                        <telerik:RadGrid ID="RadGridDis" runat="server" Skin="Vista" Width="97%" DataSourceID="SqlDataSource1" 
                            GridLines="None" AutoGenerateColumns="False" AllowPaging="True"   
                            AllowSorting="True" EnableAJAX="True" 
                            PageSize="20" EnableLinqExpressions="False"   
                            OnItemCreated="RadGridDis_ItemCreated" ShowFooter="True" ShowStatusBar="True">  
                            <MasterTableView DataKeyNames="TopicID" DataSourceID="SqlDataSource1" CommandItemDisplay="Top" 
                                Name="Master">  
                                <DetailTables> 
                                    <telerik:GridTableView runat="server" DataSourceID="SqlDataSource2" DataKeyNames="CommentID" 
                                        Name="SubMaster" NoDetailRecordsText="No Comments Posted"   
                                        ClientDataKeyNames="CommentID">  
                                        <DetailTables> 
                                            <telerik:GridTableView runat="server" SortExpression="ReplyID"   
                                                DataKeyNames="ReplyID" DataSourceID="SqlDataSource3" Name="Sub"   
                                                NoDetailRecordsText="No reply posted">  
                                                <ParentTableRelation> 
                                                  
                                                    <telerik:GridRelationFields DetailKeyField="CommentID"  MasterKeyField="CommentID" /> 
                                                </ParentTableRelation> 
                                                <RowIndicatorColumn Visible="False">  
                                                    <HeaderStyle Width="20px" /> 
                                                </RowIndicatorColumn> 
                                                <ExpandCollapseColumn Resizable="False" Visible="False">  
                                                    <HeaderStyle Width="20px" /> 
                                                </ExpandCollapseColumn> 
                                                <Columns> 
                                                    <telerik:GridBoundColumn DataField="Postby" HeaderText="Posted by" SortExpression="Postby" 
                                                    UniqueName="Postby">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="Title" HeaderText="Reply Title" UniqueName="title" SortExpression="Title">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="CreateDate" DataFormatString="{0:d}" HeaderText="Posted on" 
                                                        UniqueName="CreateDate" SortExpression="CreateDate">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">  
                                                        <ItemTemplate> 
                                                            <asp:HyperLink ID="ViewReply" runat="server" ImageUrl="~/images/icons/comment.png" 
                                                                Title="View Reply"></asp:HyperLink> 
                                                        </ItemTemplate> 
                                                    </telerik:GridTemplateColumn> 
                                                </Columns> 
                                                <EditFormSettings> 
                                                    <PopUpSettings ScrollBars="None" /> 
                                                </EditFormSettings> 
                                            </telerik:GridTableView> 
                                        </DetailTables> 
                                        <ParentTableRelation> 
                                            <telerik:GridRelationFields DetailKeyField="TopicID" MasterKeyField="TopicID" /> 
                                        </ParentTableRelation> 
                                        <RowIndicatorColumn Visible="False">  
                                            <HeaderStyle Width="20px" /> 
                                        </RowIndicatorColumn> 
                                        <ExpandCollapseColumn Resizable="False">  
                                            <HeaderStyle Width="20px" /> 
                                        </ExpandCollapseColumn> 
                                        <Columns> 
                                            <telerik:GridBoundColumn HeaderText="Comment Title" UniqueName="title" DataField="Title" SortExpression="Title">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="PostBy" HeaderText="Posted by" UniqueName="Postby" SortExpression="PostBy">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="CreateDate" HeaderText="Date Posted"   
                                                UniqueName="CreateDate" SortExpression="CreateDate" DataFormatString="{0:d}">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridTemplateColumn UniqueName="PriorityComment" HeaderText="">  
                                                <ItemTemplate> 
                                                    <asp:Image ID="PriorityComment" Boarderwidth="0px" runat="server" ImageUrl="~/images/icons/normal.gif" 
                                                        AlternateText="Urgent" Style="float: right;" /> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn UniqueName="TemplateEditColumn1">  
                                                <ItemTemplate> 
                                                    <asp:HyperLink ID="ViewComment1" runat="server" ImageUrl="~/images/icons/comment.png" 
                                                        Title="View Comment"></asp:HyperLink> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">  
                                                <ItemTemplate> 
                                                    <asp:HyperLink ID="NewReply" runat="server" ImageUrl="~/images/icons/reply.png" Title="Post Reply"></asp:HyperLink> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                        <EditFormSettings> 
                                            <PopUpSettings ScrollBars="None" /> 
                                        </EditFormSettings> 
                                    </telerik:GridTableView> 
                                </DetailTables> 
                                <CommandItemTemplate> 
                                    <a href="EditPages/NewTopic.aspx" onclick="return NewTopic();">Add New Topic</a> 
                                </CommandItemTemplate> 
                                <ParentTableRelation> 
                                    <telerik:GridRelationFields DetailKeyField="TopicID" MasterKeyField="TopicID" /> 
                                </ParentTableRelation> 
                                <RowIndicatorColumn Visible="False">  
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn Resizable="False">  
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </ExpandCollapseColumn> 
                                <Columns> 
                                    <telerik:GridBoundColumn DataField="TopicTitle" HeaderText="Topic Title" SortExpression="TopicTitle" 
                                        UniqueName="TopicTitle">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="TopicCreate" HeaderText="Create on" SortExpression="TopicCreate" 
                                        UniqueName="TopicCreate" DataType="System.DateTime"   
                                        DataFormatString="{0:d}">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="TopicCreater" DataType="System.Int32" HeaderText="Posted by" 
                                        SortExpression="TopicCreater" UniqueName="TopicCreater">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">  
                                        <ItemTemplate> 
                                            <asp:HyperLink ID="NewComment" runat="server" ImageUrl="~/images/icons/comment_add.png" 
                                                Title="Add comment"></asp:HyperLink> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                                <EditFormSettings> 
                                    <PopUpSettings ScrollBars="None"></PopUpSettings> 
                                </EditFormSettings> 
                            </MasterTableView> 
                            <ClientSettings> 
                                <Selecting AllowRowSelect="True" /> 
                            </ClientSettings> 
                        </telerik:RadGrid> 
                     
 

VB

Imports System  
Imports System.Data  
Imports System.Configuration  
Imports System.Collections  
Imports System.Web  
Imports System.Web.Security  
Imports System.Web.UI  
Imports System.Web.UI.WebControls  
Imports Telerik.Web.UI  
 
Imports System.Data.SqlClient  
Partial Class Discussion  
    Inherits System.Web.UI.Page  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        If Not IsPostBack Then  
            RadGridDis.SelectedIndexes.Add(1, 0, 1, 0, 1)  
              
        End If  
    End Sub  
 
    Protected Sub RadGridDis_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridDis.ItemDataBound  
        Try  
            If e.Item.OwnerTableView.Name = "SubMaster" Then  
 
 
                If e.Item.ItemType = GridItemType.Item Or e.Item.ItemType = GridItemType.AlternatingItem Then  
                    Dim objRow As DataRowView  
                    objRow = e.Item.DataItem  
                    Dim tmpImage As Image  
 
                    tmpImage = CType(e.Item.FindControl("PriorityComment"), Image)  
                    tmpImage.ImageUrl = "images/icons/" & Trim(objRow("Urgent")) & ".gif" 
 
                End If  
 
            End If  
        Catch ex As Exception  
            Common.createErrorLog(Server.MapPath("Logs/"), "Error ====> " & ex.Message & " Time Occured:" & DateTime.Now & " Page: " & Request.FilePath())  
        End Try  
    End Sub  
    Protected Sub RadGridDis_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)  
 
        Try  
            If e.Item.OwnerTableView.Name = "Master" Then  
                If TypeOf e.Item Is GridDataItem Then  
                    Dim viewLink3 As HyperLink = DirectCast(e.Item.FindControl("NewComment"), HyperLink)  
                    viewLink3.Attributes("href") = "#" 
                    viewLink3.Attributes("onclick") = [String].Format("return InsertNewComment('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("TopicID"), e.Item.ItemIndex)  
 
 
                End If  
 
            End If  
 
            If e.Item.OwnerTableView.Name = "SubMaster" Then  
                If TypeOf e.Item Is GridDataItem Then  
                    Dim viewLink2 As HyperLink = DirectCast(e.Item.FindControl("ViewComment1"), HyperLink)  
                    viewLink2.Attributes("href") = "#" 
                    viewLink2.Attributes("onclick") = [String].Format("return ShowViewComment('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("CommentID"), e.Item.ItemIndex)  
 
 
                End If  
 
            End If  
            If e.Item.OwnerTableView.Name = "SubMaster" Then  
                If TypeOf e.Item Is GridDataItem Then  
                    Dim viewLink2 As HyperLink = DirectCast(e.Item.FindControl("NewReply"), HyperLink)  
                    viewLink2.Attributes("href") = "#" 
                    viewLink2.Attributes("onclick") = [String].Format("return InsertNewReply('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("CommentID"), e.Item.ItemIndex)  
 
 
                End If  
 
            End If  
            If e.Item.OwnerTableView.Name = "Sub" Then  
                If TypeOf e.Item Is GridDataItem Then  
                    Dim viewLink As HyperLink = DirectCast(e.Item.FindControl("ViewReply"), HyperLink)  
                    viewLink.Attributes("href") = "#" 
                    viewLink.Attributes("onclick") = [String].Format("return ShowViewReply('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("ReplyID"), e.Item.ItemIndex)  
                End If  
            End If  
 
        Catch ex As Exception  
            Common.createErrorLog(Server.MapPath("Logs/"), "Error ====> " & ex.Message & " Time Occured:" & DateTime.Now & " Page: " & Request.FilePath())  
        End Try  
    End Sub  
     
End Class 

Thanks again for any help.

Anon
Veli
Telerik team
 answered on 09 Jul 2008
1 answer
120 views

How to use rad ajax to control asp panel visible?

 

In my .master file has these:

      <asp:ScriptManager ID="ScriptManager1" runat="server" />  

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

        </telerik:RadAjaxManager>

 

=====================================================================

 

<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy_BasicInfo" runat="server">

    <AjaxSettings>

        <telerik:AjaxSetting AjaxControlID="rblGroup">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="pnNewIC"></telerik:AjaxUpdatedControl>  

                <telerik:AjaxUpdatedControl ControlID="pnPoliceID"></telerik:AjaxUpdatedControl>   

            </UpdatedControls>

        </telerik:AjaxSetting> 

    </AjaxSettings>

</telerik:RadAjaxManagerProxy>

 

=====================================================================

 

<asp:RadioButtonList ID="rblGroup" runat="server"

    RepeatDirection="Horizontal" AutoPostBack="false">

</asp:RadioButtonList>

<asp:Label ID="lblManField" CssClass="redtext" runat="server"></asp:Label>

<asp:RequiredFieldValidator ID="rfvGroup" runat="server"

     ControlToValidate="rblGroup" Display="Dynamic" ValidationGroup="*"></asp:RequiredFieldValidator>

 

<asp:Panel ID="pnNewIC" runat="server">

                        <tr>    

                            <td><asp:Label ID="lblNewIC" runat="server" meta:resourcekey="lblNewIC"></asp:Label></td>

                            <td>

                               <telerik:RadMaskedTextBox ID="txtNewIC" Mask="######-##-####" MaxLength="14" Runat="server" >

                                </telerik:RadMaskedTextBox>

                                <asp:Label ID="lblManFieldNewIC" CssClass="redtext" runat="server" Visible=false></asp:Label>

                                 <asp:RequiredFieldValidator ID="rfvNewIC" runat="server"

                                     ControlToValidate="txtNewIC" Display="Dynamic" ValidationGroup="*"></asp:RequiredFieldValidator>

                                <asp:RegularExpressionValidator ID="revNewIC" runat="server" Display="Dynamic"

                                    ControlToValidate="txtNewIC" meta:resourcekey="revNewIC" ValidationExpression="^[0-9]\d{5}-\d{2}-\d{4}$"></asp:RegularExpressionValidator>    

                            </td>

                        </tr>

                    </asp:Panel>

                    <asp:Panel ID="pnPoliceID" runat="server" Visible="false">

                        <tr>

                            <td><asp:Label ID="lblPoliceID" runat="server" meta:resourcekey="lblPoliceID"></asp:Label></td>

                            <td>

                                <GS:RequiredInput ID="txtPoliceID" runat="server" />

                            </td>

                        </tr>

                    </asp:Panel>

Vlad
Telerik team
 answered on 09 Jul 2008
7 answers
110 views
When you set the node text (client-side) with the following string "Node (a", you get an error and the tree becomes corrupt.
Atanas Korchev
Telerik team
 answered on 09 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?