function RowSelected(row)
{
for (i=0;i<row.Controls.count;i++)
{
if (row.Controls[i].type == "text")//if the type of control is textbox
{
alert(row.Controls[i].id);
}
}
}
How can I accomplish this task? It's doesn't have to be the same solution as outlined above. I just need to be able to create those text boxes at run time and access their values on the server at postback.
Thanks in advance ;)

| <telerik:GridTemplateColumn HeaderText="Actions" HeaderStyle-Width="50" ItemStyle-HorizontalAlign="center"> |
| <ItemTemplate> |
| <telerik:RadToolTip ID="RadToolTipMessage" TargetControlID="LabelRefreshStatus" RelativeTo="Element" Position="BottomLeft" runat="server" /> |
| <telerik:RadToolTip ID="RadToolTipImage" TargetControlID="ImageErrorMessage" RelativeTo="Element" Position="BottomLeft" ManualClose="true" runat="server" /> |
| <asp:ImageButton ID="ImageButtonDetails" ImageUrl="~/images/office/txt.gif" AlternateText="See Details" runat="server" /> |
| <asp:Label ID="LabelRefreshStatus" runat="server" /> |
| <telerik:RadToolTip ID="RadToolTipDetails" TargetControlID="ImageButtonDetails" Position="TopLeft" Sticky="true" runat="server" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| refreshStatus.Text = EMAUtilities.BatchStatus(Convert.ToInt32(dataItem["STATUS_ID"].Text)); |
| RadToolTip message = ((RadToolTip)e.Item.Cells[0].FindControl("RadToolTipMessage")); |
| RadToolTip imageMessage = ((RadToolTip)e.Item.Cells[0].FindControl("RadToolTipImage")); |
| RadToolTip detail = ((RadToolTip)e.Item.Cells[0].FindControl("RadToolTipDetails")); |
| Label refreshStatus = (Label)e.Item.Cells[0].FindControl("LabelRefreshStatus"); |
| System.Web.UI.WebControls. |
| Image imageResults = (System.Web.UI.WebControls.Image)e.Item.Cells[0].FindControl("ImageErrorMessage"); |
| message.Text = "Good Job!"; |
| imageMessage.Text = "You have done a good job!"; |
| imageResults.Visible = true; |
| refreshStatus.CssClass = "colorGreen"; |
| imageResults.ImageUrl = "~/images/Good.gif"; |
| imageResults.Visible = true; |
| public partial class controls_exportRadGrid : System.Web.UI.UserControl |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| /// <summary> |
| /// Handles the Click event of the ButtonExcel control. |
| /// </summary> |
| /// <param name="sender">The source of the event.</param> |
| /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> |
| protected void ButtonExcel_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); |
| RadGrid Grid1 = (RadGrid)Page.Master.FindControl("Main").FindControl("RadGrid1"); |
| Grid1.MasterTableView.ExportToExcel(); |
| } |
| /// <summary> |
| /// Handles the Click event of the ButtonWord control. |
| /// </summary> |
| /// <param name="sender">The source of the event.</param> |
| /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> |
| protected void ButtonWord_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); |
| RadGrid Grid1 = (RadGrid)Page.Master.FindControl("Main").FindControl("RadGrid1"); |
| Grid1.MasterTableView.ExportToWord(); |
| } |
| /// <summary> |
| /// Handles the Click event of the ButtonPDF control. |
| /// </summary> |
| /// <param name="sender">The source of the event.</param> |
| /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> |
| protected void ButtonPDF_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); |
| RadGrid Grid1 = (RadGrid)Page.Master.FindControl("Main").FindControl("RadGrid1"); |
| Grid1.ExportSettings.Pdf.PageHeight = Unit.Parse("200mm"); |
| Grid1.ExportSettings.Pdf.PageWidth = Unit.Parse("500mm"); |
| Grid1.MasterTableView.Columns.FindByDataField("STATUS_ID").Visible = false; |
| Grid1.MasterTableView.ExportToPdf(); |
| } |
| /// <summary> |
| /// Handles the Click event of the ButtonCSV control. |
| /// </summary> |
| /// <param name="sender">The source of the event.</param> |
| /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> |
| protected void ButtonCSV_Click(object sender, System.EventArgs e) |
| { |
| ConfigureExport(); RadGrid Grid1 = (RadGrid)Page.Master.FindControl("Main").FindControl("RadGrid1"); |
| Grid1.MasterTableView.ExportToCSV(); |
| } |
| /// <summary> |
| /// Configures the export. |
| /// </summary> |
| public void ConfigureExport() |
| { |
| RadGrid Grid1 = (RadGrid)Page.Master.FindControl("Main").FindControl("RadGrid1"); |
| Grid1.ExportSettings.ExportOnlyData = true; |
| Grid1.ExportSettings.IgnorePaging = true; |
| Grid1.ExportSettings.OpenInNewWindow = true; |
| } |
| } |

grdMyGrid.DataSource = myDataTable
grdMyGrid.DataBind()
For the first time it works fine.
[Record count: 18]
[Paging Size: 10]
[Pager Display as : 1 2 ]
Then I change the default contents of the 'myDataTable' data table and add more records to the 'myDataTable' data table.
Then I re-call above code to bind that new data table.
Thats also working fine. When there are record count more than pager size, It adds those page numbers to the pager(Page moving segment of grid).
[Record count: 38]
[Paging Size: 10]
[Pager Display as : 1 2 3 4 ]
Again I'm changing the contents of the 'myDataTable' data table and remove many records to the 'myDataTable' data table
Then I re-call above code to bind that new data table.
In this case, it do not hide the additional page numbers.
[Record count: 08]
[Paging Size: 10]
[Pager SHOULD Display as : 1 ]
BUT Display it display As :
[Pager Display as : 1 2 3 4 ]
What would be the issue?
Ur support is highly appreciated.
| <telerik:RadContextMenu ID="pageSelectMenu" runat="server" ClickToOpen="false" Flow="Horizontal" > |
| <Items> |
| <telerik:RadMenuItem Text="page1" ></telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="page1b"></telerik:RadMenuItem> |
| </Items> |
| </telerik:RadContextMenu> |
class="rmActive rmVertical rmGroup rmLevel1"