<telerik:GridDropDownColumn DataField="UserName" DataSourceID="ObjectDataSource2"
DropDownControlType="DropDownList" EmptyListItemText="--Select User--"
EmptyListItemValue="--Select User--" EnableEmptyListItem="true" HeaderText="User"
ListTextField="FullName" ListValueField="UserName" UniqueName="FullName">
How can I get
Username in
Private Sub validator3_ServerValidate()
Using
Dim clickedItem As Telerik.Web.UI.GridDataItem = CType(CType(source, CustomValidator).NamingContainer, Telerik.Web.UI.GridDataItem)
from here what to do ? to get the seleted value
| Not sure how to set the delete command dynamically. Here is the code... <telerik:RadGrid AutoGenerateColumns="False" ID="RADGRIDUnread" DataSourceID="SqlDataSource1" |
|||
| Width="760px" AllowFilteringByColumn="True" AllowSorting="True" | |||
| PageSize="15" ShowStatusBar="True" ShowFooter="True" AllowPaging="True" runat="server" | |||
| GridLines="None" EnableLinqExpressions="False" AutoGenerateDeleteColumn="True" | |||
| Skin="Sunset" AllowAutomaticDeletes="True" ShowGroupPanel="True"> | |||
| <PagerStyle Mode="NextPrevAndNumeric" /> | |||
| <GroupingSettings CaseSensitive="false" /> | |||
| <MasterTableView OnSelectedIndexChanged="Test" AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True" DataKeyNames="MessageID" | |||
| ShowFooter="True" TableLayout="Auto"> | |||
| <Columns> | |||
| <telerik:GridBoundColumn DataField="MessageID" Display="false" UniqueName="MessageID"></telerik:GridBoundColumn> | |||
| <telerik:GridBoundColumn FilterControlWidth="100px" DataField="MessageSubject" HeaderText="Subject" SortExpression="MessageSubject" UniqueName="MessageSubject"></telerik:GridBoundColumn> | |||
| <telerik:GridBoundColumn FilterControlWidth="100px" DataField="FromName" HeaderText="From" SortExpression="FromName" UniqueName="FromName"></telerik:GridBoundColumn> | |||
| <telerik:GridBoundColumn FilterControlWidth="100px" DataField="MessageDate" HeaderText="Sent" SortExpression="MessageDate" UniqueName="MessageDate"></telerik:GridBoundColumn> | |||
| </Columns> | |||
| </MasterTableView> | |||
| <ClientSettings AllowDragToGroup="True"> | |||
| <Selecting AllowRowSelect="True" /> | |||
| </ClientSettings> | |||
| </telerik:RadGrid> | |||
| <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:AbsorbConnectionString %>" | |||
| ProviderName="System.Data.SqlClient" runat="server"> | |||
| <DeleteParameters> | |||
| <asp:Parameter Name="MessageID" Type="Int32" /> | |||
| </DeleteParameters> | |||
| </asp:SqlDataSource> And the codebehind...
|

| <telerik:GridBoundColumn DataField="LastUpdated" HeaderText="Last Updated" AllowFiltering="false" DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy hh:mm tt}"> |
| <HeaderStyle Width="15%" Wrap="false"/> |
| </telerik:GridBoundColumn> |
if i have a item like this
<telerik:GridDropDownColumn DataField="UserName" DataSourceID="ObjectDataSource2"
DropDownControlType="DropDownList" EmptyListItemText="--Select User--"
EmptyListItemValue="--Select User--" EnableEmptyListItem="true" HeaderText="User"
ListTextField="FullName" ListValueField="UserName" UniqueName="FullName">
How can I get
Username in Private Sub validator3_ServerValidate()
am getting up to
Dim clickedItem As Telerik.Web.UI.GridDataItem = CType(CType(source, CustomValidator).NamingContainer, Telerik.Web.UI.GridDataItem)
| <telerik:GridCheckBoxColumn AutoPostBackOnFilter="True" CurrentFilterFunction="EqualTo" DataType="System.Boolean" | |
| DataField="Error" HeaderText="Error?" SortExpression="Error" UniqueName="Error" | |
| CurrentFilterValue="True" ReadOnly="True" ShowFilterIcon="false"> | |
| </telerik:GridCheckBoxColumn> | |
| <telerik:GridCheckBoxColumn AutoPostBackOnFilter="True" DataField="Truncated" DataType="System.Boolean" | |
| HeaderText="Trunc?" SortExpression="Truncated" UniqueName="Truncated" ReadOnly="True"> | |
| </telerik:GridCheckBoxColumn> |
| /*Tool Tips*/ |
| .tooltip |
| { |
| padding: 10px; |
| width: 350px; |
| list-style-image: url('../../Images/bullet.gif'); |
| line-height: 15px;} |
| <telerik:RadToolTip ID="RadToolTip6" runat="server" RelativeTo="Element" TargetControlID="Image6" |
| Font-Size="Small" Skin="Sunset" Width="266px" Position="TopCenter" HideEvent="LeaveToolTip"> |
| <div class="tooltip"> |
| <h5> |
| Metropolitan Status</h5> |
| <hr /> |
| <p> |
| “Metropolitan Status” is based on the most recent data from the U.S. Census Bureau. Your hospital will be categorized in one of three groups: |
| </p> |
| <ul> |
| <li>Metropolitan Area - in a county or group of counties that has an ‘urban core’ of at least 50,000 people </li> |
| <li>Micropolitan Area - in a county or group of counties that has an ‘urban core’ of 10,000 – 50,000 people </li> |
| <li>Non-Metropolitan, Non-Micropolitan Area - in a county that has small communities of less than 10,000 people</li> |
| </ul> |
| </div> |
| </telerik:RadToolTip> |
GridItem
item = ((rdGrid.MasterTableView.Controls[0] as Table).Rows[int.Parse(postBackEventArgumentData[1])] as GridItem);
Your earliest help is appreciated
Regards