<script type="text/javascript">
// Ugly hack var nonIEScrollPosition = 0; var IEScrollPosition = 0; function setScrollPosition(sender, args) { nonIEScrollPosition = document.body.scrollTop; IEScrollPosition = document.documentElement.scrollTop; } function updateScrollPosition(sender, args) { document.body.scrollTop = nonIEScrollPosition; document.documentElement.scrollTop = IEScrollPosition; } </script> <telerik:RadAjaxManager ID="ajaxManager" runat="server"> <ClientEvents OnRequestStart="updateScrollPosition"></ClientEvents> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="ddlTMS"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ddlBuNo" LoadingPanelID="radLoadingPanel" /> <telerik:AjaxUpdatedControl ControlID="lblCostCenter" LoadingPanelID="radLoadingPanel" /> </UpdatedControls> <telerik:RadComboBox ID="ddlTMS" Skin="Simple" DataTextField="TypeModelSeriesID" DataValueField="TypeModelSeriesID" OnClientDropDownOpening="setScrollPosition" AutoPostBack="true" runat="server"></telerik:RadComboBox> <asp:CustomValidator ID="cvTMS" Display="Dynamic" ControlToValidate="ddlTMS" ValidationGroup="Save" EnableClientScript="false" OnServerValidate="CheckTMS" runat="server"></asp:CustomValidator> <Columns>
<telerik:GridClientSelectColumn>
</telerik:GridClientSelectColumn>
</Columns>
<ItemTemplate>
<Table......
</ItemTemplate>
My problem is the "RowClick" & "RowDBClick" events didn't fire if I click the row content, I need to click the First Column (select checkbox) in order to fire the events.Any advise?
Thanks.
I have an issue where the combobox renders without a bottom border (see attached image) and the right down arrow doesn't work (it doesn't cause anything to happen when clicked). Here's the .aspx:
<div runat="server" id="pnlAdvancedSearch">
<table width="100%" cellspacing="1" cellpadding="1" border="0">
<tr>
<td valign="middle" style="width: 110px;">
<asp:Label runat="server" ID="lblProject" Text="Project:" />
</td>
<td valign="middle" style="width: 250px;">
<telerik:RadComboBox runat="server" ID="ddProject" NoWrap="True" EmptyMessage="Please enter value"
ShowDropDownOnTextboxClick="true" EnableLoadOnDemand="true" ShowMoreResultsBox="true"
RegisterWithScriptManager="true" AppendDataBoundItems="False" EnableVirtualScrolling="true"
Height="200px" Width="100%" OnItemsRequested="ddProject_ItemsRequested" />
</td>
...
Any suggestions?
<
asp:UpdatePanel ID="upInterimComments" runat="server">
<radG:RadGrid
......
</
radG:RadGrid>
</asp:UpdatePanel>
<telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" OnColumnCreated="RadGrid1_ColumnCreated" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound" OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand" OnDeleteCommand="RadGrid1_DeleteCommand" AllowFilteringByColumn="True" GridLines="None" > <HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="ServerBind" AllowSorting="true" AutoGenerateColumns="false" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" DataKeyNames="SICItemID" > <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" /> <telerik:GridBoundColumn DataField="SICItemID" HeaderText="ID" UniqueName="SICItemID" SortExpression="SICItemID" Visible="false" ReadOnly="true" Display="false" /> <telerik:GridBoundColumn DataField="ItemName" HeaderText="Question" UniqueName="ItemName" ItemStyle-Wrap="true" ItemStyle-Width="300" SortExpression="ItemName" MaxLength="2000" ReadOnly="false" Display="true" /> <telerik:GridDropDownColumn FooterText="SIC Code" UniqueName="ddlSICCodes" ReadOnly="false" ListTextField="SICCode1" ListValueField="SICID" DataSourceID="ddsGetSICCodes" HeaderText="SIC Code" DataField="SICCode.SICID" AllowSorting="true" DefaultInsertValue=""> </telerik:GridDropDownColumn>
</Columns> <EditFormSettings> <EditColumn UniqueName="EditCommandColumn1"></EditColumn> </EditFormSettings> </MasterTableView> <ClientSettings AllowExpandCollapse="true" EnableRowHoverStyle="true" /> </telerik:RadGrid> <cc1:DomainDataSource runat="server" ID="ddsGetSICCodes" DomainServiceTypeName="ID.DomainServices.ListTypesDomainService" SelectMethod="GetSicCodes" EnableUpdate="true" EnableInsert="false" EnableDelete="false" > <SelectParameters> <asp:SessionParameter Name="Scope" SessionField="MyScope" DefaultValue="" ConvertEmptyStringToNull="true" DbType="Guid" /> </SelectParameters> </cc1:DomainDataSource>protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) { GridEditableItem editedItem = e.Item as GridEditableItem; try { ListTypesDomainService lds = new ListTypesDomainService(); Guid sicItemID = new Guid(editedItem.GetDataKeyValue("SICItemID").ToString()); var updateSicItem = lds.GetSicItem(sicItemID); if (updateSicItem != null) { editedItem.UpdateValues(updateSicItem); lds.SaveChanges(); } } catch (Exception ex) { ProcessException(RadGrid1, ex); e.Canceled = true; } }