Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
This issue occurs occasionally, not always, so before I post code, here's the essence of the issue:
   I have a RadGrid displaying customer name and address data.  If I filter by address ("Starts With"), and attempt to edit one of the filtered rows, I might find myself editing the next row in the table instead of the one I clicked on.
   Some information that might be related:
   - the most recent occurrence happened when the two customers (the one I clicked on and the one for whom I was presented the edit control) both had the same name.  I had filtered by address, "starts with", on the first three characters of the address.
   - the two customers in this case were the next to last and last on the page (the grid is set to page, not scroll through the entire dataset)
   - on subsequent refreshes of the page, the order in which these two customers were presented changes.  Their addresses are different, but the first three characters (my filter criteria) were the same.
   - when debugging, I could see that in the ItemCommand event, e.Item.ItemIndex was pointing to the fourth row (the one I intended to change), but e.Item.OwnerTableView.DataKeyValues[e.Item.Index][" my customer key as defined for the grid "] was giving me the ID of the fifth row - the row it gave me to edit.

   Has anyone else seen this and is there a solution?  I can post code if necessary.
      Ben
Radoslav
Telerik team
 answered on 19 May 2010
1 answer
133 views
This one is odd.  I have a date time picker on a page with a grid.  When you mouse over the the datetime picker, the grid repaints.  This causes the grid column lines to redraw and makes the grid appear to flash.  More importantly, this causes an Ajax call every time the user mouses over the datetime picker.

Is this a known issue and is there any way around it?

Here is the code for my page:

Main Page:
....

 

<asp:Panel ID="divManageContainersHeader" runat="server" CssClass="MedPurpleBackground" Height="32px" Width="100%">

 

 

<div style="float: left; margin: 9px 0px 0px 7px; width: 70px;">

 

 

<asp:Label runat="server" ID="lblFacilityId" Text="<%$ Resources:Common, Facility %>"

 

 

ForeColor="White" TabIndex="-1" Font-Bold="true" />

 

 

</div>

 

 

<div style="float: left; margin: 5px 0px 0px 7px; width: 125px;">

 

 

<telerik:RadComboBox runat="server" ID="cbxFacilityId" MaxHeight="150" Width="150px"

 

 

EnableTextSelection="true" AllowCustomText="false" MarkFirstMatch="true" TabIndex="1"

 

 

Height="15" AutoPostBack="true"/>

 

 

</div>

 

 

</asp:Panel>

 

 

<div id="divManageContainersTabbedSection" class="RestrictedWidth" style="width: 100%;">

 

 

<telerik:RadTabStrip ID="rtsManageContainers" runat="server" Skin="Purple" EnableEmbeddedSkins="false"

 

 

Width="100%" SelectedIndex="0" MultiPageID="rmpManageContainers" Orientation="HorizontalTop"

 

 

Style="background-color: Gray" TabIndex="-1" OnClientTabSelecting="onTabSelecting"/>

 

 

<telerik:RadMultiPage ID="rmpManageContainers" runat="server" SelectedIndex="0">

 

 

<telerik:RadPageView runat="server">

 

 

<mcp:ManageContainersProcessing ID="ProcessingTab" runat="server" />

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView runat="server">

 

 

<mct:ManageContainersTransfer ID="TransferTab" runat="server" />

 

 

</telerik:RadPageView>

 

 

<telerik:RadPageView runat="server">

 

 

<mcw:ManageContainersWeigh ID="WeighTab" runat="server" />

 

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

</div>

 

...

ManageContainer Weigh User control (the one that is repainting):
...

 

<div id="divFirstLineFilters" style="float: left; width: 100%;">

 

 

<div style="float: left; margin-top: 5px; margin-left: 7px; width: 40px;">

 

 

<asp:Label runat="server" ID="lblStatus" CssClass="FieldFont1" ForeColor="Black"

 

 

Text="<%$ Resources:Common, Status %>" />

 

 

</div>

 

 

<div style="float: left; margin-top: 5px; margin-left: 7px; width: 160px;">

 

 

<telerik:RadComboBox runat="server" ID="cbxStatus" MaxHeight="150" Width="150px"

 

 

EnableTextSelection="true" AllowCustomText="false" MarkFirstMatch="true" TabIndex="1"

 

 

Height="15" />

 

 

</div>

 

 

<div style="float: left; margin-top: 5px; margin-left: 7px;">

 

 

<asp:Label runat="server" ID="lblWeighStation" CssClass="FieldFont1" ForeColor="Black"

 

 

Text="<%$ Resources:Common, Weigh Station %>" />

 

 

</div>

 

 

<div style="float: left; margin-top: 5px; margin-left: 5px; width: 150px;">

 

 

<telerik:RadComboBox runat="server" ID="cbxWeighStation" MaxHeight="150" Width="150px"

 

 

EnableTextSelection="true" AllowCustomText="false" MarkFirstMatch="true" TabIndex="1"

 

 

Height="15" />

 

 

</div>

 

 

<div style="float: left; margin-top: 8px; margin-left: 7px; width: 25px;">

 

 

<asp:Label runat="server" ID="lblCart" Text="<%$ Resources:Common, Cart %>" />

 

 

</div>

 

 

<div style="float: left; margin-top: 5px; margin-left: 7px; width: 180px;">

 

 

<telerik:RadComboBox runat="server" ID="cbxCart" MaxHeight="150" Width="150px" EnableTextSelection="true"

 

 

AllowCustomText="false" MarkFirstMatch="true" TabIndex="1" Height="15">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Value="" Text="<%$ Resources:Common, Select Any %>" Selected="true" />

 

 

<telerik:RadComboBoxItem Value="1" Text="<%$ Resources:Common, Yes %>" />

 

 

<telerik:RadComboBoxItem Value="0" Text="<%$ Resources:Common, No %>" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</div>

 

 

<div style="float: left; margin-top: 5px; margin-left: 7px;">

 

 

<asp:Label runat="server" ID="lblEmployee" CssClass="FieldFont1" ForeColor="Black"

 

 

Text="<%$ Resources:Common, Employee %>" />

 

 

</div>

 

 

<div style="float: left; margin-top: 5px; margin-left: 5px; width: 150px;">

 

 

<telerik:RadComboBox runat="server" ID="cbxEmployee" MaxHeight="150" Width="150px"

 

 

EnableTextSelection="true" AllowCustomText="false" MarkFirstMatch="true" TabIndex="1"

 

 

Height="15" />

 

 

</div>

 

 

</div>

 

 

<div id="divSecondLineFilters" style="float: left; width: 100%;">

 

 

<div id="BarcodeDataDiv" style="float: left; clear: both; margin-top: 2px; margin-left: 12px">

 

 

<table>

 

 

<tr>

 

 

<td style="width: 80px; text-align: left">

 

 

<asp:Label runat="server" ID="Label1" Text="<%$ Resources:Common, Customer %>" />

 

 

</td>

 

 

<td style="width: 35px; text-align: left">

 

 

<asp:Label runat="server" ID="Label2" Text="<%$ Resources:Common, Site %>" />

 

 

</td>

 

 

<td style="width: 80px; text-align: left">

 

 

<asp:Label runat="server" ID="Label3" Text="<%$ Resources:Common, Department %>" />

 

 

</td>

 

 

<td style="width: 80px; text-align: left">

 

 

<asp:Label runat="server" ID="Label4" Text="<%$ Resources:Common, Sequence %>" />

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 80px; text-align: left">

 

 

<telerik:RadTextBox ID="txtCustomerNumber" runat="server" MaxLength="7" Width="75px" />

 

 

</td>

 

 

<td style="width: 35px; text-align: left">

 

 

<telerik:RadTextBox ID="txtSite" runat="server" MaxLength="3" Width="35px" />

 

 

</td>

 

 

<td style="width: 80px; text-align: left">

 

 

<telerik:RadTextBox ID="txtDepartment" runat="server" MaxLength="3" Width="75px" />

 

 

</td>

 

 

<td style="width: 80px; text-align: left">

 

 

<telerik:RadTextBox ID="txtSequence" runat="server" MaxLength="4" Width="75px" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

<div style="float: left; margin-top: 25px; margin-left: 7px; width: 80px;">

 

 

<asp:Label runat="server" ID="lblFromDate" CssClass="FieldFont1" ForeColor="Black"

 

 

Text="<%$ Resources:Common, From Date %>" />

 

 

</div>

 

 

<div style="float: left; margin-top: 22px; margin-left: 7px; width: 165px;">

 

 

<telerik:RadDateTimePicker ID="dtpFromDate" runat="server" Width="160px" TimeView-TimeFormat="HH:mm" />

 

 

</div>

 

 

<div style="float: left; margin-top: 25px; margin-left: 7px; width: 50px;">

 

 

<asp:Label runat="server" ID="lblToDate" CssClass="FieldFont1" ForeColor="Black"

 

 

Text="<%$ Resources:Common, To Date %>" />

 

 

</div>

 

 

<div style="float: left; margin-top: 22px; margin-left: 7px; width: 165px;">

 

 

<telerik:RadDateTimePicker ID="dtpToDate" runat="server" Width="160px" TimeView-TimeFormat="HH:mm" />

 

 

</div>

 

 

<div style="float: left; margin-left: 7px; margin-top: 22px;">

 

 

<asp:Button ID="btnMCWApplyFilter" runat="server" CssClass="DarkPurpleButton" UseSubmitBehavior="false"

 

 

OnClientClick="return loadMCWGridData();" Text="<%$ Resources:Common, Apply Filter %>"

 

 

Visible="true" Width="125px" />

 

 

</div>

 

 

</div>

 

</

 

asp:Panel>

 

<

 

div id="WeighGridContainer" style="min-height: 300px">

 

 

<telerik:RadGrid ID="rgMCWeigh" runat="server" Height="200px" AllowPaging="true"

 

 

GridLines="Both" AllowMultiRowSelection="False" Width="100%" AllowSorting="true"

 

 

PageSize="50" TabIndex="-1" Skin="Purple" EnableEmbeddedSkins="false">

 

 

<ClientSettings AllowKeyboardNavigation="True">

 

 

<DataBinding Location="~/Services/ManageContainersWebService.asmx" SelectMethod="GetWeigh">

 

 

</DataBinding>

 

 

<ClientEvents OnGridCreated="rgMCWeigh_Created" OnRowDblClick="rgMCWeigh_RowDblClick"

 

 

OnCommand="rgMCWeigh_Command" />

 

 

<Resizing AllowColumnResize="True" AllowRowResize="False" />

 

 

<Selecting AllowRowSelect="True" />

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" />

 

 

</ClientSettings>

 

 

<MasterTableView AutoGenerateColumns="false" TabIndex="-1" Width="100%">

 

 

<Columns>

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Status %>" DataField="RecordStatus" UniqueName="RecordStatus" SortExpression="RecordStatus" />

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Date %>" DataField="ScanDatetimeString" UniqueName="ScanDatetimeString" SortExpression="ScanDatetime" />

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Container Id %>" DataField="LabelBarcode" UniqueName="LabelBarcode" SortExpression="LabelBarcode" />

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Svccode %>" DataField="Svccode" UniqueName="Svccode" SortExpression="Svccode" />

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Weigh Station %>" DataField="WeighStationCode" UniqueName="WeighStationCode" SortExpression="WeighStationCode" />

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Weight %>" DataField="GrossWeight" UniqueName="GrossWeight" SortExpression="GrossWeight" />

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Employee %>" DataField="EmployeeName" UniqueName="EmployeeName" SortExpression="EmployeeName" />

 

 

<telerik:GridBoundColumn HeaderText="<%$ Resources:Common, Cart %>" DataField="CartFgText" UniqueName="CartFgText" SortExpression="CartFgText" />

 

 

</Columns>

 

 

<NoRecordsTemplate>

 

 

<div class="NoRecordText">

 

 

<asp:Literal ID="litNoRecords" runat="server" Text="<%$ Resources:Common, No records to display. %>" />

 

 

</div>

 

 

</NoRecordsTemplate>

 

 

</MasterTableView>

 

 

<PagerStyle Mode="NumericPages" AlwaysVisible="true" />

 

 

</telerik:RadGrid>

 

</

 

div>

 

...

Yavor
Telerik team
 answered on 19 May 2010
6 answers
94 views
Hi,

In the Windows 7 and Outlook skin for the Radgrid there is a horizontal line in the the groupheader:
-------Received from date: Saturday, March 26, 2009 --------------------------------------------

How do I achieve this line in my custom skin?

Dimo
Telerik team
 answered on 19 May 2010
1 answer
129 views
Hi ,
I have a RadTabStrip  which has  validationGroup="Pedia"  and an OnClientTabSelecting="ClientTabSelectingHandler".

    function ClientTabSelectingHandler(sender, eventArgs) {
            
              
                if (Page_ClientValidate("ValidationGroupPedia") == false) {
             
                    document.getElementById('LocationConfirm').style.display = "none";
                    return false;
                }

            }

The OnClientTabSelecting is only being fired when I remove the validationGroup or when the Page Validation is false..

Any ideas?

thnx a lot
Yana
Telerik team
 answered on 19 May 2010
1 answer
324 views
Hi telerik,

I have a simple grid with the filter options, I am trying to apply filter functionality by textbox(working fine) and combobox column, but combobox filter is not working at all, below is my code and please help asap.

<

 

telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid1"

 

 

AllowFilteringByColumn="True"

 

 

ClientSettings-Scrolling-ScrollHeight="500"

 

 

ClientSettings-Scrolling-UseStaticHeaders="true"

 

 

ClientSettings-Scrolling-AllowScroll="true" OnPreRender="RadGrid1_PreRender"

 

 

ClientSettings-Selecting-AllowRowSelect="true" EnableLinqExpressions="true"

 

 

AllowSorting="True" runat="server">

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<MasterTableView >

 

 

<Columns>

 

 

<telerik:GridBoundColumn HeaderText="Employee Number" DataField="KEYID"

 

 

UniqueName="KEYID" SortExpression="KEYID" FilterControlWidth="30px"

 

 

Visible="false" ShowFilterIcon="false" />

 

 

<telerik:GridBoundColumn HeaderText="Employee Name" DataField="Name" UniqueName="Name"

 

 

SortExpression="Name" HeaderStyle-Width="300px" FilterControlWidth="140px"

 

 

AutoPostBackOnFilter="true" CurrentFilterFunction="contains" ShowFilterIcon="false" />

 

 

<telerik:GridBoundColumn HeaderText="SSN" DataField="EMP_SSN" HeaderStyle-Width="205px"

 

 

UniqueName="SSN" SortExpression="EMP_SSN"

 

 

FilterControlWidth="90px" AutoPostBackOnFilter="true" CurrentFilterFunction="contains"

 

 

ShowFilterIcon="false" />

 

 

<telerik:GridBoundColumn HeaderText="Pay Period" DataField="CODE" HeaderStyle-Width="205px"

 

 

UniqueName="CODE" >

 

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxPP" DataSourceID="SqlDataSource4" DataTextField="Code"

 

 

DataValueField="Code" Height="100px" AppendDataBoundItems="true" AutoPostBack="true"

 

 

SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Code").CurrentFilterValue %>'

 

 

runat="server" OnClientSelectedIndexChanged="PPIndexChanged"  >

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="All" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

 

 

<script type="text/javascript">

 

 

function PPIndexChanged(sender,args) {

 

 

var tableView=$find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID%>");

 

 

tableView.filter("Code",args.get_item().get_value(),"EqualTo");

 

}

 

</script>

 

 

</telerik:RadScriptBlock>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<ClientEvents OnRowSelected="RowSelected" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

<asp:SqlDataSource ID="SqlDataSource4" runat="server"></asp:SqlDataSource>

 




Kiran
Pavlina
Telerik team
 answered on 19 May 2010
1 answer
102 views
Hi,

We have menu structure with root level and one group. For example:
root item
  • child item1
  • child item2
root item2
  • child item1
  • child item2
etc.

I need all those items to be always visible (not expand them onhover or onclick). Is there some way to do that?

Thank you.
Shinu
Top achievements
Rank 2
 answered on 19 May 2010
3 answers
153 views
Hi,
After spending way too much time looking for an intereactive gantt control, I've given up and am now looking for a static gantt chart.
In particular, will the telerick chart for asp.net support gantting capabilities like milestones, percent complete and task dependencies? If so, is there an example I can look at?
Thanks ... Ed
Vladimir Milev
Telerik team
 answered on 19 May 2010
3 answers
104 views
Hi All,

As part of a process of optimizing my grids I want to include a drop down combobox on the page and ideally to conserve space it will be in the pager section.  I intend on providing a MaxRows parameter to my Stored Procedure that will then use SET ROWCOUNT @MaxRows to limit the number of rows returned.  To that end I need a combo box to show a variety of options for the rowcount. 

All easy enough until I need to add the combo box to the pager.  I am using the standard pager except for the fact that I'm inserting some custom numbers into the results per page dropdown.  Is there a simple way to extend the pager or will I be stuck having to use a pager template?

If I have to use the pager template, is there an example somewhere of how to duplicate the normal style?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 19 May 2010
4 answers
105 views
I'm having an issue when a request is picked up by the RadAjaxManagerProxy that is located in a user control within a RadPageView and RenderSelectedPageOnly of the RadMultiPage is set to true.  When the response comes back it fails to exclude validators from the Page_Validators array.  It includes validators from user controls located in other RadPageViews which causes javascript errors when it tries to get the element by getElementById.  If the request (button controls in this case) is removed from the RadAjaxManagerProxy and a normal postback occurs there is no issue.

Please advise.

I'm using version 2009.3.1503.20

Thanks
Pavlina
Telerik team
 answered on 19 May 2010
17 answers
322 views
Hi,

I downloaded the D1040 Skin.
As I see the author uses css sprites for command items.

But how is this supoorted with grid?

For an example I want to use a GridEditCommandColum with ButtonType="ImageButton".

This results that Grid emits an img link to /Edit.gif - which of course is not found.

Regards

Manfred
Dimo
Telerik team
 answered on 19 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?