or
<GullsEye:GullsEyeGrid AllowPaging="true" AllowSorting="true" PageSize="10" runat="server" ID="RadPortCheckInRequest" AutoGenerateColumns="false" <br> AllowMultiRowSelection="false" OnNeedDataSource="RadPortCheckInRequest_NeedDataSource" OnItemCommand="RadPortCheckInRequest_ItemCommand" ><br><br> <MasterTableView> <%--DataKeyNames="Id" AutoGenerateColumns="false">--%><br> <Columns><br> <br> <telerik:GridBoundColumn DataField="RequestCode" HeaderText="<%$Resources:ContentResource, RequestCode%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridDateTimeColumn DataField="RequestDate" HeaderText="<%$Resources:ContentResource, RequestDate%>" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridDateTimeColumn><br> <telerik:GridBoundColumn DataField="AgentCode" HeaderText="<%$Resources:ContentResource, AgentCode%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridBoundColumn DataField="LinerCode" HeaderText="<%$Resources:ContentResource, LinerCode%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridBoundColumn DataField="VesselName" HeaderText="<%$Resources:ContentResource, VesselName%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridBoundColumn DataField="BerthingRequestArrivalTrip" HeaderText="<%$Resources:ContentResource, ArrivalTrip%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridBoundColumn DataField="BerthingRequestDepartureTrip" HeaderText="<%$Resources:ContentResource, DepartureTrip%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridBoundColumn DataField="RequestAgentReferenceNumber" HeaderText="<%$Resources:ContentResource, RequestAgentReferenceNumber%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridBoundColumn DataField="Status" HeaderText="<%$Resources:ContentResource, Status%>" DataType="System.String"></telerik:GridBoundColumn><br> <telerik:GridTemplateColumn UniqueName="Sennur" ShowFilterIcon="false" ShowSortIcon="false" ><br> <ItemTemplate><br> <asp:LinkButton ID="LinkButtonShow" runat="server" Text="<%$Resources:ContentResource, Detail%>" CausesValidation="false"<br> CommandArgument='<%# DataBinder.Eval(Container.DataItem,"Id") %>'<br> CommandName="ShowDetailCommand" /><br> </ItemTemplate><br> </telerik:GridTemplateColumn> <br> </Columns><br> </MasterTableView><br> </GullsEye:GullsEyeGrid>protected void RadPortCheckInRequest_ItemCommand(object sender, GridCommandEventArgs e)<br> {<br> if (e.Item != null)<br> {<br> if (e.Item is Telerik.Web.UI.GridDataItem && (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem))<br> {<br> if (e.CommandName == "ShowDetailCommand")<br> {<br> Guid requestId = new Guid(e.CommandArgument.ToString());<br> if (Guid.Empty != requestId)<br> {<br><br> string url = ConfigurationManager.AppSettings["WebSiteUrl"] + "/View/Request/RequestDetail.aspx?RequestId=" + requestId.ToString();<br> RadWindow foundedWindow = (RadWindow)Master.FindControl("RadPopup");<br> INavigationService navigationService = ServiceFactory.GetInstance().GetService<INavigationService>();<br> navigationService.OpenPopup(url, foundedWindow, true);<br> }<br> }<br><br><br> }<br> }

<CssFiles> <telerik:EditorCssFile Value="~/_EditorToolSets/bootstrap.css" />
<telerik:EditorCssFile Value="http://fast.fonts.net/cssapi/c02e6b72-e9dd-4ba0-a76c-bb710e27141a.css" /> <telerik:EditorCssFile Value="~/_EditorToolSets/editor2.css" /></CssFiles><classes><class name="Lead Paragraph" value=".lead" /><class name="CAC Image" value=".cac-img" /><class name="CAC Button" value=".cac-btn" /></classes>

| protected void ddlMake_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) | |
| { | |
| ViewState["Make"] = e.Text; | |
| } |
Forgive me if this is an extremely easy question but for some reason I cannot get the SelectedValue rather than the SelectedText from the RadCombo in the SelectedIndesChanged event. Can someone please help me find where this may be? e.Text is the only thing that appears to be accessible. My ID values are the hidden piece I need.
Thanks in advance.
Doug
<telerik:RadGrid ID="VialsGrid" runat="server" CellSpacing="0" AllowPaging="true" PageSize="50" AllowFilteringByColumn="true" AutoPostBackOnFilter="true" AutoGenerateColumns="false" AllowSorting="true" GridLines="None" Width="1000" ItemStyle-VerticalAlign="Top" AlternatingItemStyle-VerticalAlign="Top" DataSourceID="VialsGridDataSource" EnableLinqExpressions="true" OnUpdateCommand="VialsGrid_UpdateCommand" OnItemCreated="VialsGrid_ItemCreated"> <MasterTableView DataKeyNames="VialLocationID" Name="MasterTableView" CommandItemDisplay="Top" EnableLinqGrouping="true"> <Columns> ... </Columns> <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="true"></CommandItemSettings> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="VialLocationGroupName" FieldAlias="VialLocationGroupName" HeaderText="Group" /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="VialLocationGroupName" /> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> </MasterTableView> <ClientSettings> <ClientEvents OnCommand="function(){}" OnMasterTableViewCreated="MasterTableViewCreated" /> </ClientSettings></telerik:RadGrid></div><asp:EntityDataSource ID="VialsGridDataSource" runat="server" ConnectionString="name=EmbryoDBEntities" DefaultContainerName="EmbryoDBEntities" EnableFlattening="false" EnableInsert="false" EnableUpdate="true" EnableDelete="false" EntitySetName="VialLocationViews" OrderBy="it.VialLocationGroupName, it.VialLocation asc" AutoPage="true" AutoSort="true" OnQueryCreated="VialsGridDataSource_QueryCreated"></asp:EntityDataSource>