Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 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
92 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
174 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
113 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
697 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
769 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
167 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
219 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
1 answer
108 views
How do I get the text of a textbox within an ItemTemplate(ListBox) to submit a form?

I am using the code below. The control is found but the Text property is always empty ("") 

protected void ListBoxFeeds_ItemDataBound(object sender, RadListBoxItemEventArgs e)
{
        btnComment = e.Item.FindControl("PostComment") as RadButton;
 
        CommentContent = ((RadTextBox)e.Item.FindControl("InputComment")).Text;
 
        btnComment.Click += new EventHandler(btnComment_Click);
  
}

Princy
Top achievements
Rank 2
 answered on 17 Apr 2012
0 answers
99 views
Hi,

I have subscribed to Visual Studio Magazine, MSDN Magazine and PC World magazine.
I wonder if there is any other software development magazine that I should read, in order to improve my software development skill?

Thanks All

Lamk.
LamKhoa
Top achievements
Rank 1
 asked on 16 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?