Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
82 views
Hi there,

I have basic grid exporting functionality that takes the contents of the grid and exports it to Excel.  I require a little more functionality to this exporting.  Not sure if there is a solution already, but I am hoping that someone has a solution for me.  If my grid has a drop down in it, how do I get this drop drown with its values exported Excel?

Another thing is, is there a way of exporting a business object to Excel?  Lets say I have a Application object, and this object has a Status object which it references.  In my grid I have a list of all the Application objects, but not all the properties of the Application object is used as columns.  How do I get more of the properties exported than what the grid currently displays?

I would appreciate if someone can help me with this :)

Thanks
Daniel
Telerik team
 answered on 19 Nov 2010
1 answer
64 views

 

 

I have a grid configured to use ADO.NET Web Services (oData) and I'd like to refresh the grid
http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx

How do I accomplish this?


<
telerik:RadGrid runat="server" ID="RadGrid2" AllowPaging="true"

 

 

 

AllowSorting="true" AllowFilteringByColumn="true"

 

 

 

AllowMultiRowSelection = "false"

 

 

 

AutoGenerateColumns="false"

 

 

 

PageSize="7"

 

 

 

HeaderStyle-HorizontalAlign ="Center"

 

 

 

GroupingSettings-CaseSensitive="false"

 

 

 

>

 

 

 

<MasterTableView DataKeyNames="Vendorkey" CommandItemDisplay="None" ClientDataKeyNames="Vendorkey">

 

 

 

<Columns>

 

<%

 

-- <telerik:GridBoundColumn DataField="ProductID" HeaderText="ProductID" DataType="System.Int32" />

 

<telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" DataType="System.String" />

<telerik:GridBoundColumn DataField="UnitsInStock" HeaderText="UnitsInStock" DataType="System.Int32" />

--

 

 

%>

 

 

 

<telerik:GridBoundColumn DataField="Vendorkey" Display="false" >

 

 

 

<ItemStyle Width ="150px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="VendorName" HeaderText="Name" >

 

 

 

<ItemStyle Width ="250px" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="VendorGroup" HeaderText="Lawson #" />

 

 

 

<telerik:GridBoundColumn DataField="Vendor" HeaderText="Vendor #" />

 

<%

 

-- <telerik:GridBoundColumn DataField="ClassDescription" HeaderText="Class" />--%>

 

 

 

<telerik:GridBoundColumn DataField="VendorStatus" HeaderText="Status" />

 

 

 

<telerik:GridBoundColumn DataField="City" HeaderText="City" />

 

 

 

<telerik:GridBoundColumn DataField="State" HeaderText="State">

 

 

 

<ItemStyle Width="15px" />

 

 

 

</telerik:GridBoundColumn>

 

 

<%

 

-- The following is used to drive the lower grid--%>

 

 

 

<telerik:GridBoundColumn DataField="ParentID" HeaderText="ParentID" Display="false"/>

 

 

 

<telerik:GridBoundColumn DataField="ParentName" HeaderText="Parent Name" >

 

 

 

<ItemStyle Width ="250px" />

 

 

 

</telerik:GridBoundColumn>

 

<%

 

-- <telerik:GridTemplateColumn UniqueName="SourceCompanyMapColumn" HeaderText="Map" AllowFiltering="False">

 

<ItemTemplate>

<asp:ImageButton ID="imgMap" runat="server" ImageUrl="~/App_Themes/NFP/Images/grid/edit_record.png">

</asp:ImageButton>

</ItemTemplate>

</telerik:GridTemplateColumn>--

 

 

%>

 

 

 

</Columns>

 

 

 

<PagerStyle Mode="Slider" />

 

 

 

</MasterTableView>

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="False" EnableVirtualScrollPaging="True" UseStaticHeaders="True" SaveScrollPosition="True"/>

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

<ClientEvents OnRowSelected="rowSelected" OnCommand="gridTopCommand"

 

 

 

 

/>

 

 

 

<DataBinding Location="/Services/VendorDataService.svc" SelectCountMethod="GetTopCount" >

 

 

 

<DataService TableName="vDataMapperVendorTop" />

 

 

 

</DataBinding>

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

 

Vasil
Telerik team
 answered on 19 Nov 2010
1 answer
32 views
Hi All,
Just wondering if anyone else was experiencing this?
Is the animation expected to not work when using a callback ItemClick event?
Thanks,
Steele.
Yana
Telerik team
 answered on 19 Nov 2010
7 answers
56 views
Hi All,

I have 2 grids kept inside 2 seperate div tags: divAMGGrid, divSolveGrid.
divAMGGrid is having 1 grid with 2 levels. When I perform any operation on child level, I'll display second grid which is inside divSolveGrid. Till here it is working fine. But my requirement is to refresh 1st grid, when I perform any operation on 2nd grid which is in divSolveGrid. divAMGGrid is not refreshed with data. My aspx page is having following html inside RadAJAXManager:

<telerik:AjaxSetting AjaxControlID="divAMGGrid">

    <UpdatedControls>

        <telerik:AjaxUpdatedControl ControlID="divSolveGrid" />

    </UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="divSolveGrid">

    <UpdatedControls>

        <telerik:AjaxUpdatedControl ControlID="divSolveGrid" />

    </UpdatedControls>

</telerik:AjaxSetting>

Any help will be very much appreciated.

Thanks,
Kapil

Veli
Telerik team
 answered on 19 Nov 2010
1 answer
39 views
I have a RadGrid that with a that contains a GridButtonColumn defined as
<telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="PaymentViews" 
                                   Text="Payments" CommandName="AddPayment" />
This Grid has a DataKey of DelRecordID

When the row item button is Clicked
If e.CommandName = "AddPayment" Then
    'If GridDeleiverables.SelectedItems.Count > 0 Then
    Dim DataKey As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("DelRecordID")
    Session("DeliverableID") = DataKey
    GridPaymentDrawdown.Rebind()
    PanelPaymentDrawdown_ModalPopupExtender.Show()
    'End If
End If
The Grid that  i call to be rebound simply doesnt, If however i click the Refresh button on the Grid it rebinds as it should.


Am i missing something really obvious on this

Thanks in advance
The Grid that  i call to be rebound simply doesnt, If however i click the Refresh button on the Grid it rebinds as it should.Am i missing something really obvious on this Thanks in advance
Marin
Telerik team
 answered on 19 Nov 2010
1 answer
94 views
Hi,

I have radgrid. when i am inserting and updating there are 2 column index has been shown. and also i want to validation summary. so i need center to 2 column indexes. so please see the attached image and give me a tips for this one.



Thanks,
Marin
Telerik team
 answered on 19 Nov 2010
1 answer
102 views
Also sent in a support ticket but figured the answer could be valuable to others (in the event there is one :o))
====================================
I have a RadWindow with a RadAjaxPanel inside. Inside the RadAjaxPanel I am loading a user control which does a database lookup and sets some field values. PREVIOUSLY, I also had an UpdatePanel in there and after the data was retreived from the DB it would update the update panel and refresh the screen.

What I am noticing NOW is that I have to do a postback inside of the AJAXPanel in order for the data to appear on initial Window open. When the Window.Open() command is called from JavaScript the data loads correctly (according to the debugger) but the Window has nothing checked, filled in, etc. Once I do a postback inside of the window it works fine (change page number, for example). I need the window to pop up, data loaded, and panel refreshed. I am guessing I somehow have to explicitly update the RadAjaxPanel.

Any help is appreciated.
Iana Tsolova
Telerik team
 answered on 19 Nov 2010
2 answers
255 views
hi I want to ask how to get datakey value from radgrid in hierarchy mode , when double click event?

function RowDblClick(sender, args) {
            alert(args.getDataKeyValue("RJENIS"));
}

thats work only for the parent , but I want to get datakey value from the child.
please suggest...

waiting for your reply.
Edi
Top achievements
Rank 1
 answered on 19 Nov 2010
7 answers
361 views
Hi

I have a RadSlider on a page which renders correctly if the page is opened directly, however when the page is in an iframe the control is not rendered properly.

I get the up / down buttons and the slider image, but no bar, it only renders if the control is refreshed for example by having it as an updated control from RadAjaxManager.

Any ideas?

Andy

Tsvetie
Telerik team
 answered on 19 Nov 2010
2 answers
28 views
Is it possible to use different configuration files for different lists within one site?
Andy
Top achievements
Rank 1
 answered on 19 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?