include kendo grid hidden column in excel export - c#

i'am a junior developper and i have to include kendo hidden column in excel export. I have seen many solutions about this problem but it doesn't work for me. i had this to my grid for the export : image. And i add this js function : image. The idea of this function is clear but the click on the excel button export doesn't work if i add the "preventOrDefault". Then it works without it but my problem is : the client can see the hidden columns during a long time. How can i do to resolve that.
Iam sorry for my english but i hope that it is clear and someone will propose a good solution.

Related

.rdlc Report freeze first column with a Row Group

i am really frustrated because I tried and googled several hours for this simple problem. I hope someone can help me here.
I want to freeze the first column of my tablix located on my .rdlc report.
I have tried both posibilites described here
but only the column headers get freezed, the row headers (first column in my understanding) don't stay visible while I scroll to right...
Maybe I do something essencial wrong and don't see it, please help me with this little, frustrating thing...
I wanted to upload a Screenshot of my tablix at design time but the upload tool returns a error...maybe it works later when there is a need for it.
Edit: Here is the uploaded screenshot
Best Regards
Alexander

Linking a database table cell to a TextBox

I'm looking for a way to link a database table to a textbox in my WPF application. I need to take a specific cell from the table and display it in a read only text box. I've not been able to find a solution personally, and the internet has held no favor either. Thanks for the help in advance!
Post any questions in the comments, I'll edit this question and make it more specific.

Create a report with its respective chart from a chosen LINQ query in C#

I'm quite busy reading different posts over how to create reports from dynamic queries. I have the next problem and maybe someone here can help me with this:
I have a class where I can create a dataGridView from a dynamic dataTable in a project made with C# from VS 2010. I populate my DataTable with one of 9 different linq queries that I have according to the user requirements, which also are saved in a register in my database. Starting from this point, I need to make a report where I can show of the same way the data selected.
I have found the code from the website got ReportViewer and it works quite good. Only I have a last problem. I need my report to show a chart according to the parameters passed via the DataTable. I saw the examples that they have there for the charts but they work quite restrict with what I need, and the code for the chart generator that is incluided in the Dynamic Table project is quite extense and a bit complex for a beginner like me.
Do you know any other examples that maybe I can find to use to make the code in my project? Many thanks in advance :).
I found another way to do it:
Now I'm using classes as datasources and filling arrays of these classes with the contect of the datatable.
I pass these arrays as my datasources for the project.
I group my data by the number of fields I want to display and then I choose between pre made .rdlc files where I show my data to the user.

"Create List" function in Excel automation C#

i am looking to create a drop-down list of items in excel through automation in C#, the items are taken from the values in the whole column throughout the file. The same functionality of right click on a cell and click "Create List"
I looked a bit through the internets but nothing works, i saw you could do this via Data validation, but can't find too much information about it
thx for any help
Maybe these links might help:
http://msdn.microsoft.com/en-us/vbasic/cc337988.aspx
http://msdn.microsoft.com/en-us/library/ms268997.aspx

collapsable master detail gridview structure

I need an advice for a c# asp.net project.
My client wants to see some reports via the gridview object with master/detail structure.
The main gridview will be full by all master data and each row will have a + icon (or button) on the first cells.
When user clicks this icon, the all details data of that master row should be seen under that master row with collaps action.
I can handle the database proccess but i can not figure out the collapsing part.
How can i put some extra rows under the specific row on the gridview object?
Thanks in advance..
Matt Berseth has one of the most impresive tutorials on this kind'a stuff
it contains til now 28 tutorials only on the GridView plus a lot from other asp.net controls as well using jQuery with them. I do learn plenty with him. I really love his work and I just wanna share this with you, you might actually get some good and professional ideas from his code!
There is a CodeProject article with downloadable source:
GridView inline Master/Detail record display
Thanks but its for updating or inserting.
Instead , i have found that page, it seems more effective.
GridView control to show master-child or master-slave data, written in c#, asp.net, and javascript.
Here is another good CodeProject blog. Explains multilevel master/detail without JavaScript.
http://www.codeproject.com/KB/aspnet/MultiNestMDGridview.aspx
This is the easiest to use control I've ever run across:
http://code.msdn.microsoft.com/CompleteGridView

Categories