Hide Group Panel Telerik DataGrid UWP - datagrid

I'm trying to hide the GroupPanel in the Telerik UI for UWP RadDataGrid control.
radgrid.ShowGroupPanel does not work.

UserGroupMode="Enabled" or UserGroupMode="Disabled" will show/hide the grouping panel.
#aghilpro I found the answer.

You can use CanUserGroup
CanUserGroup (bool) : Gets or sets a value indicating whether the user can group the data by tha values in the column using the built-in Grouping UI.
More info : http://docs.telerik.com/devtools/universal-windows-platform/controls/raddatagrid/columns/datagrid-overview

Related

How to get the selected rows in ASPxGridView?

I have a grid with ASPxCheckBox in Data Item Template. How to get KeyFieldValue of all rows whose checkbox is checked. I am trying to do this using client-side code and do it for whole grid not on visible index. Is it possible?
Note: I cannot use simple row selection command column as I am using it for some other purpose.
if you dontuse client-side code, you should use detailrow in aspxgridview. And you must use beforeperformdataselect event. if you really need checkbox, you can add checkbox a new field in asapxgridview.

Get clicked cell value in DevExpress DataGrid using WPF

I have a DevExpress DataGrid in wpf apllication and it will contain two columns my problem is that I want to get particular clicked cell value in DevExpress DataGrid.
Please anybody help me!
You can identify clicked column and row handle using the hit-information returned by the GridView.CalcHitInfo() method:
GridHitInfo hitInfo = gridView1.CalcHitInfo(new Point(e.X, e.Y));
if(hitInfo.InRowCell){
object value = View.GetRowCellValue(hitInfo.RowHandle, hitInfo.Column);
//...
}
Related help-article: Hit Information Overview
Related How-To: Identify the Grid's Element Located Under the Mouse Cursor

Devexpress Gridcontrol Multiselect without using indicator column

Is there any way to allow the user to do a multiple row selection just by clicking and dragging along cells within the actual grid? I.e. Without using the indicator column?
You can do that by cell using just properties by setting the following properties located in Gridview.Options
Multiselect = True
MultiSelectMode = CellSelect
UseIndicatorForSelection = False
If you need to do it by entire rows, you are stuck writing that functionality yourself using GridView.CalcHitInfo and various events.
To achieve this behavior, you need to handle the MouseDown and
MouseMove events and select rows programmatically. You also need to
enable the multi-selection feature and switch the multi-selection
mode to "CellSelect" to be able to select individual cells.
download the attached sample from this link and customize it to implement your functionality...
MultiSelect Rows & Cells simultaneously
check the following thread, which using indicator but you can customize it hiding indicator and setting select option to cellselect etc...
"mulitiselect without CTRL key" on Devexpress..
search result that help you implement that you are looking for...

Changing the Telerik MVC Grid columns dynamically on client-side

I would like to show my table data in grid. The table has more than 50 columns. By default they are displayed fine but I need a way to hide/show columns which are not required on screen.
So is there any way to achieve this? I think right clicking on the header should show all headers in a list box, allowing selection of which columns we want, then refresh the grid.
Please let me know if Telerik supports this and, if so, how?
No builtin feature available and this is one of many reasons why we are still thinking about other grids instead of telerik.
In the demo site there is a page where they show all the column names with checkboxes on top of the grid and you can check/uncheck to show/hide columns. see that sample source code, is simple to implement but still is custom code to add manually. I love the devexpress grid with customization popup and columns dragdrop from there but nothing like that for us in Telerik :-(

jQuery to change listbox selection mode

I have an ASP.NET page with a listbox whose selection mode is set to multiple by default. I would like to set its selection mode to single on a button click.
Code snippet of my attempt:
$('#testBtn').click(function(){
$('#testListBox').attr("SelectionMode","Single");
});
It is not working though. What am I doing wrong here and how to get it to work?
cheers
The select box uses the attribute "multiple" to determine if it should allow multiple selections. You can remove it via jQuery using the removeAttr() function:
$('#testListBox').removeAttr('multiple');

Resources