or
Hi,
We are using RadGrid with GridTemplateColumn which has a table in it with multiple controls. And handling OnRowSelected and OnRowDblClick client side events.
When user clicks some area in table then OnRowDblClick not fired while OnRowSelected works properly. as a work around we used a div outside the table with ondblclick event.
Is there anyother better solution for this as we are getting some other limitation and problem by handling double click through div?
Thanks
| <div id="contentInner"> |
| <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" /> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
| <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1"> |
| <asp:PlaceHolder ID="PlaceHolder1" runat="server"> |
| </asp:PlaceHolder> |
| </telerik:RadAjaxPanel> |
| </div> |
| <telerik:GridTemplateColumn HeaderStyle-Width="246" ItemStyle-Width="246" |
| UniqueName="TemplateColumn2"> |
| <HeaderTemplate> |
| <table ID="Table1" border="0" cellpadding="0" cellspacing="0" width="246"> |
| <tr> |
| <td align="center" colspan="3"> |
| Remaining Reserve<BR />Open MN Claims Only</td> |
| </tr> |
| <tr> |
| <td width="82px"> |
| <center> |
| Indemnity</center> |
| </td> |
| <td width="82px"> |
| <center> |
| Medical</center> |
| </td> |
| <td width="82px"> |
| <center> |
| Med Only</center> |
| </td> |
| </tr> |
| </table> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <table ID="Table2" border="0" cellpadding="0" cellspacing="0" width="246"> |
| <tr> |
| <td align="right" width="82px"> |
| <%#DataBinder.Eval(Container.DataItem, "open_indemnity", "{0:c}")%> |
| </td> |
| <td align="right" width="82px"> |
| <%#DataBinder.Eval(Container.DataItem, "open_medical", "{0:c}")%> |
| </td> |
| <td align="right" width="82px"> |
| <%#DataBinder.Eval(Container.DataItem, "open_medonly", "{0:c}")%> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| <HeaderStyle Width="246px" /> |
| <ItemStyle Width="78px" /> |
| </telerik:GridTemplateColumn> |
| AllowCustomColors | n/a |
property |
Removed |
| <telerik:RadListView ID="RadListBox1" runat="server" OnNeedDataSource="RadListView1_NeedDataSource" |
| ItemPlaceholderID="ProductsHolder" OnItemCommand="RadListView1_ItemCommand" DataKeyNames="CountrySapInfoId"> |
| <LayoutTemplate> |
| <fieldset style="width: 700px;" id="FieldSet1"> |
| <legend>SAP Country Info</legend> |
| <asp:Panel ID="ProductsHolder" runat="server" /> |
| <div style="clear: both" /> |
| <div style="padding: 10px"> |
| <asp:LinkButton ID="btnInitInsert" runat="server" Text="New Sap Country Info" CommandName="InitInsert" /> |
| </div> |
| </fieldset> |
| </LayoutTemplate> |
| <ItemTemplate> |
| <fieldset style="border-style: none; float: left; width: 300px;"> |
| <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"> |
| <tr> |
| <td width="100px"> |
| Company Code: |
| </td> |
| <td> |
| <%# Eval("SAPCompanyCode") %> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Sales Org: |
| </td> |
| <td> |
| <%# Eval("SAPSalesOrg") %> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-top: 5px"> |
| <asp:LinkButton ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" /> |
| </td> |
| </tr> |
| </table> |
| </fieldset> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <fieldset style="border-style: none; float: left; width: 300px;"> |
| <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"> |
| <tr> |
| <td> |
| Company Code: |
| </td> |
| <td> |
| <asp:TextBox ID="txtCompanyCode" runat="server" Text='<%# Bind("SAPCompanyCode") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Sales Org: |
| </td> |
| <td> |
| <asp:TextBox ID="txtSalesOrg" runat="server" Text='<%# Bind("SAPSalesOrg") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-top: 5px" colspan="2"> |
| <asp:LinkButton ID="btnUpdate" runat="server" Text="Update" CommandName="Update" |
| Width="70px" /> |
| <asp:LinkButton ID="btnDelete" runat="server" Text="Delete" CommandName="Delete" |
| Width="70px" /> |
| <asp:LinkButton ID="BtnCancel" runat="server" Text="Cancel" CommandName="Cancel" |
| CausesValidation="false" Width="70px" /> |
| </td> |
| </tr> |
| </table> |
| </fioeldset> |
| </EditItemTemplate> |
| <InsertItemTemplate> |
| <fieldset style="border-style: none; float: left; width: 300px;"> |
| <table cellpadding="0" cellspacing="0" width="100%" style="margin: 10px"> |
| <tr> |
| <td width="50%"> |
| Company Code: |
| </td> |
| <td> |
| <asp:TextBox ID="txtCompanyCode" runat="server" Text='<%# Bind("SAPCompanyCode") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Sales Org: |
| </td> |
| <td> |
| <asp:TextBox ID="txtSalesOrg" runat="server" Text='<%# Bind("SAPSalesOrg") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td style="padding-top: 5px" colspan="2"> |
| <asp:LinkButton ID="btnInsert" runat="server" Text="Insert" CommandName="PerformInsert" |
| Width="70px" /> |
| <asp:LinkButton ID="BtnCancel" runat="server" Text="Cancel" CommandName="Cancel" |
| CausesValidation="false" Width="70px" /> |
| </td> |
| </tr> |
| </table> |
| </fieldset> |
| </InsertItemTemplate> |
| </telerik:RadListView> |
| protected void RadListView1_ItemCommand(object source, RadListViewCommandEventArgs e) |
| { |
| RadListView rlv = (source as RadListView); |
| if ((e.CommandName == RadListView.PerformInsertCommandName) || (e.CommandName == RadListView.UpdateCommandName) || (e.CommandName == RadListView.CancelCommandName)) |
| { |
| rlv.InsertItemPosition = RadListViewInsertItemPosition.None; |
| } |
| else if (e.CommandName == RadListView.InitInsertCommandName) |
| { |
| rlv.InsertItemPosition = RadListViewInsertItemPosition.LastItem; |
| //e.Canceled = true; |
| } |
| if ((e.CommandName == RadListView.PerformInsertCommandName) || (e.CommandName == RadListView.UpdateCommandName)) |
| { |
| SaveCountrySapInfo(e.ListViewItem); |
| } |
| if (e.CommandName == "Delete") |
| { |
| DeleteCountrySapInfo(e.ListViewItem); |
| } |
| } |