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

I have a RadGrid configured with Paging and Grouping with Aggregates
- AllowPaging = true
- ShowGroupFooter = true
- RetainGroupFootersVisibility=true

 

 

 

 

<telerik:GridGroupByExpression>
    <GroupByFields>
        <telerik:GridGroupByField FieldName="A" SortOrder="Ascending" HeaderText="A" />
    </GroupByFields>
</telerik:GridGroupByExpression>

I have 1 column defined as Aggregate

 

<telerik:GridBoundColumn AllowFiltering="False" SortExpression="Amount"
    DataField="Amount"  DataFormatString="{0:C2}" Groupable="False" HeaderText="Amount"
    ReadOnly="True" Reorderable="False" Resizable="False" UniqueName="Amount"
    Aggregate="Sum">
</telerik:GridBoundColumn>

Problem

The RadGrid, by default, appears to Aggregate for items in the current page (i.e. The Grouping Total that appears in the GroupFooter... only applies to visible items on the currently selected page (even when the group extends into other pages).

Question

How can I implement a custom aggregate in which I sum all of the values for a particular column within a group (across all data items that are in the group / i.e. across all pages)? 




Preston
Top achievements
Rank 1
 answered on 09 Aug 2012
1 answer
79 views
In any other excel format, the caption appears as an extra row at the top of the spreadsheet. Is there a way to get this behavior when exporting to BIFF?
If not is there a way to insert an arbitrary row at the top of the resultant spreadsheet?

Thanks!
Daniel
Telerik team
 answered on 09 Aug 2012
8 answers
301 views
Hi,

I have a RadTabStrip tied to a RadMultiPage.  The RadTabStrip has CausesValidation="false" and the ontabclick event is handled.  In the event handler, I call Page.Validate() and then inspect Page.IsValid.  When the RadMultiPage control has RenderSelectedPageOnly="false", this works as expected.  When it has RenderSelectedPageOnly="true", my validator is effectively ignored and Page.IsValid is returned as true.

Example code:
    <telerik:RadScriptManager ID="rsm" runat="server"></telerik:RadScriptManager>
  
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                    <telerik:AjaxUpdatedControl ControlID="ltResult" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>    
      
    Result: <asp:Literal ID="ltResult" runat="server" Text=""></asp:Literal>
    <br />
  
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            ontabclick="RadTabStrip1_TabClick" SelectedIndex="0" CausesValidation="false">
        <Tabs>
            <telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="RadPageView1" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab2" PageViewID="RadPageView2">
            </telerik:RadTab>
        </Tabs>
</telerik:RadTabStrip>
    </div>
    <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0" RenderSelectedPageOnly="false">
        <telerik:RadPageView ID="RadPageView1" runat="server">        
            Tab 1 content:  <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TextBox2" runat="server" ControlToValidate="TextBox2" ErrorMessage="Client Error">
                            </asp:RequiredFieldValidator>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">
            Tab 2 content:            
        </telerik:RadPageView>
    </telerik:RadMultiPage>
protected void RadTabStrip1_TabClick(object sender, Telerik.Web.UI.RadTabStripEventArgs e)
        {
            Page.Validate();
            if (Page.IsValid)
            {
                ltResult.Text = "page is valid";
            }
            else 
            {
                ltResult.Text = "page is not valid";
            }
        }

If you run this code and click on the second tab, the ltResult control shows "page is not valid".  This is correct as there is a requiredfieldvalidator in the RadPageView.  If you change the value of RenderSelectedPageOnly to "true", the ltResult control shows "page is valid", which is incorrect.

In reality, my page has several RadPageView controls with dynamically loaded usercontrols containing a lot of content.  I need to be able to set RenderSelectedPageOnly="true" to save on bandwidth and client processing time.  Can you tell me how to get this working with RenderSelectedPageOnly="true"?

I am using Version 2010.3.1215.40 of Telerik RadControls for ASP.NET Ajax.

Thanks,

Craig

Helen
Telerik team
 answered on 09 Aug 2012
20 answers
215 views
Hi All
I am using the custom advance form template with my scheduler,
and have added a few custom resources , i want to add required field validator's to these resources!
However i am struggling with this as the validator cannot find the control.

Can anyone give me some help with this or point me in the direction of a good way/method of validating resources please.

Many Thanks in advance

Regards

Darren
Ken
Top achievements
Rank 1
 answered on 09 Aug 2012
3 answers
143 views
Hello,

It seems that the component does not work in IE9, based on clicking around on the RadSpell demos on the site.  After a few clicks, the popup window shows up, but is blank. 

I have also had the issue on a simple web application when debugging in Visual Studio.  Seems an exception is thrown when trying to create an iframe element (if in IE).  I have attached the screenshot from VS.

Thanks,

-Chris
Rumen
Telerik team
 answered on 09 Aug 2012
1 answer
37 views
Just curious whether we have any link here that defines the platforms telerik Ajax controls support.

I am keenly interested to whether AJAX controls are compatible with all browsers. (FireFox/IE/etc).


Rumen
Telerik team
 answered on 09 Aug 2012
8 answers
239 views
I have a radgrid which is having some controls in its Edit and Insert mode.I have put some validation on those controls. we are using simple asp.net validator.In my case ,Everything is working properly untill Validator get fired.Once validator get fired,nothing is working,not even cancel button which can close Edit or insertion mode in the radgrid.In normal  asp.net web application,it is working fine.but in sharepoint it is giving problem.Is anything to do with config file . Looking for ur help.Thanks in advance



 if we remove radajaxmanager  then everything is working fine. But we need that Ajax.Please provide any solution
Tsvetoslav
Telerik team
 answered on 09 Aug 2012
4 answers
150 views
I trying to add a description "Override" when update an appointment. 

 

I'm using e.ModifiedAppointment.Description = "Override", but it doesn't work.
Here is my scripts:

 

Protected Sub MyAvailability1_AppointmentUpdate(sender As Object, e As AppointmentUpdateEventArgs) Handles RadScheduler1.AppointmentUpdate
        Dim scheduler As RadScheduler = DirectCast(sender, RadScheduler)
        If e.ModifiedAppointment.Subject = "Preference" Then
            For Each app As Appointment In scheduler.Appointments.GetAppointmentsInRange(e.ModifiedAppointment.Start, e.ModifiedAppointment.[End])

                If app.Subject = "Availability" Then
                    If app.Start > e.ModifiedAppointment.Start OrElse app.[End] < e.ModifiedAppointment.[End] Then
                        e.Cancel = True
                    End If
                End If

            Next
        End If

        If e.ModifiedAppointment.Subject = "Availability" Then
            For Each app As Appointment In scheduler.Appointments.GetAppointmentsInRange(e.ModifiedAppointment.Start, e.ModifiedAppointment.[End])

                If app.Subject = "Preference" Then
                    If app.Start < e.ModifiedAppointment.Start OrElse app.[End] > e.ModifiedAppointment.[End] Then
                        e.Cancel = True
                    End If
                End If
            Next
        End If
        e.ModifiedAppointment.Description = "Override"
    End Sub

Ivana
Telerik team
 answered on 09 Aug 2012
3 answers
73 views
Hi

I am using RadControls Q1 2007 for my web application development, I would like to know whether the Drag and Drop functionality is available with Q1 2007 Controls?

Somehow I am not getting client side events like "OnClientNodeDragging" and boolean properties like "EnableDragAndDrop", is there any way to archive this? or any other alternative?

Is is really possible to do Drag and Drop functionality in Q1 2007 Controls?

Thanks,

Rahul
Ivana
Telerik team
 answered on 09 Aug 2012
3 answers
566 views
Hi,

I'm having problem with the format in the textbox.
Today it looks like: 

<telerik:RadNumerictextBox ID="txtValor" runat="server" MinValue="0">
    <NumberFormat AllowRounding="true" DecimalDigits="2">
</telerik:RadNumerictextBox>

When I fill with the value "50,45" for example, text and value properties are as follows:
Text: 50,45
Value: 50.450000000000003
I do not understand, if I defined only two decimal places, why the 14 digits? this is a bug?
Vasil
Telerik team
 answered on 09 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?