Hi!
I have added rad grid control on my page which allows the single selection for row. This is absolutely fine as per my requirment but.. I need to show radio buttons instead of check boxes. I think from user point of view, we always give radio buttons whenever there is a scenario for single selection and checkboxes for multiple selection. So in this case also I wanted the same, i tried to explore enough on this .. but I am unable to get the solution in teleric rad grid control api.
Do we have any workaround for this???
Please Reply ASAP
Thanks!
i have a link inside the gridtemplatecolumn of a grid.
on click of that link i call a js function.
I need to know the DataKey value of that row in which the link was clicked in the javascript function.
How can i get the key value on client side.
I was trying to do something like :
var
masterTable = $find("<%=RadGridContact.ClientID%>").get_masterTableView();
var contactId = masterTable.get_selectedItems()[0].getDataKeyValue("ContactID");
But the problem is that my row is not selected so i get the selecetedItems as null.
can you suggest?
| Protected Sub Applicants1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Applicants1.PreRender |
| ApplicantDetail1.ApplicantID = Applicants1.SelectedGridItem 'The Detail page |
| End Sub |
| Public Property ApplicantID() As String |
| Get |
| Return lblAppID.Text |
| End Get |
| Set(ByVal value As String) |
| lblAppID.Text = value |
| RadGrid1.Databind() |
| 'Radrid1.Rebind() |
| End Set |
| End Property |
| <asp:SqlDataSource ID="SqlDataSource1" runat="server" |
| ConnectionString="<%$ ConnectionStrings:Conn %>" |
| DeleteCommand="DELETE FROM [ATS_Prescreen] WHERE [PreScreenID] = @PreScreenID" |
| InsertCommand="INSERT INTO..." |
| SelectCommand="SELECT * FROM [table] WHERE ([AppID] = @AppID)" |
| UpdateCommand="UPDATE table ... WHERE [PreScreenID] = @PreScreenID"> |
| <SelectParameters> |
| <asp:ControlParameter ControlID="lblAppID" DefaultValue="xx" Name="AppID" PropertyName="Text" /> |
| </SelectParameters> |
| <DeleteParameters> |
| <asp:Parameter Name="PreScreenID" Type="Int32" /> |
| </DeleteParameters> |
| <UpdateParameters> |
| Params... |
| </UpdateParameters> |
| <InsertParameters> |
| <asp:ControlParameter ControlID="lblAppID" DefaultValue="xx" Name="AppID" PropertyName="Text" /> |
| Insert Params.. |
| </InsertParameters> |
| </asp:SqlDataSource> |
| <asp:Label ID="lblAppID" runat="server" Text="Label" Visible="False"></asp:Label> |
function
OnTabSelected(sender, eventArgs) {
var rotator = $find("<%= Rotator.ClientID %>");
rotator.startAutoPlay();
}

| function OnClientPageLoad(sender, eventArgs){ |
| var oWnd = GetRadWindow(); |
| oWnd.add_pageLoad(OnClientResize); |
| oWnd.add_resize(OnClientResize); |
| oWnd.add_command(OnClientCommand); |
| return false; |
| } |
| function OnClientCommand(sender, eventArgs) { |
| alert(OnClientCommand); |
| } |
| function OnClientResize(sender, eventArgs) { |
| alert(OnClientResize); |
| } |
