Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
106 views
Hello,

I have RadGrid with GridTemplateColumn that has text with <br> tags and some other html tags.
When I excport the grid to excel it splits every text line within the template row to cells.
How can I make all the text in the template cell exported as single cell?

Best Regards,
Alex Vr.
Daniel
Telerik team
 answered on 19 Oct 2010
3 answers
168 views

I'm trying to add totals to the headers of my grouping columns but can't figure out how to do it.  As you can see from the image I attached I need to see the total ticket count for each region before or after it has been expanded and I need to same logic applied to the second grouping by client as well.  Is this something that can be done or do I need to use detail grids here?

<telerik:RadGrid ID="rg1" runat="server" DataSourceID="dsPriority1" Skin="Web20"
                                                    AllowAutomaticUpdates="false" AllowAutomaticDeletes="true" AutoGenerateColumns="false"
                                                    AllowSorting="true" AllowPaging="false" ShowFooter="true" PageSize="50" PagerStyle-Position="TopAndBottom">
                                                    <MasterTableView ShowGroupFooter="true" GroupsDefaultExpanded="false" HeaderStyle-BackColor="#7FA5D7"
                                                        ItemStyle-BackColor="#B0C4DE" AlternatingItemStyle-BackColor="White" FooterStyle-Font-Bold="true">
                                                        <Columns>
                                                            <telerik:GridBoundColumn HeaderText="Region" DataField="Region">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn HeaderText="Client" DataField="ClientName">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn HeaderText="Ticket #" DataField="TicketNumber" Aggregate="Count">
                                                            </telerik:GridBoundColumn>
                                                        </Columns>
                                                        <GroupByExpressions>
                                                            <telerik:GridGroupByExpression>
                                                                <GroupByFields>
                                                                    <telerik:GridGroupByField FieldName="Region" />
                                                                </GroupByFields>
                                                                <SelectFields>
                                                                    <telerik:GridGroupByField FieldName="Region" HeaderText="Region" SortOrder="Ascending" />
                                                                </SelectFields>
                                                            </telerik:GridGroupByExpression>
                                                        </GroupByExpressions>
                                                        <GroupByExpressions>
                                                            <telerik:GridGroupByExpression>
                                                                <GroupByFields>
                                                                    <telerik:GridGroupByField FieldName="ClientName" />
                                                                </GroupByFields>
                                                                <SelectFields>
                                                                    <telerik:GridGroupByField FieldName="ClientName" HeaderText="Client" SortOrder="Ascending" />
                                                                </SelectFields>
                                                            </telerik:GridGroupByExpression>
                                                        </GroupByExpressions>
                                                    </MasterTableView>
                                                </telerik:RadGrid>
Timothy Kruszewski
Top achievements
Rank 1
 answered on 19 Oct 2010
2 answers
431 views
I have a gridview with 3 layers of grouping and can't figure out how to format the child groups.  For example, I would like to first grouping(Region) to be white, the second grouping(Client) to be black and the third grouping(Team) to be some other color. 

<telerik:RadGrid ID="rg2" runat="server" Skin="Web20" AllowAutomaticUpdates="false"
                                AllowAutomaticDeletes="true" AutoGenerateColumns="false" AllowSorting="true"
                                AllowPaging="false" ShowFooter="true" ShowGroupPanel="false" ShowGroupHeader="true"
                                OnItemDataBound="rg1_ItemDataBound" OnPreRender="rg2_PreRender">
                                <MasterTableView ShowGroupFooter="false" GroupsDefaultExpanded="false" HeaderStyle-BackColor="#7FA5D7"
                                    ItemStyle-BackColor="White" AlternatingItemStyle-BackColor="#B0C4DE" FooterStyle-Font-Bold="true">
                                    <Columns>
                                        <telerik:GridBoundColumn HeaderText="Region" DataField="Region">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Client" DataField="ClientName">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Team" DataField="TeamName" Aggregate="Count">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn HeaderText="Ticket #" UniqueName="TicketNumber"
                                            DataField="TicketNumber">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="hlTicket" runat="server" Text='<%# Bind("TicketNumber") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn HeaderText="TicketID" DataField="TicketID" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="TotalTickets" Visible="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="GridID" Visible="false">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                    <GroupByExpressions>
                                        <telerik:GridGroupByExpression>
                                            <GroupByFields>
                                                <telerik:GridGroupByField FieldName="Region" />
                                            </GroupByFields>
                                            <SelectFields>
                                                <telerik:GridGroupByField FieldName="Region" HeaderText="Region" SortOrder="Ascending" />
                                            </SelectFields>
                                        </telerik:GridGroupByExpression>
                                    </GroupByExpressions>
                                    <GroupByExpressions>
                                        <telerik:GridGroupByExpression>
                                            <GroupByFields>
                                                <telerik:GridGroupByField FieldName="ClientName" />
                                            </GroupByFields>
                                            <SelectFields>
                                                <telerik:GridGroupByField FieldName="ClientName" HeaderText="Client" SortOrder="Ascending" />
                                            </SelectFields>
                                        </telerik:GridGroupByExpression>
                                    </GroupByExpressions>
                                    <GroupByExpressions>
                                        <telerik:GridGroupByExpression>
                                            <GroupByFields>
                                                <telerik:GridGroupByField FieldName="TeamName" />
                                            </GroupByFields>
                                            <SelectFields>
                                                <telerik:GridGroupByField FieldName="TeamName" HeaderText="Team" SortOrder="Ascending" />
                                            </SelectFields>
                                        </telerik:GridGroupByExpression>
                                    </GroupByExpressions>
                                </MasterTableView>
                            </telerik:RadGrid>
Timothy Kruszewski
Top achievements
Rank 1
 answered on 19 Oct 2010
1 answer
96 views
Hi,

ZeroPadNumericRanges

 

of Radmaskedtextbox is not working.Please let me know how this will be work

Dimo
Telerik team
 answered on 19 Oct 2010
2 answers
118 views
Hi, for the insert, I'm doing this:

        Protected Sub rdScheduler_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles rdScheduler.AppointmentInsert
            Dim uid As Integer
            If Not e.Appointment.Resources.GetResourceByType("User") Is Nothing Then
                uid = CInt(e.Appointment.Resources.GetResourceByType("User").ToString)
            Else
                uid = -1
            End If

            objEventController.Add(e.Appointment.Subject, e.Appointment.Start, e.Appointment.End, e.Appointment.RecurrenceRule, e.Appointment.RecurrenceParentID, uid)
        End Sub

This always seem to insert a 0 as e.Appointment.RecurrenceParentID.
That's fine with me, but when I want to delete an item, it will always say somthing like: "Cannot locate the parent of appointment with ID = '5'. Ensure that the parent appointment with ID = '0' exists and is loaded."

So what should I do.
Peter
Telerik team
 answered on 19 Oct 2010
1 answer
68 views
Hi,

We were struggling with some of the client requirement where they want inline spell check. We are heavily relying on Telerik ASP.NET AJAX. Unfortunately telerik do not have this feature.

We are exploring Karamasoft spell check which perfectly fits with the requirement, but again I want to stick to Telerik. I am expecting they will come up with the feature in future release.

Thanks
Shoeb
Rumen
Telerik team
 answered on 19 Oct 2010
2 answers
46 views
Can RadGrid columns be declaratively bound to sub-objects (i.e. DataFieldName="Property.SubObjectProperty") when taking a client-side databinding approach?  We're currently configured to use a declarative WCF client datasource and have noticed that no data is being returned for our columns bound to sub-objects.  The databinding was working as expected when previously taking a server-side databinding approach.  Any insight would be appreciated since this isn't necessarily listed as a client-side databinding limitation. 

Thanks!

Austin
Austin Jones
Top achievements
Rank 1
 answered on 19 Oct 2010
4 answers
457 views
Dear Sirs!
I have the the RadGrid inside modal dialog window (I open it when calling the showModalDialog from javascript).
I want to export the data in this grid to Excel. For this:
1. I did the button and code behind window I write:
2. dgv.ExportSettings.IgnorePaging = true;

    dgv.MasterTableView.ExportToExcel();

 


When clicking on tgeh button NOTHING happen.

Of course this works OK when working with the grid in regular page, not modal window

I want to know:
If there is any possibility to use exporting in Excel inside modal dialog?

Thank you very much in advance.

Boris
Boris
Top achievements
Rank 1
 answered on 19 Oct 2010
1 answer
86 views
Hello;

I already use Rad-Scheduler with RADAJAX uner PageView container, everything works fine but when I clisck the appointment in order to edit or view its details it is not responding ( after I publish the project, but before I publish in it works fine)

here is my page code
(RadAjaxManager Code)
 <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                   </UpdatedControls>
            </telerik:AjaxSetting>

(RadScheduler Code)
 <telerik:RadPageView ID="Graphic_Pp" Runat="server" Height="441px" Width="100%">
                                                    &nbsp;<table class="style39" width="100%">
                                                        <tr>
                                                            <td>
                                                                <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime" 
                                                                    DataKeyField="sn" DataSourceID="Daily_operation" DataStartField="StartTime" 
                                                                    DataSubjectField="File_name" Width="100%">
                                                                    <ResourceTypes>
                                                                        <telerik:ResourceType DataSourceID="Daily_operation" ForeignKeyField="sn" 
                                                                            KeyField="File_number" Name="Kind" TextField="Kind" />
                                                                        <telerik:ResourceType DataSourceID="Daily_operation" ForeignKeyField="sn" 
                                                                            KeyField="File_number" Name="Car" TextField="Car" />
                                                                        <telerik:ResourceType DataSourceID="Daily_operation" ForeignKeyField="sn" 
                                                                            KeyField="File_number" Name="Rep" TextField="Rep_Name_1" />
                                                                    </ResourceTypes>
                                                                </telerik:RadScheduler>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </telerik:RadPageView>


please Advice


Peter
Telerik team
 answered on 19 Oct 2010
1 answer
58 views
Hi,

I am using rad scheduler with my MVC framework. I have been implemened but i want some my own links in context menu. When user will click on my link from context menu then a popup will open where user will select client name. selected client will be show in selected date.

Please help me is it possible or not?



Waiting for your reply


Thanks

Ranjan Srivastav
Peter
Telerik team
 answered on 19 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?