Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
302 views

I have a RadGrid that does sorting, but only for the current page. This particular grid has a year's worth of data divided into rows of 7 (52 pages * 7 = 365 days), but when I click on the first column (a date column named ReportDate) to sort the data, the sort is only applied against the current page's data! At first I thought maybe this was related to how date values are sometimes treated as strings, but that doesn't seem to be the case.

Here's a snippet of the grid's markup:


<telerik:RadGrid ID="RadGrid_StaffProductivitySummary" runat="server" AutoGenerateColumns="False"
    PageSize="7" Width="1185px" Height="500px" GridLines="None" 
    VirtualItemCount="365" Skin="Windows7" HorizontalAlign="Center" enablerowhoverstyle="true">
    <ItemStyle HorizontalAlign="Center" BorderWidth="0px"/>
    <MasterTableView horizontalalign="Center" gridlines="None" AllowPaging="True" AllowCustomPaging="true" PageSize="7" AllowSorting="true"
        commanditemdisplay="Top" >
        <SortExpressions>
            <telerik:GridSortExpression FieldName="ReportDateSort" SortOrder="Descending" />
        </SortExpressions>
        <CommandItemSettings ExportToPdfText="Export to Pdf" 
            ShowAddNewRecordButton="False"></CommandItemSettings>
        <Columns>
            <telerik:GridDateTimeColumn DataField="ReportDate" SortExpression="ReportDateSort"
                UniqueName="ReportDate" HeaderText="" PickerType="None" DataFormatString="{0:dd-MMM-yyyy}"
                HeaderStyle-Width="75px" HeaderStyle-Font-Bold="true">
            </telerik:GridDateTimeColumn>
            <telerik:GridTemplateColumn UniqueName="IncomingFaxesDaily" DataField="IncomingFaxesDaily"
                InitializeTemplatesFirst="false">
                <HeaderStyle Width="200px"/>
                <HeaderTemplate>
                    <table id="faxHeaderTable" cellspacing="1" cellpadding="3">
                        <tr>
                            <td colspan="4" align="center" style="background-color: #D8E6F1;"><b>Daily Fax Summary</b>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 25%;"><b>Incoming</b></td>
                            <td style="width: 25%;"><b>Processed</b></td>
                            <td style="width: 25%;"><b>Not Processed</b></td>
                            <td style="width: 25%;"><b>Deleted</b></td>
                        </tr>
                    </table>
                </HeaderTemplate>
                <ItemTemplate>
                    <table id="faxItemTable" cellspacing="1" cellpadding="1" width="100%" style="text-align:center;" border="0">
                        <tr>
                            <td style="width: 25%;"><%# DataBinder.Eval(Container.DataItem, "IncomingFaxesDaily") %></td>
                            <td style="width: 25%;"><%# DataBinder.Eval(Container.DataItem, "FaxesProcessedDaily") %></td>
                            <td style="width: 25%;"><%# DataBinder.Eval(Container.DataItem, "FaxesNotProcessedDaily") %></td>
                            <td style="width: 25%;"><%# DataBinder.Eval(Container.DataItem, "FaxesDeletedDaily") %></td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:GridTemplateColumn>          
        </Columns>
        <EditFormSettings>
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>
        </EditFormSettings>
        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
            Font-Underline="False" HorizontalAlign="Center" Wrap="True" VerticalAlign="Middle" />
        <AlternatingItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
            Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" Wrap="True" />
        <EditItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
            Font-Underline="False" HorizontalAlign="Center" Wrap="True" />
        <PagerStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
            Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" />
        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
            Font-Underline="False" HorizontalAlign="Center" Wrap="True" VerticalAlign="Bottom" />
    </MasterTableView>
    <HeaderStyle BorderStyle="None" />
    <EditItemStyle BackColor="#FFFF99" Font-Bold="False" Font-Italic="False" 
        Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
        Wrap="True" />
</telerik:RadGrid>

I'm currently using the standard sorting (no overriding of the default sorting behavior by capturing the SortCommand event), though I've tried it both ways. The data source is populated in the NeedDataSource event handler and this is working fine (I even tried re-applying the Sort Expression here, but to no avail). Currently, I have modified the data source resultset to return the same date in two columns, ReportDate and ReportDateSort. I originally just used ReportDate for both the DataField and SortExpression values, but then thought maybe I needed a separate sorting column in case the format of the data (perhaps as a string) was causing problems, so I added ReportDateSort fort his purpose.

None of these different options have worked thus far. No matter which page I'm on within the data source, the sort only applies to that page.

Any help appreciated!

Thanks,

Jon
Iana Tsolova
Telerik team
 answered on 06 May 2011
4 answers
102 views
Hi there,

In my application popups are dynamicly created and managed by a windowmanager. Currently my WindowManager is on a UpdatePanel which updates the whole manager when a Window is added.

How can I use the WindowManager and only update a single Window at the time it's added?
Svetlina Anati
Telerik team
 answered on 06 May 2011
1 answer
89 views
Hi,

I am using radgrid retrieving record from xml. i am using paging for this grid. when i clicking page numbers it is firing ItemCommand. but buttons are not firing in ItemCommand?

Please check the attached image.let me know how to resolve this issue.

Thanks,
Dhamu.
Iana Tsolova
Telerik team
 answered on 06 May 2011
3 answers
141 views
Hello,

 is there anyway to have the "Contains" option in filter options for GridDateTimeColumn  ?
Pavlina
Telerik team
 answered on 06 May 2011
2 answers
182 views
Hello,

I have a tooltip inwhich radgrid is embaded. I observed image column width is too big. though the column width is fixed to 2% its not reducing. Is there any other way to reduce the column width ?

<telerik:RadGrid ID="rg_tt_CSMD_Backlog_By_Status_FL" runat="server" AllowSorting="false"
                GridLines="None"  AllowPaging="true" BorderStyle="NotSet" Height="99.9%"
                Width="99.9%" OnNeedDataSource="rg_tt_CSMD_Backlog_By_Status_FL_NeedDataSource"
                OnItemDataBound ="rg_tt_CSMD_Backlog_By_Status_ItemDataBound"  AutoGenerateColumns="false" HeaderStyle-Wrap="false">
                <MasterTableView DataKeyNames="CASES" CommandItemDisplay="None" TableLayout="Auto"
                    HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
                    <Columns>
                        <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="imageCol" HeaderStyle-Width="2%" >
                            <ItemTemplate>
                                <a href="../CustomerSupport/CaseViewer.aspx?ID=<%#Eval("CASES")%>">
                                    <asp:Image ImageUrl="~/Images/case.png" ID="imgTest" runat="server" BorderWidth="0px" />
                                </a>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="CASES" HeaderText="CASE" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="10%"
                            HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="imageappSerial" HeaderStyle-Width="2%">
                            <ItemTemplate>
                                <a href="../AccountManagement/ProductViewer.aspx?ID=<%#Eval("SERIAL")%>">
                                    <asp:Image ImageUrl="~/Images/server_database.png" ID="imgTest" runat="server" BorderWidth="0px" />
                                </a>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="appSERIAL" HeaderText="SERIAL" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="10%"
                            HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
                        </telerik:GridBoundColumn>
                         <telerik:GridBoundColumn DataField="SITE" HeaderText="SITE" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="35%"
                            HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SUMMARY" HeaderText="SUMMARY" DataFormatString="<nobr>{0}</nobr>" HeaderStyle-Width="48%"
                            HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    </ClientSettings>
            </telerik:RadGrid>

Tooltip code:
<telerik:RadToolTipManager ID="ttm_CSMD_Backlog_By_Status_FL" runat="server" EnableShadow="true"
    Animation="Resize" HideEvent="ManualClose" Height="70" Width="75" OnAjaxUpdate="OnAjaxUpdate"
    Position="BottomCenter" RelativeTo="Element" OffsetY="0" OnClientResponseEnd="OnClientResponseEnd">
</telerik:RadToolTipManager>

Svetlina Anati
Telerik team
 answered on 06 May 2011
1 answer
163 views
The embedded Office2007 theme for the RadTabStrip (ASP.NET AJAX version) has an embedded clear that caused me a problem in a two column floated layout.  Hopefully posting this might help others who have the same problem.

The problem style was as follows:

.RadTabStrip

.rtsLevel{
clear:both;
overflow: hidden;
position: relative;
width: 100%;
}

This was pushing the div the style is attached to and therfore my tabs down to the bottom of the page when it was viewed in any non IE browser.

I added the following more specific style to a stylesheet in my theme and the problem was solved.

div.RadTabStrip

.rtsLevel{
clear: none;
overflow: hidden;
position: relative;
width: 100%;
}

Tajes
Top achievements
Rank 1
 answered on 06 May 2011
1 answer
47 views
Hello,

I want to maintain the gropheader state even though page has a postback event. I found link. Can you please provide it in VB since I am not able to hook up itemcommand event.
Pavlina
Telerik team
 answered on 06 May 2011
2 answers
333 views
Hi Sir/Madam,

Below is my requirement.

customer places orders for products. each order has to travel a sequential workflow like order placing, order approving etc. In my screen am using MasterTableView and DetailTables sections of grid to display Customer and Orders information.

When user clicks/expands customer's record, all order information will be displayed in GridTableView of DetailTables section. Based on order's status user did some actions out side of the grid. Based on the user's action, order status will be modified.

Here what I want is is their any way to bind/rebind details table only so that user can be able to view modified status directly.

 Anyone please me in this regard, thanks in advance.

Thanks & Regards,
Sumanth
Sumanth
Top achievements
Rank 1
 answered on 06 May 2011
1 answer
108 views
I've found an issue with our product zoom radwindow recently that has me a little confused. On our product details page (example), if you click the 'Click to view larger' link below the product image, it brings up our views & zoomer tool in a modal radwindow. However, you'll notice the top is hiding under our header (see attached). As soon as you click inside the window, it displays properly. I checked the code and the header has z-index of 3001, and the window is at 3002. Can anyone explain this?

Using version 2008.1.515.20.
Svetlina Anati
Telerik team
 answered on 06 May 2011
1 answer
115 views
Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Source File: http://localhost/test/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=loginpanel1_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3de828f0-5e0d-4c7d-a36b-56a9773c0def%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.519.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afcd44c12-f50d-4937-b05d-1aa46b5c5b3e%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3aed16cbdc%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1%3aaa288e2d%3a874f8ea2%3af9b9258%3a58366029


I can't understand this means
please give us understandable to approach for resolve this error.
Thanx
Iana Tsolova
Telerik team
 answered on 06 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?