Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
318 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
188 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
124 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
167 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
174 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
187 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
338 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
223 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
0 answers
361 views
Hi,

I am using classic asp for a project.
A form with two dropdown (state and city) select and other text inputs.
I want to populate the second dropdown from database (using storeprocedure) on changing the value of first dropdown.
I am calling form.Submit() on change of state dropdown. this call populating the city dropdown by using the Request.Form("State").

But this form.Submit() call is clearing all the text inputs value.

I want to create this kind of dependent dropdown that should not clear the input text value.
Help me to achieve this.

<select name="State" onChange="this.form.action = '<%=Request.ServerVariables("Script_Name")%>'; this.form.submit();">
                    <option <%if Trim(Request.Form("EventState"))="" then Response.Write "selected" end if%> value="">          </option>
                    <option <%if Trim(Request.Form("EventState"))="AL" then Response.Write "selected" end if%> value="AL">Alabama</option>
                    <option <%if Trim(Request.Form("EventState"))="AZ" then Response.Write "selected" end if%> value="AZ">Arizona</option>
</select>


Thanking you,
AGM Raja
Agm
Top achievements
Rank 1
 asked on 22 Nov 2013
3 answers
172 views
I'm trying to add a tooltip for my custom column - here is the code:

void Grid_ItemDataBound(object sender, GridItemEventArgs e)         
{
    foreach (GridColumn column in RadFileExplorer1.Grid.MasterTableView.RenderColumns)                 
    {                     
        if ((column is GridTemplateColumn) && (column.HeaderText.Equals("Document Title")))                     
        {                         
            if (e.Item is GridDataItem)                         
            {                             
                GridDataItem gridItem = e.Item as GridDataItem;                             
                string text = gridItem[column.UniqueName].Text;  
                
                //this line will show a tooltip
                            
                gridItem[column.UniqueName].ToolTip = text;                         
            }                                              
        }                 
    }             
}


I'm unable to get the value of the cell as tooltip - can you please help?
Vessy
Telerik team
 answered on 22 Nov 2013
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?