Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
Hi,

I have a RadMaskedTextBox on Page A.aspx, I navigated to some other Page B.aspx with the Id of RadMaskedTextBox of Page A.aspx.
Now I need to get the client side object of RadMaskedTextBox on page B.aspx to manipulate its value.

I can not use
var maskedTextBox = $find("
<%= RadMaskedTestBox1.ClientID %>");
because, the control is not on page B.aspx.
Is there a way to achieve, what I am trying to do..?
Nikolay Rusev
Telerik team
 answered on 25 May 2009
1 answer
99 views
Hello

I am looking at your online demo for the form decorator as found here

http://demos.telerik.com/aspnet-ajax/formdecorator/examples/default/defaultcs.aspx

As you can see on this page when you use teh default skin buttons are displayed in grey with a rollover effect.

I am using the Q3 2008 release and when I use the default skin with the form decorator the button is black with no rollover. If you look at the bottom of this page in the Different Skins section

http://www.telerik.com/products/aspnet-ajax/formdecorator.aspx

where some controls are shown in all the different skins the default button is black.

So using the form decorator and the default skin in the new telerik release, what colour is the button? Black or grey?

I like the default skin as it is and I am hoping it has not changed in the new telerik release. In fact I don't want to upgrade to the new relaase if the default skin has changed since the end of last year.

Thanks
Georgi Tunev
Telerik team
 answered on 25 May 2009
1 answer
134 views
Hi
I am a new user of telerik controls. I have used the RadGrid and implemented some Drag n Drop functionality.
It works fine if use the grid in aspx page but if i put the Grid related codes in an ascx, the Drag n Drop functionality works only for the first time.
I've used the following code to load the usercontrole in an aspx page.

    protected void Page_Load(object sender, EventArgs e)
    {
        ph.Controls.Clear();
        ph.Controls.Add(LoadControl("ProductList.ascx"));
    }

Can anyone help me out on this issue ? It's argent.

Thanks in Advance
Tanvir Raihan.


Yavor
Telerik team
 answered on 25 May 2009
6 answers
227 views
There used to be a sample HelpDesk app that ran in ASP.NET demos section... but it has disappeared, and been replaced with a WebMail app, which is quite different and unsuitable for HelpDesk use.,

Is the old demo still available to run anywhere?

cheers
Steve
Helen
Telerik team
 answered on 25 May 2009
4 answers
208 views
I have several MOSSRadEdtior controls on a MOSS publishing page. How can I get a reference to each instance? Is there a global function that I can pass in the ClientID of the control? I saw a GetRadEditor() function in the client API, but it did not seem defined when I tried to call  it.

Thanks!
Stanimir
Telerik team
 answered on 25 May 2009
1 answer
93 views
Whats the RadAjaxPage used for?
Iana Tsolova
Telerik team
 answered on 25 May 2009
3 answers
140 views
i am trying to load the elevation (ele tag) from a gpx file and display the values on a chart.
 my page takes 12min:12s to load. what is the problem? what i'm making wrong?
here is the file gpx: download 
and the code:
        string MyXmlFile = Server.MapPath(".\\Upload\\") + "Tour_2357.xml"; 
        DataSet ds = new DataSet(); 
        XmlDocument xmlDoc = new XmlDocument(); 
        xmlDoc.Load(MyXmlFile); 
        StringBuilder sb = new StringBuilder(); 
        ArrayList sbx=new ArrayList(); 
        XmlNodeList nodes = xmlDoc.GetElementsByTagName("ele"); 
        for (int i = 0; i < nodes.Count; i++) 
        { 
            sbx.Add(nodes.Item(i).ChildNodes[0].InnerText.ToString()); 
            sb.Append(nodes.Item(i).ChildNodes[0].InnerText); 
            sb.Append(Environment.NewLine); 
        } 
        XmlNodeList nodesX = xmlDoc.GetElementsByTagName("trkpt"); 
        latlbl.Text = nodesX.Item(0).Attributes["lat"].Value.ToString(); 
        lonlbl.Text = nodesX.Item(0).Attributes["lon"].Value.ToString(); 
        latlbl1.Text = nodesX.Item(nodesX.Count-1).Attributes["lat"].Value.ToString(); 
        lonlbl1.Text = nodesX.Item(nodesX.Count-1).Attributes["lon"].Value.ToString(); 
        TextBox1.Text = sb.ToString(); 
        RadChart1.DataSource = sbx.ToArray(); 
        RadChart1.DataBind(); 
        foreach (ChartSeries series in RadChart1.Series) 
        { 
            series.DefaultLabelValue = " "; 
            series.Appearance.PointMark.Visible = true; 
            foreach (ChartSeriesItem item in series.Items) 
            { 
                if (item.YValue > 0) 
                { 
                    item.ActiveRegion.Tooltip = item.YValue.ToString("F") + " m "; 
                } 
                else if (item.YValue == 0) 
                { 
                    item.ActiveRegion.Tooltip = item.YValue.ToString("F") + " m "; 
                } 
                else 
                { 
                    item.ActiveRegion.Tooltip = item.YValue.ToString("F") + " m "; 
                } 
            } 
            series.PlotArea.XAxis.Appearance.MajorGridLines.Visible = false; 
            series.PlotArea.XAxis.Appearance.MinorGridLines.Visible = false; 
            series.Appearance.LabelAppearance.RotationAngle = 45; 
            series.Appearance.LabelAppearance.Distance = 10; 
        } 

please help!

                   thanks anvanced!


Ves
Telerik team
 answered on 25 May 2009
1 answer
126 views
I have a button in my grid that uses a WindowManager to open a RadWindow. In the popup RadWindow I add a new record to a list using some drop downs and textboxes. After I click Add I want the controls to be cleared and the grid below to be refreshed with the new record. I added a RadAjaxManagerProxy to this page and tried to point to those controls to be updated but nothing happens. When I press the refresh on the grid itself then the record shows up but otherwise everything on the popup page remains unchanged. 

How do I get the controls on this page to refresh properly?

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnAdd"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ddlTeacher" /> 
                    <telerik:AjaxUpdatedControl ControlID="ddlSubject" /> 
                    <telerik:AjaxUpdatedControl ControlID="txtStartTime" /> 
                    <telerik:AjaxUpdatedControl ControlID="txtLessonLength" /> 
                    <telerik:AjaxUpdatedControl ControlID="txtComments" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="GridView1" /> 
                    <telerik:AjaxUpdatedControl ControlID="btnAdd" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
        Width="75px"> 
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
    <table> 
        <tr> 
            <td> 
                <asp:Label ID="lblTeacher" runat="server" Text="Teacher:" AssociatedControlID="ddlTeacher"></asp:Label> 
                <telerik:RadComboBox ID="ddlTeacher" runat="server" EnableLoadOnDemand="true" Width="300px" 
                    Height="200px" EnableVirtualScrolling="true" OnItemsRequested="ddlTeacher_ItemsRequested"> 
                </telerik:RadComboBox> 
            </td> 
            <td> 
                <asp:RequiredFieldValidator ID="TeacherRequired" runat="server" ControlToValidate="ddlTeacher" 
                    ErrorMessage="Teacher is required." ToolTip="Teacher is required." ValidationGroup="AddLessonGroup">*</asp:RequiredFieldValidator> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                <asp:Label ID="lblSubject" runat="server" Text="Subject:" AssociatedControlID="ddlSubject"></asp:Label> 
                <telerik:RadComboBox ID="ddlSubject" runat="server" EnableLoadOnDemand="true" Width="300px" 
                    Height="200px" EnableVirtualScrolling="true" OnItemsRequested="ddlSubject_ItemsRequested"> 
                </telerik:RadComboBox> 
            </td> 
            <td> 
                <asp:RequiredFieldValidator ID="SubjectRequired" runat="server" ControlToValidate="ddlSubject" 
                    ErrorMessage="Subject is required." ToolTip="Subject is required." ValidationGroup="AddLessonGroup">*</asp:RequiredFieldValidator> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                <asp:Label ID="lblStartTime" runat="server" Text="Start Time:" AssociatedControlID="txtStartTime"></asp:Label> 
                <telerik:RadDateTimePicker ID="txtStartTime" runat="server" Skin="Default"> 
                </telerik:RadDateTimePicker> 
            </td> 
            <td> 
                <asp:RequiredFieldValidator ID="StartTimeRequired" runat="server" ControlToValidate="txtStartTime" 
                    ErrorMessage="Start Time is required." ToolTip="Start Time is required." ValidationGroup="AddLessonGroup">*</asp:RequiredFieldValidator> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                <asp:Label ID="lblLessonLength" runat="server" Text="Lesson Length:" AssociatedControlID="txtLessonLength"></asp:Label> 
                <telerik:RadNumericTextBox ID="txtLessonLength" runat="server"> 
                </telerik:RadNumericTextBox> 
            </td> 
            <td> 
                <asp:RequiredFieldValidator ID="LessonLengthRequired" runat="server" ControlToValidate="txtLessonLength" 
                    ErrorMessage="Lesson Length is required." ToolTip="Lesson Length is required." 
                    ValidationGroup="AddLessonGroup">*</asp:RequiredFieldValidator> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                <asp:Label ID="lblComments" runat="server" Text="Comments:" AssociatedControlID="txtComments"></asp:Label> 
                <telerik:RadEditor ID="txtComments" runat="server" EditModes="Design" Height="200px" Width="100%"> 
                    <Tools> 
                        <telerik:EditorToolGroup> 
                            <telerik:EditorTool Name="AjaxSpellCheck" /> 
                            <telerik:EditorTool Name="Undo" /> 
                            <telerik:EditorTool Name="Redo" /> 
                            <telerik:EditorTool Name="SelectAll" /> 
                            <telerik:EditorTool Name="Cut" /> 
                            <telerik:EditorTool Name="Copy" /> 
                            <telerik:EditorTool Name="Paste" /> 
                            <telerik:EditorTool Name="FontName" /> 
                            <telerik:EditorTool Name="FontSize" /> 
                            <telerik:EditorTool Name="Bold" /> 
                            <telerik:EditorTool Name="Italic" /> 
                            <telerik:EditorTool Name="Underline" /> 
                            <telerik:EditorTool Name="Subscript" /> 
                            <telerik:EditorTool Name="Superscript" /> 
                            <telerik:EditorTool Name="JustifyCenter" /> 
                            <telerik:EditorTool Name="JustifyFull" /> 
                            <telerik:EditorTool Name="JustifyLeft" /> 
                            <telerik:EditorTool Name="JustifyNone" /> 
                            <telerik:EditorTool Name="JustifyRight" /> 
                        </telerik:EditorToolGroup> 
                    </Tools> 
                    <Content> 
                     
</Content> 
                </telerik:RadEditor> 
            </td> 
            <td> 
            </td> 
        </tr> 
        <tr> 
            <td colspan="2" style="text-align: right;"> 
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="AddLessonGroup" /> 
            </td> 
        </tr> 
        <tr> 
            <td colspan="2" style="text-align: right;"> 
                <asp:Button ID="btnAdd" runat="server" Text="Add Lesson" OnClick="btnAdd_Click" /> 
            </td> 
        </tr> 
    </table> 
    <div class="subHeader"> 
        Current Lessons 
    </div> 
    <telerik:RadGrid ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" 
        AllowMultiRowSelection="true" OnDeleteCommand="GridView1_DeleteCommand" OnNeedDataSource="GridView1_NeedDataSource" 
        OnUpdateCommand="GridView1_UpdateCommand" OnItemCreated="GridView1_ItemCreated" 
        OnPreRender="GridView1_PreRender"> 
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="Lessonid" CommandItemDisplay="Top"> 
            <SortExpressions> 
                <telerik:GridSortExpression FieldName="Starttime" /> 
            </SortExpressions> 
            <Columns> 
                <telerik:GridBoundColumn DataField="Lessonid" DataType="System.Guid" HeaderText="Lessonid" 
                    ReadOnly="True" SortExpression="Lessonid" UniqueName="Lessonid" Visible="False"> 
                </telerik:GridBoundColumn> 
                <telerik:GridEditCommandColumn> 
                </telerik:GridEditCommandColumn> 
                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete" 
                    ConfirmText="Are you sure you want to delete the selected row?"> 
                </telerik:GridButtonColumn> 
                <telerik:GridBoundColumn DataField="Studentname" HeaderText="Student Name" ReadOnly="True" 
                    SortExpression="Studentname" UniqueName="Studentname"> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Studentid" HeaderText="Studentid" ReadOnly="True" 
                    Visible="false" SortExpression="Studentid" UniqueName="Studentid"> 
                </telerik:GridBoundColumn> 
                <telerik:GridDropDownColumn DataField="Teacherid" DataType="System.Guid" HeaderText="Teacher" 
                    SortExpression="Teacherid" UniqueName="Teacherid" DataSourceID="TeacherDataSource1" 
                    ListTextField="Teachername" ListValueField="Teacherid"> 
                </telerik:GridDropDownColumn> 
                <telerik:GridDropDownColumn DataField="Subjectid" DataType="System.Guid" HeaderText="Subject" 
                    SortExpression="Subjectid" UniqueName="Subjectid" DataSourceID="SubjectDataSource1" 
                    ListTextField="Subjectname" ListValueField="Subjectid"> 
                </telerik:GridDropDownColumn> 
                <telerik:GridDateTimeColumn DataField="Starttime" DataType="System.DateTime" HeaderText="Start Time" 
                    SortExpression="Starttime" UniqueName="Starttime" PickerType="DateTimePicker"> 
                </telerik:GridDateTimeColumn> 
                <telerik:GridNumericColumn DataField="Lessonlength" HeaderText="Lesson Length (mins)" 
                    SortExpression="Lessonlength" UniqueName="Lessonlength"> 
                </telerik:GridNumericColumn> 
                <telerik:GridBoundColumn DataField="Status" HeaderText="Lesson Status" ReadOnly="True" 
                    SortExpression="Status" UniqueName="Status"> 
                </telerik:GridBoundColumn> 
                <telerik:GridHTMLEditorColumn DataField="Comments" HeaderText="Comments" SortExpression="Comments" 
                    UniqueName="Comments" Visible="False" ColumnEditorID="commentEditor"> 
                </telerik:GridHTMLEditorColumn> 
            </Columns> 
            <EditFormSettings CaptionFormatString="Edit Lesson Details."> 
                <FormStyle BorderColor="Gray" BorderWidth="2px" BorderStyle="Outset" /> 
                <PopUpSettings ScrollBars="Auto" Modal="True" Width="800px" Height="550px" /> 
                <EditColumn UniqueName="EditCommandColumn1"> 
                </EditColumn> 
            </EditFormSettings> 
            <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
            <CommandItemTemplate> 
                <table width="100%"> 
                    <td style="text-align: right;"> 
                        <asp:LinkButton ID="Refresh" runat="server" CommandName="RebindGrid"> 
                            <asp:Image ID="Image2" Style="border: 0px; vertical-align: middle;" ImageUrl="~/Images/Refresh.gif" 
                                runat="server" /> 
                            Refresh List</asp:LinkButton> 
                    </td> 
                    </tr> 
                </table> 
            </CommandItemTemplate> 
        </MasterTableView> 
    </telerik:RadGrid> 
    <asp:SqlDataSource ID="SubjectDataSource1" runat="server"></asp:SqlDataSource> 
    <asp:SqlDataSource ID="TeacherDataSource1" runat="server"></asp:SqlDataSource> 
</asp:Content> 
 
 

Svetlina Anati
Telerik team
 answered on 25 May 2009
2 answers
83 views
Hi
I need two GridDropDownColumn that one of them is Master column (like country) and other one is Detail column (like city)!!!when index of master change ,detail content change depend on master column too.
how can i implement that?
like this Demo
mohammad
Top achievements
Rank 1
 answered on 25 May 2009
1 answer
113 views
Hello Telerik,

I am currently building an application using a RadAjax, RadMenuToolBar and several usercontrols. the following example describes my problem. I have a RadMenuToolBar with 2 toggle buttons where the buttons have their own group(Group1 and Group2) and 2 UserControls. When I select the first button, then the first usercontrol should be updated. Then when I click the second button, the second usercontrol must be updated, but the first usercontrol must not be updated again. how can I achieve this kind of situation with RadAjaxManager?
I could use asp.net UpdatePanel, by wrapping each usercontrol and the MenuToolBar with updatePanel. and in the RadMenuToolBar's OnButtonClick I called UpdatePanel's Update method based on the clicked button, but I prefer to use RadAjaxManager if it's possible.

below is my current code:
<telerik:RadAjaxManager runat="server" ID="radAjaxManager">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="radToolBar">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="userControl1" /> 
                        <telerik:AjaxUpdatedControl ControlID="userControl2" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
</telerik:RadAjaxManager> 
 
 
<telerik:RadToolBar ID="radToolBar" runat="server" OnButtonClick="RadToolBar_ButtonClick" AutoPostBack="true">  
            <Items> 
                <telerik:RadToolBarButton runat="server" Text="firstButton" CheckOnClick="true" AllowSelfUnCheck="true" 
                    Value="firstButton" Group="Group1" /> 
                <telerik:RadToolBarButton runat="server" Text="secondButton" CheckOnClick="true" AllowSelfUnCheck="true" 
                    Value="secondButton" Group="Group2" /> 
 
<uc1:UserControl1 runat="server" ID="userControl1"/>  
<uc1:UserControl2 runat="server" ID="userControl2"/> 

I'm looking forward to your reply. Thanks in advance.


Cheers,

Thomas
Yavor
Telerik team
 answered on 25 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?