Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
130 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
757 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
899 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
222 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
281 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
152 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
122 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
0 answers
94 views
On all the custom paging examples that I have seen VirtualItemCount is set to some big number and not the actual number of rows in the data source.

There are two problems with it. First, this number is misleading as grid shows "item 1 of 10000". This can be relatively easy solved by running another query against dataset, something like "select count(*) from ...", but here comes second problem.

When grid has filters the VirtualItemCount should be smaller, that is the dataset should be additionally filtered with current filter expression. On the surface, this seems not hard to do as well - change EnableLinqExpressions to 'false', grab FilterExpression propery and use the value as additional WHERE clause. The issue is that FilterExpression propery is not always set. It appears that it is not set during NeedDataSource event.

I wonder if Telerik has a complete custom paging example that works correcly with filters.

-Stan
Stan
Top achievements
Rank 1
 asked on 16 Apr 2012
2 answers
316 views
I have a radmenu which i am binding on the code behind, I have been trying to find a way to disgin it as it want it via the html (No luck) and via the designer, but all my items are loaded programmatically.  What I want to do is set the height and width of all my menu items and then center the center height wise.  So for each item the width(200px), height(40px")  and the text vertical centered.  Tried via a css file but the code behind does no get it.

.Menuitems
    {
        width:200px;
        height:40px;
        cursor:pointer;
        font-size:16;
        text-align:center;
    }


Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
       If Not IsPostBack Then
           'Load the menu system
           sql = "Select intDirectoriteId, strDirectorite from tblDirectorite"
           myDataTable = New DataTable
           myDataTable = getData(sql)
           RadMenu1.DataSource = myDataTable
           RadMenu1.DataTextField = "strDirectorite"
           RadMenu1.DataValueField = "intDirectoriteId"
           RadMenu1.CssClass = "Menuitems"
           RadMenu1.DataBind()
       End If
   End Sub
   Protected Sub RadMenu1_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadMenuEventArgs) Handles RadMenu1.ItemDataBound
       Dim row As DataRowView = CType(e.Item.DataItem, DataRowView)
       e.Item.ToolTip = row("strDirectorite") & " Applications".ToString
   End Sub
Kevin
Top achievements
Rank 1
 answered on 16 Apr 2012
2 answers
188 views
Hello, I'm trying to add, dynamically, a radbutton to the GroupFooterItem and this button needs to have some values in the commandname and commandargument. These values are related to the cells from a group in the grid. So far I have been able to add those buttons with the OnPreRender event, but I'm stuck on how to set those values with a specific cell in the group.

I have thought about querying db again and use foreach to assign the appropiate values, but I think this scenario is error prone, so leaving it as a last resource.

any pointers???
Luis
Top achievements
Rank 1
 answered on 16 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?