Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
228 views
This is the first time I see such issue. There must be something wrong I couldn't figure out.

I am sorting on a column of type Decimal. But it doesn't sort values properly. Please see attached. Below is my code!

<telerik:RadGrid ID="grdMain" runat="server" GridLines="None" Width="100%" AllowSorting="true">
                                        <ExportSettings>
                                            <Pdf PageWidth="8.5in" PageHeight="11in" PageTopMargin="" PageBottomMargin="" PageLeftMargin=""
                                                PageRightMargin="" PageHeaderMargin="" PageFooterMargin=""></Pdf>
                                        </ExportSettings>
                                        <MasterTableView AutoGenerateColumns="False" HierarchyDefaultExpanded="true" ExpandCollapseColumn-CollapseImageUrl="~/images/trans.gif">
                                            <RowIndicatorColumn Visible="False">
                                                <HeaderStyle Width="20px"></HeaderStyle>
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn Visible="False" Resizable="False">
                                                <HeaderStyle Width="20px"></HeaderStyle>
                                            </ExpandCollapseColumn>
                                            <SortExpressions>
                                                <telerik:GridSortExpression FieldName="Rate" />
                                            </SortExpressions>
                                            <Columns>
                                                <telerik:GridTemplateColumn HeaderText="Carrier" SortExpression="Carrier">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCarrier" runat="Server" Text='<%#Eval("Carrier")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="APICode" Visible="false">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblAPICode" runat="Server" Text='<%#Eval("MailServiceCode")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Code" Visible="false">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCode" runat="server" Text='<%#Eval("LocalShipServiceCode")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Name" SortExpression="MailService">
                                                    <ItemTemplate>
                                                        <%#Eval("MailService")%>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="Rate" SortExpression="Rate">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRate" runat="server" Text='<%#FormatCurrency(Eval("Rate"), 2)%>'></asp:Label>                                                        
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn HeaderText="">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="btnSelect" runat="server" Text="Select" CommandName="Select"
                                                            CommandArgument='<%# eval("LocalShipServiceCode") & "," & eval("Rate") & "," & eval("Carrier") %>'></asp:LinkButton>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>

The sort thing was just a piece of cake in RadGrid, but for some reason, it is a mess. I am binding the grid in NeedDataSource event as

Me

 

.grdMain.DataSource = CType(Session("rates"), Generic.List(Of Core.Shipping.RateEstimate.ShippingEstimate))

 


Where ShippingEstimate is a class with some properties (as bound to grid).
Any Idea why it is not sorting properly?

thanks,
Sameers
Vasil
Telerik team
 answered on 11 Nov 2010
1 answer
68 views
Hi,

I am installed Trial version of Rad Controls for ASP.Net Ajax in 2 systems.one is Windows XP OS & another one is Windows Vista OS.I have few problems...

1)I am getting all the controls in Tool Box in Windows Vista System,but in Windows XP Controls are not added in Tool Box.What is the reason.

2)In Windows XP System i didn't find some controls like Button Types(Button,CheckBox,RadioButton,Link button,Image button,Toggle button),what is the reason?

3)Is Label control exist in Rad Controls for ASP.Net Ajax?

4)If i purchased developer version of Rad Controls for ASP.Net Ajax($799) kit all the above problems exist?

5)I read some articles in this site,what i observed is Rad Controls for ASP.Net Ajax is Browser Independent.But after execution of my application in Mozilla,Google Chrome & IE7,it's working fine in IE but Rad Menu not working properly(scrolling takes effect in IE only).

6)In my application huge amount of data exist,so if i move to last page from first page in Rad Grid it takes lots of time.How to over come this problem.


Please suggest me solutions for all these above problems...

Thanks in advance...

Vasil
Telerik team
 answered on 11 Nov 2010
3 answers
160 views
could u anyone help to fix the issue,
 when i am trying to set mask for radmaskedtextbox on client side and trying to set value in client side after setting mask it will not show the value in maskedtextbox. only empty textbox is displayed.
Tsvetina
Telerik team
 answered on 11 Nov 2010
1 answer
96 views
I want to use the ToolTipManager for 4 different links.  But I want to use the same content for each ToolTip.  How would I use a table, which includes several controls, for each ToolTip?  How do you add decide the content to display in a ToolTipManager?  In a RadToolTip, it is easy.  I just place my content between the <telerik:RadToolTip></telerik:RadToolTip> tags.  But you cannot do that in a ToolTipManager.
Svetlina Anati
Telerik team
 answered on 11 Nov 2010
2 answers
134 views
I have a ticket on this, but I was wondering if anyone ever had this?  I have one page that is throwing a bunch of render errors (asp.net dotnet 2.0)

"there was an error rendering the control.  Check to make sure all properties are valid.  Exception was: system.web.httpexception(0x80004005)  Multiple controls with the same ID 'xchkDesignRental' were found.  Findcontrol requires that the controls have unique ID's."

This is making me crazy.  The controls are uniquely named, here and in the designer.vb.  note I changed the name, and the pickers just show some other control name as the problem.  If I remove the shared element, they work in design mode.  They run properly even when they don’t render right.  below is a screenshot, followed by the definition.  I have tried replacing them to no avail.  My next step is to delete every control one after another to see if that helps.

http://img408.imageshack.us/img408/4802/raderror.jpg

<telerik:RadDatePicker ID="rdpSetupDate" runat="server" Skin="WebBlue" Width="100px"
SharedCalendarID="calShared" Height="16px" DateInput-CssClass="textbox">
                               </telerik:RadDatePicker>

    <div style="displaynone">
        <telerik:RadCalendar ID="calShared" runat="server">
        </telerik:RadCalendar>
    </div>
David Avery
Top achievements
Rank 1
 answered on 11 Nov 2010
2 answers
86 views

<

 

 

script type="text/javascript" src="../Scripts/corCalendarEvent.js"></script>
<

 

 

script type="text/javascript">

 

 

 

 

 

 

 

function OpenCalendarSectionWin(sender, eventArgs) {  

 

var oWnd = $find("<%=EventWindow.ClientID %>");

 

oWnd.setUrl(

 

"HttpContext.Current.Request.Url.ToString()");

 

 

 

 

 

 

var apt = eventArgs.get_appointment();

 

subject = apt.get_subject();

description = apt.get_description();

start = apt.get_start();

end = apt.get_end();

start = dateFormat(start,

 

"dddd, mmmm, dS, yyyy, h:MM:ss TT");

 

 

 

end = dateFormat(end,

 

"dddd, mmmm, dS, yyyy, h:MM:ss TT");

 

 

 

document.getElementById(

 

"EventText").innerHTML = subject;

 

 

 

document.getElementById(

 

"EventDescription").innerHTML = description;

 

 

 

document.getElementById(

 

"EventStart").innerHTML = start.toString() + " CST";

 

 

 

document.getElementById(

 

"EventEnd").innerHTML = end.toString() + " CST";

 

 

 

oWnd.show();

}

 

 

</

 

 

script>

//Only in IE "7" do I get the following error: Object doesn't support this property or method
Please advise procedure

 

 

 

 

 

Kevon
Top achievements
Rank 1
 answered on 11 Nov 2010
11 answers
282 views
Hi,
I have a problem that only seems to occurs when the HierarchyLoadMode is set to Client. I have used the client mode in other similar scenarios and have not had any problems.
I load up an intial page in a rad window. This rad window contains a user control. This user control contains a rad grid summary, amongst other things.
The rad grid summary contains a master table and one detail table. The tables are databound using NeedDataSource and DetailTableDataBind. The grid has a column containing a link that launchs a different rad window which allows you to edit and save some related data. When you close the rad window, it fires the OnWindowClose hook of the radwindow and causes an ajax post back of the control that contains the rad grid (i.e. the controls contained in the original rad window). This all works fine until you expand one of master table rows.

If you expanded one of the items,and then try to open the second rad window again by clicking on that link in the radgrid column, then close the radwindow (hence triggering the ajax update to the control containing the grid), you get the error:

"Specified argument was out of the range of valid values.
Parameter name: ItemHierarchicalIndex"


This only occurs if HiearchyLoadMode is set to client. Setting it to ServerBind and ServerOnDemand is fine. I have the same exact setup somewhere else, and it is working ... So i must be doing something silly in this particular example. Would appreciate it if I could get some help.

The control containing the RadGrid:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadGridSummary"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGridSummary" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
<div class="BaseSummary" id="BaseSummaryDiv" runat="server"
    <div class="BaseSummaryControl"
        <telerik:RadGrid ID="RadGridSummary" runat="server" PageSize="10" AutoGenerateEditColumn="false" 
            GridLines="None" BorderStyle="Solid" AllowMultiRowSelection="true"
            <ClientSettings Selecting-AllowRowSelect="true"
            </ClientSettings> 
            <MasterTableView DataKeyNames="SecurityGuardAvailabilityTemplateId" CurrentResetPageIndexAction="SetPageIndexToFirst" 
                Dir="LTR" TableLayout="Auto" Frame="void" CommandItemDisplay="None" GridLines="Horizontal" HierarchyLoadMode="Client" 
                AutoGenerateColumns="false"
                <NoRecordsTemplate> 
                    <div> 
                        There are no records to display</div> 
                </NoRecordsTemplate> 
                <Columns> 
                    <telerik:GridTemplateColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" 
                        ForceExtractValue="None" HeaderText="Availability Times" UniqueName="ShiftName"
                        <ItemTemplate> 
                            <asp:Label ID="guardAvailabilityTime" runat="server"></asp:Label> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
                <ParentTableRelation> 
                    <telerik:GridRelationFields DetailKeyField="TemplateId" MasterKeyField="SecurityGuardAvailabilityTemplateId" /> 
                </ParentTableRelation> 
                <DetailTables> 
                    <telerik:GridTableView Name="DaysTable" DataKeyNames="TemplateId" AutoGenerateColumns="false"
                        <Columns> 
                            <telerik:GridBoundColumn HeaderText="Day" UniqueName="DayName" DataField="DayName"
                            </telerik:GridBoundColumn> 
                            <telerik:GridDateTimeColumn HeaderText="Start Time" UniqueName="StartTime" DataField="StartTime" 
                                DataFormatString="{0:HH:mm}"
                            </telerik:GridDateTimeColumn> 
                            <telerik:GridDateTimeColumn HeaderText="End Time" UniqueName="EndTime" DataField="EndTime" 
                                DataFormatString="{0:HH:mm}"
                            </telerik:GridDateTimeColumn> 
                        </Columns> 
                    </telerik:GridTableView> 
                </DetailTables> 
                <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" 
                    Resizable="False" Visible="False"
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" 
                    Visible="False"
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
            </MasterTableView> 
        </telerik:RadGrid> 
    </div> 
</div> 




This is the code that populates the grids:
void RadGridGuardSummary_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e) 
    { 
        if (e.DetailTableView.Name == "DaysTable") 
        { 
            GridDataItem parentRow = e.DetailTableView.ParentItem; 
            int securityGuardAvailabilitiesTemplateId = (int)parentRow.OwnerTableView.DataKeyValues[parentRow.ItemIndex]["SecurityGuardAvailabilityTemplateId"]; 
            SomeDataRecord rec = SomeDatatable.GetRecord(securityGuardAvailabilitiesTemplateId.ToString(), false); 
            e.DetailTableView.DataSource = DateTemplate.DayTemplate.GenerateDayTemplates(rec); 
        } 
    } 
 public void RadGridSummary_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
         DataTable data = this.GetData(); 
         if (data != null) 
            { 
                RadGridSummary.DataSource = data
            } 
    } 

This is the javascript that is called when the radwindow is closed:
function OnRadWindowClose() { 
                var oWnd = GetRadWindow(); 
                var parentWindow = oWnd.GetWindowManager().GetWindowByName("StandardWindow"); 
                var contentFrame = parentWindow.GetContentFrame(); 
                contentFrame.contentWindow.RefreshControls(); 
                oWnd.Close(); 
            } 

This is the RefreshControils method:
function RefreshControls() { 
                var ajaxManager = $find("<%=RadAjaxManager1.ClientID%>"); 
                if (ajaxManager != null) { 
                    ajaxManager.ajaxRequest("Refresh"); 
                } 
                return
            }        

This is the AjaxUpdate method
void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) 
    { 
        if (e.Argument == "Refresh"
        { 
            ReloadRecord(); 
        } 
    } 

Again, any help will be much appreciated. This one has me stumped
Radoslav
Telerik team
 answered on 11 Nov 2010
1 answer
103 views
In IE7 the resource header width is not wide enough to show the contents of the header.

Supposedly this was fixed in Q1 2010 SP1 (version 2010.1.415) :
  • Fixed: Timeline view Vertical header width is broken in IE7

I am running version 2010.2.826.35 and am still seeing the issue.

Just wondering if there is a workaround or something I can use.
Peter
Telerik team
 answered on 11 Nov 2010
10 answers
241 views
The Telerik Suite of tools is just plain Awesome, but now with the ability for a programmer to be able to also easily tweek the look and feel of the controls without having to know all that CSS crap is just genious.  I will be using the VSB as soon is it is made available in the control suite.  Thank you Telerik for making my job easier!

Steve
Bart Welch
Top achievements
Rank 1
 answered on 11 Nov 2010
5 answers
151 views
Hi!

I have an appointment like this:
StartDate: 2010-01-21 08:00
EndDate: 2010-01-23 10:00

In the scheduler it will be treated as an all-day-appointment only on day 2010-01-22.

Is it possible to treat the entire appointment as "all-day" in the scheduler somehow?

What I want is to show the appointment in the "all-day-row" all three days.
Dobry Zranchev
Telerik team
 answered on 11 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?