Telerik RadGrid ExportToExcel not working - c#

I have a radgrid and I want to use the built-in functionality to export the data in the grid to a spreadsheet. I remember a time when I ran the code and it worked, but right now when the call is made, nothing happens.
Anyone experience this problem or have any suggestions?
Thanks very much in advance!

I suggest posting this question in the Telerik Forums or checking out the code in the demo.
Please include at least some of your code unless you want people to just guess at what might be wrong. My first guess would be that you are binding manually to the radgrid with a dataset or datatable and are not binding the data before trying to export.

Related

Issue showing a DataGridView from an array

Has anyone heard of the following issue?
I created an array of DataGridView and I am successfully filling them with information (verified in a data dump).
However when I try to display the DataGridViews, even when I made sure size, location and visibility were all set, the DataGridView table wasn’t show up in my form1.
When I use the DataGridView normally (created and compiled) it works.
Those were the settings I used to set the run-time creations of the array of DataGridViews.
If you really need to see my code I can post it.
I am just looking for ideas of where I haven’t figured out to look yet.
I like to figure stuff out on my own as much as possible but I’ve been stuck for a couple days now.
I’m guessing it’s because of the array and not because I created the dgv at runtime. Anyone have any ideas?
Thanks T.Schwarz. That worked as I wanted!
I apologize to all for not posting code. As I stated I like to figure out things and I wasn’t looking to get others to do my code for me. I guess everyone needs to see what I was doing to understand why I was having a problem. My second post will be much more informative. Thanks for the help everyone!

Janusys v4 Schedular and BindingSource/LinQ how to

It seems, that Janusys isn't active anymore. The Forum Posts get not answered since a while. In my application (Winforms!), I use there controls since a couple of years. Now I want to extend my application with the schedular Control.
I found a Sample within the Janus Software, where they "explain", how the Control can be used, in DataBound mode.
The Problem there is, that this example works with DataSet / TableAdapter.
This I don't want to use, because I use in my whole application LinQ.
Now, I tried to move on, with there sample application and rewrite it, so I can use LinQ. But I am not able to get it working.
I use BindingSource to bind my data via LinQ from the database to the Control. This works really fine and all saved Appointments get displayed as expected.
But...
I am not getting it working, to create/update Appointments.
1) The BindingSource AddNew Handler is fired, but with "NewObject" is Nothing
2) I don't know, how I get an existing Appointment verified, that this one is already saved in database, or if it is a new Appointment.
Does anyone could help me with this Problem and can explain, how I can do it Right, without using DataSet/TableAdapter?
THX a lot in Advance
THX a lot for everyone, who looked into it.
I found a solution, which looks to work fine.
I have to add all appointments with a ForEach Loop and remove the BindingSource completly.
Then I can add the Key Value, and from there, it is easy, because, I am able to see, if this is already an existing appointment (then the key has a value) or even not.
THX - Have a nice evenenig

C# DataGridView Virtual Mode: Using CellValuePushed to write Data back to Database

I´m currently trying to implement a virtual DataGridview in a client-server system to increase perfomance.
For that I have used follwing code suggested by Microsoft: http://msdn.microsoft.com/de-de/library/ms171624.aspx
To that point all is fine and is working out as it should. Problem is, the example doesn´t cover writing data back to database. I need users to be able to submit changes. I´ve learned that the CellValuePushed-Event is fired if the user alters any value in the GridView. After searching the web for hours now I still haven´t found a way to accomplish saving data back to database.
Do I have to update the underlying DataTable with the changed value and then refresh the Gridview?
Is there anyone who could help me out with some code or a few hints? Any help would be greatly appreciated :-)
Ok, I´ve solved this myself now. "Do I have to update the underlying DataTable with the changed value and then refresh the Gridview?" was the right way to accomplish writing the data back to database. Although I´d already tried that, I had missed out on a piece of code...

JQuery Sortable Plugin and Telerik RadGrid

Has anyone combined the Telerik RadGrid with the JQuery sortable plugin for reordering the rows? At first glance, it works great. However, I'm not actually doing development so I was wondering if anybody has tried this, any tips you could give me. I was planning on, when the page unloads, writing the new indexes of the rows to a hidden field to change the ordering on the server.
Any advice would be great.
Thanks.
The RadGrid currently supports multicolumn sorting. What would jQuery provide you over and above Telerik?
JQuery sortable plugin would work if no detail table is provided; with a detail table, it becomes harder to implement. I scrapped it temporarily, I may try to implement at a later point.

Dropdownlist Checkbox

If you have ever used SQL reporting services, there are some dropdown lists that pop down with a checkbox list in it. It allows a user to select multi items very nicely. Does anyone know a free User control or an example of this implemented. Ok, so I know I can do this with some elbow grease and html, was just trying to see if there was already something out there. I’m using ASP.NET C#.
Thanks,
Joe
Check this out.
http://www.metabuilders.com/Tools/CheckedListBox.aspx
http://forums.asp.net/t/1040242.aspx
Ok, posted here to soon. I use infragistics and found a possibe solution.
Thanks!
http://forums.infragistics.com/forums/t/3962.aspx

Categories

Resources