I have a requirement, where the user has the ability to select multiple cells (row wise or column Wise). As soon as the selection is complete I need to merge only the selected cells(not the entire row or column). I did some research online, many suggested grouping. But when I use grouping entire row is getting merged.
Can you guys please help me with this issue.
DataGrids are not spreadsheets, you should probably look for another control as doing this in a DataGrid may be near impossible.
Related
I would like to ask around for help. How do we add empty rows to tablix dynamically in SSRS, as in I wrap the rows(including the totals) inside the list. And I want to have fixed table layout in every page mostly just like this: But, It has multiple set of total rows(sub total and grand total at the very end).
Have been racking my brain quite a long time, still no answer yet. Any workaround how could I get this table layout in SSRS Designing level???
I prefer not to mess up with SQL data-set. Because I want it dynamic.
Any idea?
Following is my previous similar question that I have able to solved :
SSRS Fixed Tablix/ add blank rows below
According to bot's suggestion, I could make it work. But this time around, case is a bit complicated as the tablix is not having only one data-row, now it has 3 rows: one data row, one subtotal and grand total.
Pls help me out. Thank you all.
For displaying my tabled data I am currently using the angular datatables Here's the link. I am mostly satisfied with it up to some things.
The only problem with the angular datatables is, that I cannot manually delete a row from the table. There is some angular way for editing and deleting rows, but then the table get rerendered, so all sorting and paginations get lost. I found another solution (smart tables), but I didn't find if there is a possibility to edit/delete a row entry (from the table). Here is a little comparison.
I use angular-datatables for the following purposes:
Displaying some data with pagination and/or scrollbars
Defining own header width for every column
Searching over all columns / searching over some columns
Rendering some columns with custom html code (for example I put some action buttons in it, or make the entries in some cols to links)
Sorting values on every column (ascending, descending)
Disabling sorting on some columns
Multiselect on rows (highlighting a row and save the id of the dataset behind the row for actions)
NO editing/deleting rows
My question is, if you can do the same with smart-table
I figured out, that already all points are implemented well.
pagination: yes / scrollbars: no?
yes
yes
yes
yes
(yes?)
multiselect: yes, accessing selected data id no?
no?
I am only not sure about the 1st, 6th, 7th and 8th point. Can you give there a statement?
I could switch to smart tables, if there are all listed options available in it.
Thanks
Pagination? yes, you have pagination out of the box, you can even change the default template and functionality
Sorting? you can ENABLE sorting by adding an optional st-sort directive to the column header
Multiselect? no, but it's easy to implement over smart-table (done it once)
Deletion? you can delete rows (that is, doing DELETE over http and slicing the array if successful)
and if there is any additional functionality you'll need in the future that ST doesn't already have, you can create your own plugin for it. the docs are you friend
I need to merge cells across multiple rows. Something similar to a RowSpan on the cell. This is because I have two columns in the grid. Column 1 can have duplicate values that relate to the values in the column one. I want to merge values in the column 1 to just appear once for all the rows in column2.
Is there a way to achieve this on the DataGrid in Silverlight 5?
I am sorry to say this but most Silverlight grids do not support cell merging. At least not out of the box. I have resorted to using Component One studio for Silverlight in order to achieve this, and even then it hasn't been exactly a walk in the park.
Consider C1 Data Grid control. Here is a sample on merging grid row and column headers with sample code and a small write up. The down side of such solutions is that C1's controls are extremely expensive :( I wish Microsoft came up with some enhancements in SL5 that would accommodate for such issues.
I feel like there's something about grids that I'm missing, but I can't find it through Googling around.
For example, I want to be able to declare ten rows with ten columns, populate them with data, and then later realize that I don't need row 3, and be able to quickly reformat it. I'm not speaking of doing this programmatic, but while redesigning the project. One way that this could be handled in theory would be HTML's manner of deleting a set of <tr></tr>s. This would be limited to rows, obviously. Another way might be the ability to give each column a name, such as "CityColumn," "StateColumn" (or named whatever else depending on the use of Grid), and then simply deleting the column's definition and all elements declared to exist in the column.
As is, if you delete any given row or column, you must go to each and every element that appears in a later row or column and change the row or column's number. It seems like there should be a better way to use XAML's grid that I'm not making use of.
While I lack a clear question that I can define, it can be said that I'm looking for best practices and/or any tips and tricks to make Grid easy to modify it and its contents and, in general, provide upkeep for.
Either explanations or links to learning resources about XAML's Grid would be welcome.
I would recommend what Jeff Mercado said: ListView with GridView as its View. The columns of that view can have headers, and if you remove an item the respective row is gone.
Also you can optimize the Grid maintainability, if you intend to stick with that, by using named references rather than indices, so if you remove one row that becomes much easier.
Okay. two questions on interactive sorting:
1. How to sort on multiple columns without holding SHIFT key?(like this: http://lukehayler.com/2011/04/sorting-on-multiple-columns-in-ssrs/)
2. How do I cancel sorting? So, usually on most web, first click on sorting arrows icon sorts by ascending, second click sorts by descending, third click cancels sorting. With SSRS I only observe first two options. Is there a way to cancel column sorting?
1) Right now that is just how the report viewer works, as others have said you could write your own controll to view the reports but this may not be an option due to time or skill level constraints.
Other people have written their own custom report viewer controls however I have always stuck to the MS version so I havent got much experience with these, and I would suspect any good ones would be a paid solution.
2) I would love this option myself, again you cant reset the sorting in this way as SSRS does not keep a record of the initial 'unordered' state of the data.
The only options you really have here are to reload your data with its original parameters or as nathan pointed out include a column that contains the starting sort order, however users may not like this as it is adding data which is not really relevant to the report data.
1) There is no way to do this with the standard report viewer control
2) There is no way to "cancel" sorting. However assuming the data was sorted into some order originally then you could include a column on the report that represents the original sort order (if it's complex ordering then you could represent this with a sequence number). This would allow the user to sort on that column to return to the original order of the report.