Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
98 views
Delete post
Steven
Top achievements
Rank 1
 asked on 28 Jan 2013
5 answers
183 views
Hi there

I have a situation where my RadGrid has some rows Containing HTML code
http://i47.tinypic.com/1zg69sj.png

When I export this to Excel, I see separate Excel cells instead of a Single one.
http://i48.tinypic.com/2mx1o3n.png

How can I restrict RadGrid to export each field into a single cell?

I found this topic, describing the same problem
http://www.telerik.com/community/forums/aspnet-ajax/grid/export-to-excel-with-line-breaks.aspx#1553210

I'm using an old dll of Telerik but RadGrid has OnGridExporting or OnHTMLExporting  events available
OnGridExporting="grdRapor_GridExporting"

Protected Sub grdRapor_GridExporting(ByVal source As Object, ByVal e As GridExportingArgs)
        If e.ExportType = ExportType.Excel Then
            Dim css As String = "<style type='text/css'> br { mso-data-placement: same-cell; } </style>"
            e.ExportOutput = e.ExportOutput.Replace("</head>", css & "</head>")
        End If
    End Sub
This didnt help me
William
Top achievements
Rank 1
 answered on 28 Jan 2013
1 answer
66 views
I'm working on  a Hierachical RadGrid which is enclosed in an  asp UpdatePanel, and I need to customize it in such a way that - Only the parent rows should be rendered first(the query corresponding to this fetches only the parent rows from the database), and then on the expand button click - the 'Id' corresponding to the row is send via ajax and a different query fetches the child data corresponding to only the selected row.
 Currently I'm invoking an external ajax request through a jquery call from ClientEvents-OnRowClick in the ClientSettings of the grid. Now I'm unable to fill data into 
the child table from the ajax response using jquery.
Is there an easier way to go about it? That is there an inbuilt function to use 2 different queries to grab the data that populates the Hierachical RadGrid - one to get the parent rows and the other to get the child row corresponding to the parent row that is clicked.


Thanks in advance.
Maria Ilieva
Telerik team
 answered on 28 Jan 2013
3 answers
55 views
Hi,

Is it possible to take the Appointment-object from the "clientFormCreated"-funktion, modify it in a separate "telerik:RadWindow" with own logic (search, etc.)  and then send the updated Appointment-object to either OnClientAppointmentWebServiceInserting-function or OnClientAppointmentWebServiceUpdating-function?

I have very little data, just subject, one resource, and date/time, but i need to implement search in some different ways to let the user find the correct resource.

Can i cancel the showing on the advanced form in "clientFormCreated"? I just want to get the Appointment-object.

/Olle



Plamen
Telerik team
 answered on 28 Jan 2013
3 answers
103 views
hello
i want to create an custom button on page that by clicking it, the radgrid will update all records.
i have already button inside grid called "UpdateAll" and i want to fire this button. my grid is always in edit mode.
how can i do this?
Maor
Top achievements
Rank 1
 answered on 28 Jan 2013
1 answer
236 views
My project uses the JavaScript add_close function to attach an OnClientClose event handler to a RadWindow.  The functionality is very similar to the one in the Returning Values from a Dialog example project.  The only difference is that it uses the add_close function described in this RadWindow documentation instead of setting the OnClientClose property. 

I initially developed for Internet Explorer, which has been working perfectly well, but now we find that it doesn't work in Chrome or Firefox.  I put an alert within the OnClientClose function, and it is never being reached.  Can you explain what is different about these browsers that prevents the function from working?

A few extra bits of information, for context: 
  • I have never gotten an error, as some people have experienced.  It never seems to be looking for a function that doesn't exist, it just doesn't try to call the function.
  • The window I am opening has a content URL of another .aspx page within my project.  The window's content does not exist on the same .aspx page, because it needs to be able to direct to different URLs based on certain user input.
  • The window is closed by clicking an "OK" button, which calls a returnToParent function which attaches a result then calls oWnd.close(oArg), just like in the example mentioned above
Marin Bratanov
Telerik team
 answered on 28 Jan 2013
5 answers
140 views
Hi,
we are using radcombobox with LoadOnDemand. Everything works ok except the positioning of the item when we click on MoreResults. Items are loading correctly but the list of items in dropdownbox is positioned back in the first item again and not in the new first loaded item, that is, we see the first item if I scroll to the last item and then I click on MoreResults option; then new items are loaded but we see item(0) again and not item(10) if ItemsPerRequest is set to 10. In demo ComboBox / Load on Demand Modes (http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultvb.aspx ) it works fine.
Our radcombobox control is defined:

<Telerik:RadCombobox ID="ddl_radcombo" runat="server" AllowCustomText="false" AutoPostBack="true"  EnableLoadOnDemand="true" Filter="none" Height="100px" LoadingMessage="..." MarkFirstMatch="false" ShowMoreResultsBox="true" Width="95%">
</Telerik:RadCombobox>

Please, any cue?, any idea?

Thanks in advance.
Boyan Dimitrov
Telerik team
 answered on 28 Jan 2013
8 answers
737 views
Folks,

Environment: RadControls for ASP.NET AJAX Q3 2009 / VS 2008 SP1/IE7/WINXP SP 2.

Is it possible to open Rad Window from Radgrid CommandItemTemplate for both Insert and Update. I would like to customize this page (Window / Edit Dialog for RadGrid: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window). 

Thanks

gc_0620

below is my commanditemtemplate:

<CommandItemTemplate> 
 <div style="padding: 5px 5px;">  
 Custom command item template for Grid&nbsp;&nbsp;&nbsp;&nbsp;  
 <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected"   
 Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" /> Edit selected</asp:LinkButton>&nbsp;&nbsp;  
 <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" /> Update</asp:LinkButton>&nbsp;&nbsp;  
 <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RadGrid1.EditIndexes.Count > 0 || RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" /> Cancel editing</asp:LinkButton>&nbsp;&nbsp;  
 ''''  
 ''''  
  New Link Button or href to add new rows via Radwindow->Radgrid.                          
  New Link Button or href to edit existing rows via Radwindow->Radgrid.  
  For Editing existings rows, the Visible property should be: Visible='<%# RadGrid1.EditIndexes.Count == 0 %>',  
  the same as above LinkButton 
ID="btnEditSelected".  My intention is prior to editing, users must select a Row from current RadGrid..
  ''''
  ''''
</
div> 
</CommandItemTemplate> 
 
Marin Bratanov
Telerik team
 answered on 28 Jan 2013
2 answers
51 views
Dear All
    I have an issue with the Rad Button

    I normally use it like so:

<telerik:RadButton ID="btnBack" runat="server" ButtonType="ToggleButton" ToggleType="CustomToggle"

Width="150px" Height="32px" ForeColor="White"

onclick="btnBack_Click" Text="Back to List" Font-Size="11pt" CssClass="border-5 glow-shadow-2">

<ToggleStates>

<telerik:RadButtonToggleState ImageUrl="../images/oButtonUp.gif" HoveredImageUrl="../images/oButtonHover.gif"

Selected="true" IsBackgroundImage="true" />

</ToggleStates>

</telerik:RadButton>

Normally looks great and works fine but on the Kindle Fire it does not display.  If you press where it should it highlights (but just an outline) but then does not click (post back)

I have tried on multiple platforms and it works fine just not the kindle - does any body else have this problem? Have I missed something ? Any suggestions ?

Many thanks

Stid
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
73 views

I need to convert an SSRS report that I developed into a Telerik grid which does similiar grouping (see attached files).

Notice that in the SSRS rpt, the data is grouped by CruiseLine, Ship, and Date. I want that same kind of grouping (not the look, just the correct grouping) in the Telerk Grid, but cannot achieve that desired result.

I've read articles and searched the web about this topic. I've tried several different things, but I just can't get it to group data on those fields.

The detail data is coming out fine (see attached file "telerik grp") with the correct display in the Group Header.

I don't know where the top line (CruiseLine, Ship, and Date) comes from via my grid. I don't see any properties that would display that. I'm not interested in any sorting, just grouping. btw, when I click on any of those 3, the grid just disappears.

Below, is my code for the grid.

Can somebody please help me achieve what should be, a simple grouping, and point out what I'm doing wrong that needs to be corrected?

<telerik:radgrid id="RadGrid1" runat="server" GridLines="None" AutoGenerateColumns="False" AllowPaging="True" ShowGroupPanel="True"
                        ShowFooter="True" >
                        <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                        <MasterTableView GroupsDefaultExpanded="false" GroupLoadMode="Client" ShowGroupFooter="True" pagesize="50"
                            ExpandCollapseColumn-Groupable="True">
                            <RowIndicatorColumn Visible="True"
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True"
                                <HeaderStyle Width="19px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="CruiseLine" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Ship" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Date" ReadOnly="true" DataFormatString="{0:M/d/yyyy}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product1Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product2Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product3Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product4Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product5Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Product6Cash" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Sales" ReadOnly="true" DataFormatString="{0:C2}">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <GroupByExpressions>
                              <telerik:GridGroupByExpression>
                                <SelectFields>
                                  <telerik:GridGroupByField FieldName="CruiseLine" />
                                  <telerik:GridGroupByField FieldName="Ship" />
                                  <telerik:GridGroupByField FieldName="Date" FormatString="{0:M/d/yyyy}" />
                                </SelectFields>
                                <GroupByFields>
                                  <telerik:GridGroupByField FieldName="CruiseLine" />
                                  <telerik:GridGroupByField FieldName="Ship" />
                                  <telerik:GridGroupByField FieldName="Date" FormatString="{0:M/d/yyyy}" />
                                </GroupByFields>
                              </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                        </MasterTableView>
                    </telerik:radgrid>
Maria Ilieva
Telerik team
 answered on 28 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?