Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
I have a radgrid in which one of the column is being filtered with a drop down list. I want the grid to be already filtered by one of the values in the dropdown the first time it loads, just as it would have after firing filter command through filter menu or selecting drop down. How can it be done? Pls advice.
Daniel
Telerik team
 answered on 30 Jan 2009
2 answers
87 views
I want to maintain a theme in this web application to pop up every error message to the user in a dialog.  Whether it is an information dialog or an error dialog.

Are there any examples anyone can point to on this site?

Thanks
Reid
Top achievements
Rank 2
 answered on 30 Jan 2009
9 answers
617 views
Is there a way to get a loading panel to show when a window is opened. I have a window that displays a radgrid when opened. It can take a few seconds to load the grid. When it is first opened it is fine, but on subsequent loads it is confusing because it shows the results of the previous load until the grid update completes. So the grid they initially see is incorrect. 
WebGeek
Top achievements
Rank 1
 answered on 30 Jan 2009
1 answer
56 views
Hello,

How do I customize the required field validators in the schedulerdefaultform?
 
I do not want the textboxes with the red border and the text missing warning icon.  I would like to make it consistent with the rest of the pages.

Thanks.
Krishna
Top achievements
Rank 2
 answered on 30 Jan 2009
3 answers
155 views
The title says it all.

I have a RadTreeView and a RadPanel on the same page.  What I would like to do is whenever a node is clicked on the treeview, an async request is made to the server and the panel's textboxes and such are populated with data.  I would also like to keep the same panel opened between nodes.  For instance if, my user clicks on panel 2, then clicks on another node, I would like panel two to remain opened, just the data populated.  I want the first panel open at pageLoad, but as just mentioned, once the user opens another panel, I want that panel to remain open.

When I set a panel to Expanded="true" none of the controls show up.  When I click a node, the panel seems to clear all child controls completely.  However, if I click on another panel, then back on the previous panel, the controls reappear.  For example, if I have the first panel open ("Details") and change nodes, all of the "Details" panel contents have dissappeared.  But, if I click on the "Page Content" panel, then back on the "Details" panel, the controls with the updated data are there again.

Why is the panel's contents disappearing?

Here's my source:
    <telerik:RadAjaxManager ID="AjaxManager1" runat="server" ClientEvents-OnResponseEnd="setDimensions">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="pagesRTV">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="infoPanel" /> 
                    <telerik:AjaxUpdatedControl ControlID="pathHF" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="moveUpBtn">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pagesRTV" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="moveDownBtn">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pagesRTV" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="parentDDL">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pagesRTV" /> 
                    <telerik:AjaxUpdatedControl ControlID="infoPanel" /> 
                    <telerik:AjaxUpdatedControl ControlID="pathHF" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
<table id="pageTable" cellpadding="0" cellspacing="0" width="100%" style="margin-top:10px;">  
    <tr> 
        <td valign="top" align="left" style="width:200px;background:#ffffff;border:1px solid #000;">  
            <div id="pageDiv" style="width:200px;overflow:scroll;">  
                <telerik:RadTreeView ID="pagesRTV" RegClient="true" runat="server" Skin="Vista" OnClientNodeExpanding="setDimensions" OnClientNodeClicked="EnableToolBar" OnNodeClick="pagesRTV_NodeClick" CausesValidation="false" /> 
            </div> 
        </td> 
        <td valign="top" align="left" style="padding-left:20px;">  
            <asp:Panel ID="infoPanel" runat="server">  
    <telerik:RadPanelBar ID="RadPanelBar1" RegClient="true" runat="server" Skin="Elevate" EnableEmbeddedSkins="false" ExpandMode="FullExpandedItem" Width="98%" > 
        <Items> 
            <telerik:RadPanelItem Text="Details" Expanded="true">  
                <Items> 
                    <telerik:RadPanelItem> 
                        <ItemTemplate> 
                    <table cellpadding="0" cellspacing="0" class="subcontentTable" style="margin-top:13px;">  
                        <tr> 
                            <td valign="bottom" align="left" style="width:105px;">Page Title:</td> 
                            <td valign="top" align="left"><asp:TextBox ID="pageTitleTB" runat="server" Width="250" /> <href="#" id="pageTitleTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip3" Width="150" AutoCloseDelay="10800" TargetControlID="pageTitleTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="BottomLeft" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        Page title shown in the upper right browser window. This may be a description of the page and could contain keywords.  
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:3px;">Page Name:</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:TextBox ID="pageNameTB" runat="server" Width="250" /> <href="#" id="pageNameTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip1" Width="150" AutoCloseDelay="10800" TargetControlID="pageNameTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="BottomLeft" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        The page name will be displayed in the menu viewable to your visitors. This is usually only a few, brief words.  
                                    </div> 
                                </telerik:RadToolTip> 
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="pageNameTB" Display="Static"><strong> * Required.</strong></asp:RequiredFieldValidator> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:3px;">Parent Page:</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:DropDownList ID="parentDDL" runat="server" Width="256" OnSelectedIndexChanged="parentDDL_SelectedIndexChanged" AutoPostBack="true" ></asp:DropDownList> <href="#" id="parentTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip10" Width="150" AutoCloseDelay="10800" TargetControlID="parentTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="BottomLeft" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        You may set this page as a subpage of another by choosing a parent page that has already been created.  
                                    </div> 
                                </telerik:RadToolTip> 
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="pageNameTB" Display="Static"><strong> * Required.</strong></asp:RequiredFieldValidator> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="2" style="height:10px;">&nbsp;</td> 
                        </tr> 
                        <tr> 
                            <td colspan="2" style="height:25px;background:#eaeaea;font-size:16px;font-weight:bold;">META Data</td> 
                        </tr> 
                        <tr> 
                            <td valign="top" align="left" style="padding-top:6px;">Description:</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:TextBox ID="metaDescTB" runat="server" TextMode="MultiLine" Columns="46" Rows="7" style="font-family:Arial, Sans-Serif;font-size:11px;" /> <href="#" id="metaDescTip" style="margin-top:2px;margin-left:5px;vertical-align:top;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip2" Width="200" AutoCloseDelay="10800" TargetControlID="metaDescTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="BottomLeft" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        The META description will be viewable only to search engines.  The description should be a brief (less than 1024 characters) overview of the page's contents and should contain your page's keywords.  
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:6px;">Keywords:</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:TextBox ID="metaKeywordsTB" runat="server" Width="250" /> <href="#" id="metaKeywordsTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip4" Width="250" AutoCloseDelay="10800" TargetControlID="metaKeywordsTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="TopLeft" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        META keywords (or keyphrases) are viewable only to search engines. These words/phrases should be specific to your page's content and each phrase should be separated by a comma. For best results do not exceed 7-10 phrases per page.  
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:6px;">ROBOTS Instruction:</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:DropDownList ID="robotsDDL" runat="server"><asp:ListItem>INDEX,FOLLOW</asp:ListItem><asp:ListItem>INDEX,NOFOLLOW</asp:ListItem><asp:ListItem>NOINDEX,FOLLOW</asp:ListItem><asp:ListItem>NOINDEX,NOFOLLOW</asp:ListItem></asp:DropDownList> <href="#" id="robotsTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip5" Width="250" AutoCloseDelay="10800" TargetControlID="robotsTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="TopCenter" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        The ROBOTS META tag instructs search engine crawlers how to index and follow the links of your page. For most purposes, "INDEX,FOLLOW" should be used.   
                                        <br /><br /> 
                                        <strong>CAUTION: DO NOT CHANGE THIS SETTING UNLESS YOU ARE FAMILIAR WITH ITS FUNCTION.</strong> 
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="2" style="height:10px;">&nbsp;</td> 
                        </tr> 
                        <tr> 
                            <td colspan="2" style="height:25px;background:#eaeaea;font-size:16px;font-weight:bold;">Display Options</td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:6px;">Show In Menu?</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:CheckBox ID="menuCB" runat="server" /> <href="#" id="menuTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip6" Width="200" AutoCloseDelay="10800" TargetControlID="menuTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="TopRight" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        Check this box if you wish for the page to be displayed in the menu of your website. This setting is useful if you create landing pages for advertising or private pages for clients that you wouldn't want viewable by everyone.  
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:6px;">Publish Page?</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:CheckBox ID="publishCB" runat="server" /> <href="#" id="publishTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip7" Width="250" AutoCloseDelay="10800" TargetControlID="publishTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="TopRight" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        Check this box if you are ready for your page to be viewable. If this box is not checked, then the page will not be available for viewing by anyone.  Also, if this page is not yet published, then it will <strong>not</strong> be listed in the menu even if the above box is checked.   
                                        <br /><br /> 
                                        This setting is useful if you are still working on a specific page; if the page is seasonal or used for marketing campaigns and those campaigns are not currently running; or, if you no longer want the page part of your website, but wish to not delete the page's contents from the system.  
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:6px;">Blog?</td> 
                            <td valign="top" align="left" style="padding-top:3px;"><asp:CheckBox ID="blogCB" runat="server" Enabled="false" /> <href="#" id="blogTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip8" Width="150" AutoCloseDelay="10800" TargetControlID="blogTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="TopRight" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        Is this page the source of a blog?  Once the page has been created, you cannot change this setting.  
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td colspan="2" style="height:10px;">&nbsp;</td> 
                        </tr> 
                        <tr> 
                            <td colspan="2" style="height:25px;background:#eaeaea;font-size:16px;font-weight:bold;">Page Order</td> 
                        </tr> 
                        <tr> 
                            <td valign="bottom" align="left" style="padding-top:6px;">Adjust Page Order:</td> 
                            <td valign="top" align="left" style="padding-top:3px;">  
                                <asp:ImageButton ID="moveUpBtn" runat="server" ImageUrl="/images/commands/move_up.png" ToolTip="Move Up" OnClick="moveUpBtn_Clicked" CausesValidation="false" /><asp:ImageButton ID="moveDownBtn" runat="server" ImageUrl="/images/commands/move_down.png" ToolTip="Move Down" OnClick="moveDownBtn_Clicked" CausesValidation="false" /> <href="#" id="orderTip" style="margin-top:2px;margin-left:5px;"><img src="/images/commands/info.png" /></a>  
                                <telerik:RadToolTip runat="server" ID="RadToolTip9" Width="150" AutoCloseDelay="10800" TargetControlID="orderTip" IsClientID="true" OffsetY="4" HideEvent="Default" Animation="Fade" Position="TopRight" RelativeTo="Element" Skin="Vista">  
                                    <div style="font-size:12px;padding:5px;">  
                                        Adjust the order this page is listed in the menu system.  
                                    </div> 
                                </telerik:RadToolTip> 
                            </td> 
                        </tr> 
                    </table> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem Text="Page Content">  
                <Items> 
                    <telerik:RadPanelItem> 
                        <ItemTemplate> 
                        Page Content  
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
    </telerik:RadPanelBar> 
            </asp:Panel> 
            <script type="text/javascript">  
                Sys.WebForms.PageRequestManager.getInstance().add_pageLoading(ajaxLoading);  
                  
                function ajaxLoading(sender, args) {  
                    var dataItems = args.get_dataItems();  
                    document.getElementById(webPathHF).value = dataItems[webPathHF];  
                }  
                  
            </script> 
 

Joshua
Top achievements
Rank 1
 answered on 30 Jan 2009
1 answer
104 views
Are there ways to grab the RadSliderItem on the client. 

I can get the value of the slider and use eventargs to get the value of the item, but don't see in the documentation any methods that allow me to work with the items directly.

Future release? Or am I missing something?

thanks
cbospikes
Top achievements
Rank 1
 answered on 30 Jan 2009
1 answer
86 views
Pretty sure I've followed every step but I've got two issues with the section on updating a label from a calendar click:

1) The ajax panel isn't working, I'm getting a full-page postback. I checked to make sure the calendar and label are contained inside the panel.

2) AjaxManager updates the label nicely, no postback, but when I click an arrow to change the month, the month doesn't change. I do get a quick refresh of the label...oddly, with a shorter delay than the 200ms when I click a day.

Georgi Krustev
Telerik team
 answered on 30 Jan 2009
1 answer
67 views
Hi,
What is the best way to bind a detailtable with the same record as the master?

    <telerik:radgrid  
        ID="radGridBusinessRegister"  
        runat="server"  
        allowpaging="True"  
        allowsorting="True"  
        gridlines="None"  
        onneeddatasource="radGridBusinessRegisterNeedDataSource" 
        OnDetailTableDataBind="radGridBusinessRegisterDetailTableDataBind" 
        Skin="SkyBlue" 
        ShowGroupPanel="false" 
        AutoGenerateColumns="false"
        <MasterTableView  
            DataKeyNames="ID"  
            Name="Master"
            <Columns> 
                <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Namn" /> 
                <telerik:GridBoundColumn UniqueName="Phone1" DataField="Phone1" HeaderText="Telefon" /> 
                <telerik:GridBoundColumn UniqueName="Email" DataField="Email" HeaderText="E-post" /> 
            </Columns> 
            <DetailTables> 
                <telerik:GridTableView 
                    DataKeyNames="ID" 
                    AutoGenerateColumns="true" 
                    ShowHeader="false" 
                    Name="Detail" 
                    CommandItemDisplay="None"
                    <ItemTemplate> 
                        <h1>Detaljsida för <%# Eval("Name") %></h1
                        <p><%# Eval("Description") %></p
                    </ItemTemplate> 
                </telerik:GridTableView> 
            </DetailTables> 
        </MasterTableView> 
    </telerik:radgrid> 

protected void radGridBusinessRegisterDetailTableDataBind(object source, GridDetailTableDataBindEventArgs e) 
        { 
            if (e.DetailTableView.Name == "Detail"
            { 
                int id = (int)e.DetailTableView.ParentItem.GetDataKeyValue("ID"); 
                e.DetailTableView.DataSource = CompanyService.GetById(id); 
            } 
        } 

This is not working because the datasource needs a different kind of data type.
Error: Data source is an invalid type.  It must be either an IListSource, IEnumerable, or IDataSource.

I guess I don't need the round trip to the database either!

Mattias
Top achievements
Rank 1
 answered on 30 Jan 2009
2 answers
210 views
I have a RadGrid which has a RadNumericTextBox in each row.  What I am looking for is a way to show an alert if a user changes the value in the TextBox.  What would be in your opinion the best way to accomplish this?

Thank You!
Mike
Top achievements
Rank 1
 answered on 30 Jan 2009
6 answers
238 views
Hi.

I have read through a couple of posts on this forum, but wasn't able to find a solution.

I have built a project using VS 2005 that uses the Telerik .NET 3.5 assembly. This, however, only works, when the System.Web.Extensions (v. 1.0.61025.0) is installed on my system. Why is that? I'd say it is supposed to use the .NET 3.5 version of System.Web.Extension which my project is referencing. I am absolutely sure I'm using Telerik for .NET 3.5. I have even verified this using the .NET Reflector tool.

I don't suppose Telerik is dynamically loading System.Web.Extensions v. 1.0.x (?)

Any suggestions would be appriciated, thanks in advance.
Jimmy
Top achievements
Rank 1
 answered on 30 Jan 2009
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?