Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
1.6K+ views
I have a sign up form which when a user completes successfully, it logs them in automatically. After the user clicks "Finish", they are presented with a Congratulations page which tells them what their new username and password is. I have a UserControl in another ContentPlaceHolder on the page which is either displays a Login form or the logged in user's info.

Upon successful completion of signing up, I want to refresh the Login UserControl so that it displays the user's info rather than the login form.

I am using MasterPages and Sitefinity.
darshan thacker
Top achievements
Rank 1
 answered on 17 Apr 2012
1 answer
143 views
Hi,

I am having rad grid in which i have enabled virtual scrolling with client side binding to web service. I want to add Hierarchy to the grid. But sincs the data is bound at client side i am not getting the details tables listed in the ui. Also if i call dataitem.get_nestedViews(), it is not returning any table.
Is there any way to add details table thru java script?
Also can we select the row along with the details table as a whole? write now selection is limited to master table rows.


Thanks,
Rashmi
Radoslav
Telerik team
 answered on 17 Apr 2012
1 answer
74 views
Hi

I have a RadTreeView and I need to implement the following:
1) If all child nodes checked, then check parent(all the way up to level 0 if necessary)

Does the RadTreeView already have this capability? i.e to track which parent nodes have to be checked once child node is checked.

Thanks.
Kamal
Princy
Top achievements
Rank 2
 answered on 17 Apr 2012
1 answer
97 views
hi telerik

I'm working with Form Decorator.the text box does not rounded corner. why ?
RadFormDecorator place is top of page after Scriptmanager

<telerik:RadFormDecorator ID="_FormDecorator" Runat="server" 
                                 DecoratedControls="All" Skin="Sunset" EnableRoundedCorners="true" />



see attachment



Bozhidar
Telerik team
 answered on 17 Apr 2012
3 answers
181 views
In a RadGrid, I have a requirement to display running sports time as a text mask of hour:min:sec (00:00:00) but store this in the database as a BigInt of timepan.ticks.
I have the 2 methods to convert from one to another show below.
The application is being converted from Devexpress ASPxGridView to Telerik RadGrid.  I show the existing devexpress grid methods used below.
// Called from Devexpress ASPxGridView1_ParseValue on Insert/Update
private static long LongFromString(Object value)
{
    if (value == null || String.IsNullOrEmpty((String)value))
    {
        return 0;
    }
    else
    {
        TimeSpan span =  TimeSpan.Parse((String)value);
        return span.Ticks;
    }
}
 
Here, one method is for the Grid rows and one is for edit mode.
// Called from Devexpress ASPxGridView1_CellEditorInitialize on Select
// AND Devexpress ASPxGridView1_CustomColumnDisplayText  on Select
private static String StringFromBigInt(Object Value)
{
    TimeSpan span = new TimeSpan((long)Value);
    if (span.Days != 0)
        return span.ToString("c");
 
    String str = span.ToString(@"hh\:mm\:ss");
    return String.Format("{0}", str);
}
Can someone tell me what RadGrid methods will allow me to have the same functionality to Display 00:00:00 but save ti the database as a BigInt.
Thanks so much for your help.
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2012
2 answers
116 views
Hi all,
I need two grid view in my page.I have to show both details on different link button click, now I could show only one grid and its showing in the Page load itself. Please help me with ideas.
Thanks.
Angella
Top achievements
Rank 1
 answered on 17 Apr 2012
5 answers
717 views
Hi, I need to display a loading panel whenever I click on any button inside a RadToolbar.  Thanks.

    
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadToolBar1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="divDataEntry" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />
<div id="divDataEntry" runat="server">
    <telerik:RadTextBox ID="rtbTxtBox" runat="server" Width="10em" MaxLength="20" />
</div>
    <telerik:RadToolBar ID="RadToolBar1" runat="server" Skin="Office2010Blue" ForeColor="Black"
        OnClientButtonClicked="OnClientButtonClicked" OnClientButtonClicking="OnClientButtonClicking"
        OnButtonClick="RadToolBar1_ButtonClick">
        <Items>
            <telerik:RadToolBarButton runat="server" Owner="RadToolBar1" Text="Add" ForeColor="Black"
                ImageUrl="~/Telerik/Images/add.gif" CommandName="addcmd" Value="add" />
            <telerik:RadToolBarButton IsSeparator="true" />
            <telerik:RadToolBarButton runat="server" Owner="RadToolBar1" Text="Reset" ForeColor="Black"
                ImageUrl="~/Telerik/Images/Refresh.gif" CommandName="resetcmd" Value="reset" />
            <telerik:RadToolBarButton IsSeparator="true" />
            <telerik:RadToolBarButton runat="server" Owner="RadToolBar1" Text="Clear" ForeColor="Black"
                ImageUrl="~/Telerik/Images/Undo.gif" CommandName="clearcmd" Value="clear" />
            <telerik:RadToolBarButton IsSeparator="true" />
            <telerik:RadToolBarButton runat="server" Owner="RadToolBar1" Text="Save" ForeColor="Black"
                ImageUrl="~/Telerik/Images/Save.gif" CommandName="savecmd" Value="save" ValidationGroup="required" />
        </Items>
    </telerik:RadToolBar>
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2012
5 answers
809 views
Hi,

Can you help me to figure out how to show hide or enable disable paging on the client? I'm trying to hide or disable the paging bar at the bottom of the page when searching. I attached a image to give you an idea. When returning search results I want results without paging.

Thanks,
Ron.
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Apr 2012
3 answers
174 views
I have a panelbar inside my radpane as shown in the below code. When i try to resize that pane the panelbar becomes small but no scrollbars come at the radpane level, this makes my panelbar not accessible when the radpane is reduced to a very small size. 

<div style="height: 100%">
        <telerik:RadSplitter VisibleDuringInit="false" BorderSize="0" PanesBorderSize="0"
            ID="nestedSplitter" ResizeWithParentPane="false" Width="100%" Orientation="Horizontal"
            Height="100%" runat="server">
            <telerik:RadPane ID="RadPane1" runat="server" Scrolling="None" Height="34">
            </telerik:RadPane>
            <telerik:RadPane ID="treeViewPane" runat="server">
                <telerik:RadSplitter ID="ContentSplitter" BorderSize="0" PanesBorderSize="0" runat="server"
                    Height="100%" Width="100%">
                    <telerik:RadPane Scrolling="Both" ID="NavigationPane" runat="server" Width="200"
                        MinWidth="10" Height="100%">
                        <telerik:RadPanelBar TabIndex="1" ID="RadPanelBar1" Width="100%" Height="100%" Style="overflow: auto"
                            runat="server" AccessKey="A" ExpandMode="MultipleExpandedItems">
                            <ExpandAnimation Duration="0" />
                            <CollapseAnimation Duration="0" />
                            <Items>
                                <telerik:RadPanelItem TabIndex="1" Expanded="true" Text="Favorites">
                                    <Items>
                                        <telerik:RadPanelItem>
                                            <ItemTemplate>
                                                <div style="height: 20px">
                                                </div>
                                            </ItemTemplate>
                                        </telerik:RadPanelItem>
                                    </Items>
                                </telerik:RadPanelItem>
                                <telerik:RadPanelItem Expanded="true" TabIndex="2" Text="Browse">
                                    <Items>
                                        <telerik:RadPanelItem>
                                            <ItemTemplate>
                                                <div id="archivesPanel">
                                                </div>
                                            </ItemTemplate>
                                        </telerik:RadPanelItem>
                                    </Items>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelBar>
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="RadSplitBar2" runat="server" />
                    <telerik:RadPane ID="MainPane" runat="server" Scrolling="None">
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>

Am I missing anything ?
Ivan Zhekov
Telerik team
 answered on 17 Apr 2012
1 answer
234 views

protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
{
e.Item.SavedOldValues.Value;
TextBox newCompanyName = (TextBox)item.FindControl("Company_NameTextBox"); // Get new Value
 
// Get Old Value but can't find Label while in ItemUpdated
TextBox newCompanyName = (TextBox)item.FindControl("Company_NameLabel");  
 
}

I want get the value as screenshot below, anyone know how to get the SaveOldValue?



Thanks
From, Tan

Shinu
Top achievements
Rank 2
 answered on 17 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?