Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
131 views
Hi,
how can i set focus on textbox (TextboxFindTreeNode), after opening ContextMenu with right click.
I user the ItemTemplate in RadMenuItem
Thanks
<telerik:RadTreeView ID="RadTreeViewFileShare" runat="server" >
 
             <ContextMenus>
 
                 <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenuFs" runat="server">
                     <Items>
                         <telerik:RadMenuItem>
                             <ItemTemplate>
                                 <asp:Panel ID="PanelFindNode" runat="server" style="padding:5px;" DefaultButton="ButtonFindTreeNode">
                               
                                 <asp:Label ID="LabelFindNode" runat="server" Text="Find Node:" AssociatedControlID="TextBoxFindTreeNode"></asp:Label
                                 <asp:TextBox ID="TextBoxFindTreeNode" runat="server" AutoCompleteType="Search"></asp:TextBox>
                                 <asp:ImageButton ID="ButtonFindTreeNode" runat="server" ImageUrl="~/Images/Search/Search.ico"
                                     ToolTip="Search for node" OnClick="ButtonFindTreeNode_Click" ImageAlign="Middle"/>
                                </asp:Panel>
                             </ItemTemplate>
                         </telerik:RadMenuItem>
                     </Items>
 
 
                 </telerik:RadTreeViewContextMenu>
             </ContextMenus>
     </telerik:RadTreeView>
Viktor Tachev
Telerik team
 answered on 22 Nov 2013
1 answer
113 views
Hi
Is it possible to show a readonly column in editmode. It should not be editable bt i want to view its value. Help me on this.
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2013
5 answers
310 views
I have a Pivot grid and in Aggregate file i have placed the Textbox.
When user click on Save button i want to use looping to get all pivot grid item
In design 

 <telerik:PivotGridRowField DataField="SERVICName" Caption="SERVICName" CellStyle-Width="80px">
                      <celltemplate >
                            <asp:DropDownList ID="ddlService" runat="server" AutoPostBack="false">
                            </asp:DropDownList>
                        </celltemplate>
                </telerik:PivotGridRowField>
                 <telerik:PivotGridRowField DataField="StartDate" Caption="StartDate" CellStyle-Width="80px">
                </telerik:PivotGridRowField>
                 <telerik:PivotGridRowField DataField="EndDate" Caption="EndDate" CellStyle-Width="80px">
                </telerik:PivotGridRowField>              
                <telerik:PivotGridAggregateField DataField="LoadHours"  CellStyle-Width="60px">
                <celltemplate >   
                <asp:TextBox ID='txtloadhours' runat="server" Width="46" Text='<%# Container.DataItem%>' ></asp:TextBox>
                                          </celltemplate>         
                </telerik:PivotGridAggregateField>     

Save Button Click : 
   for (int i = 0; i < RadPivotGrid1.Items.Count; i++)
        {
}
here i want to get all the items of both Rowfield items and DataCell Items.

Guide me to get all the items from save button click.
Daniel
Telerik team
 answered on 22 Nov 2013
1 answer
184 views
Hi
i have a RadAutoCompleteBox in ItemTemplate of my template column. According to the value selected in it, I want to change the text of another boundColumn. How to achieve this?
Princy
Top achievements
Rank 2
 answered on 22 Nov 2013
1 answer
121 views
Hi.
 I want to access the CommandItem in code behind in the PreRender event. How to access it there?
Princy
Top achievements
Rank 2
 answered on 22 Nov 2013
5 answers
159 views

Is it possible to get the X and Y coordinates of a radgrid that has just been made visible?   I want to scroll to the top of it as soon as it has been created.

 

 

<script type="text/javascript">
            function rgOrderDetail_OnGridCreated(sender, args) {
                var bounds = //get bounds of the grid
                scrollTo(bounds.x, bounds.y);
             }  
</script>

 

 

 

Eyup
Telerik team
 answered on 22 Nov 2013
4 answers
157 views
Hi,

Instead of the RadScheduler's default edit form, i want to edit the apointment in my own form or rather use another page in my project which can be displayed like a popup in RadWindow. How to do this?

Thanks in Advance,
Antony.
Blas
Top achievements
Rank 2
 answered on 22 Nov 2013
1 answer
178 views
I am trying to ajaxify the link button click event. But it doesn't fire. Here is my code.Could you please let me know what could be wrong?

    <asp:LinkButton ID="lnkTest" runat="server" />
    
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
            OnAjaxRequest="RadAjaxManager1_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="LinkButton ">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnlGraph"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
        </AjaxSettings>
        </telerik:RadAjaxManager>

javascript
---------------------

            function raisePostBack(activity) {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                ajaxManager.ajaxRequest(activity);
            }

Code behind
---------

    lnkFinesValue.Text = String.Format("${0:C}", row["total_count"].ToString());.Text = String.Format("${0:C}", row["total_count"].ToString());
    lnkFinesValue.Text = String.Format("${0:C}", row["total_count"].ToString());.Attributes.Add("onClick", String.Format("raisePostBack('{0}');", "TEST"));


    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
      string test = e.Argument;        
    }
Konstantin Dikov
Telerik team
 answered on 22 Nov 2013
5 answers
324 views
 when I use onclientclose = "Close" that time,
 it closes without postback which what I want, BUT, when page postbacks later if any click event,
 I see that Radwindow back like I never closed it.
.I have also put .visibleonpageload = false on page load
 on code behind and that seems to be working fine, but not sure if
 this is a proper way to
 handle this or not since I was actually had that on the client side too..
. What I need to do? any idea?
 

<
telerik:RadWindowManager Behaviors="Close, Move, Resize,Maximize" ID="RadWindowManager"
        DestroyOnClose="true" runat="server" IconUrl="http://www.telerik.com/favicon.ico"
        Modal="true">
        <Windows>
 <telerik:RadWindow ID="winConfirmDelete" VisibleOnPageLoad="false" runat="server"
                Title="Confirm Delete" VisibleStatusbar="false" CssClass="radWindow" Width="300"
                Height="175" Skin="Windows7" onclientclose="Close">
                <ContentTemplate>
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td colspan="2">
                                <br />
                                <p style="text-align: center">
                                    <asp:Label ID="lblConfirmResult" runat="server" CssClass="validationWarning" Text="Are you sure you want to delete this?" /></p>
                                <p style="text-align: center">
                                    <telerik:RadButton ID="btnConfirmDelete" runat="server" Text="Delete" OnClick="btnConfirmDelete_Click" />
                                    <telerik:RadButton ID="btnConfirmCancel" runat="server" Text="Cancel" OnClick="btnConfirmCancel_Click" />
                                </p>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </telerik:RadWindow>
  </Windows>
    </telerik:RadWindowManager>
 
// have these inside the javascript stuff..
 

   //close without postback.         
   function Close(sender, eventArgs) {
 
                sender.close();
        }
Steve
Top achievements
Rank 1
 answered on 22 Nov 2013
2 answers
211 views
Hi I am using the raddock and when a user clicks the close button it fires a server side method which marks the selected raddock item as deleted. Thing is I want to ask the ask if they are sure before doing so.

I wrote this piece the js below which fire ok but the server side event is hit whether the user selects yes or no.

Any help would be appreciated.

Thanks,

Dave J.

function OnClientCommand(sender, args) {
    if(args.Command.get_name() == "Close")
    {
       var r = confirm("Are you sure you want to delete this Form Field?");
       if (r == true) {
          return true;
       }
       else {
          return false;
       }
    }
}
Dave
Top achievements
Rank 1
 answered on 22 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?