Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views

I am a newbie and have been doing a lot of reading and trying. The following code works to some degree.  Here's what I would like to address:
1. change the anchor tag in the clientTemplate to an html.Actionlink as in the .template

2. my datafield is not being encoded in the clientTemplate - most likely just syntax

3. if I must use the anchor tag - how do I pass parameters?

Thank you for any help.

<%  Html.Telerik().Grid(Model.DocketList).
       Name("RenderedDockets").HtmlAttributes(New With {.style = "width:1200px; font-size:10px;"}).
       Columns(Sub(columns)
                   columns.Template(Function(d) Ajax.ActionLink(d.DocketNumber.ToString, "../Forms/DocketImageRendPage.aspx", New With {.id = d.DocketNumber}, New AjaxOptions With {.HttpMethod = "Get"})).Title("Docket").
                       ClientTemplate("<a class='mgGoto' href='../Forms/DocketImageRendPage.aspx'>#=model.DocketNumber#</a>").Title("Docket")
                         Pageable().
      DataBinding(Function(b) b.Ajax().OperationMode(GridOperationMode.Client)).
      Sortable().BindTo(Model.DocketList).Render()%>
Shash
Top achievements
Rank 1
 answered on 22 Nov 2013
2 answers
155 views
In 2013 Q3 we are getting borders applied to our fieldset elements in Office 2007 skin.  The relevant CSS rule appears to be from Telerik.Web.UI.Skins.FormDecoratorLite.css:
.RadForm fieldset {
    padding: 10px 15px;
    border-width: 1px;
    border-style: solid;
}
Our form decorator declaration is:
<telerik:RadFormDecorator ID="RadFormDecoratorMain" runat="server" DecoratedControls="All" ControlsToSkip="Fieldset">
</telerik:RadFormDecorator>
Is there a change to how controls should be excluded, or is this a bug?
Dev
Top achievements
Rank 1
 answered on 22 Nov 2013
4 answers
124 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
112 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
294 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
178 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
114 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
154 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
142 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
170 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?