Hi I use this example http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx but when I add my control:
<telerik:RadPageView runat="server" ID="RadPageView2">
<uc2:uc ID="ucmy" RowID='<%#Eval("id") %>' runat="server" />
</telerik:RadPageView>
In information about client I have always get information about the last customer in RadGrid in current page.
Please help...
Hi,
I've a radgrid with 2 columns - gridboundcolumn and other greidtemplate column with a dropdownlist in it.
For the dropdownlist, I'm binding the data in item databound.
These 2 columns have been created in ascx like:
<Columns>
<telerik:GridBoundColumn HeaderText ="Search Criteria" DataField="" UniqueName="SearchCriteria" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Mapped Tag" UniqueName ="MappedTag">
<ItemTemplate>
<asp:DropDownList ID="m_radMappedTagCombo" runat="server" Width="100%"></asp:DropDownList>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
how'll i access my gridboundcolumn in codebehind.
I need to bind some data to the grid bound column??
in cs:
List<string> strList = new List<string(){"aaa","ddd","cc"};
I need to bind strlist to my gridboundcolumn(uniquename for it is "temp").
so, how do i bind gridboundcolumn to strlist in my radgrid.
Note: i've declared my columns in .ascx
Thanks,
ZR
OnValueChanged event fires for each of the sliders. is there any way for me to disable this. it seems that this event gets fired before the item click event of the radPanel if it was the other way around i could simply check for this and stop my other events.
Is there anything I can do or any guidance you can offer for this.
Thanks in advance.
Paddy
| <MasterTableView Width="98%" ShowFooter="True" CommandItemDisplay="TopAndBottom"> |
| <CommandItemTemplate> |
| <asp:LinkButton ID="btnAddNewRecord" runat="server" CommandName="AddNewRecord" Style="vertical-align: bottom"> |
| <asp:Image ID="imgAdd" runat="server" ImageUrl="~/App_ThemesCustom/images/AddRecord.gif" /> |
| Add New Record |
| </asp:LinkButton> |
| <asp:LinkButton ID="btnRefresh" runat="server" CommandName="Refresh" Style="vertical-align: bottom"> |
| <asp:Image ID="imgRefresh" runat="server" ImageUrl="~/App_ThemesCustom/images/Refresh.gif" /> Refresh |
| </asp:LinkButton> |
| </CommandItemTemplate> |
| protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if(e.Item is GridCommandItem) |
| { |
| if (!UserHasEditAccess()) |
| { |
| this.ParentPage.FindControlRecursive(this, "btnAddNewRecord").Visible = false; |
| } |
| } |
| } |
This code works to a degree. It hides the "Add New Record" button in the "Top" of the grid, but it is still visible on the "Bottom" of the grid.
Any idea why it's not making it invisible in both the "Top" and the "Bottom"?
| <td> |
| <asp:DropDownList ID="ddlTOC" runat="server" SelectedValue='<%# Bind("TitleOfCourtesy") %>' |
| DataSource='<%# (new string[] { "Dr.", "Mr.", "Mrs.", "Ms." }) %>' TabIndex="7" |
| AppendDataBoundItems="True"> |
| <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem> |
| </asp:DropDownList></td> |