[Feature request] Enable different title in column picker than Title (property) #973

Closed
opened 2026-01-29 17:47:08 +00:00 by claunia · 3 comments
Owner

Originally created by @marekm294 on GitHub (Sep 1, 2023).

Is your feature request related to a problem? Please describe.
When I have composite columns in RadzenDataGrid which have same columns inside (Title) I cannot differentiate them in ColumnPicker. Therefore as a user I don't know which column do I hide.

Describe the solution you'd like
It would be nice to have property ColumnPickerTitle which would be used to set text in ColumnPicker. Title would be used as default value if ColumnPickerTitle wasn't set.

/// <summary>
/// Gets or sets the title in column picker.
/// Value of Title is used when ColumnPickerTitle is not set
/// </summary>
/// <value>The title.</value>
[Parameter]
public string ColumnPickerTitle 
{
    get => _columnPickerTitle == null ? Title : _columnPickerTitle;
    set => _columnPickerTitle = value;
}

string _columnPickerTitle;
<div class="rz-column-picker">
    <RadzenDropDown SelectAllText="@AllColumnsText" AllowSelectAll="@AllowPickAllColumns"
        MaxSelectedLabels="@ColumnsPickerMaxSelectedLabels"
        SelectedItemsText="@ColumnsShowingText" Change=@ToggleColumns
        @bind-Value="@selectedColumns" FilterCaseSensitivity=FilterCaseSensitivity.CaseInsensitive
        Multiple="true" AllowFiltering="@ColumnsPickerAllowFiltering"
        Placeholder="@ColumnsText"
        Data="allPickableColumns"
        TextProperty="ColumnPickerTitle" />
</div>

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

I can push this code and make PR if you approve it as good idea.

Originally created by @marekm294 on GitHub (Sep 1, 2023). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can request your feature via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. --> **Is your feature request related to a problem? Please describe.** When I have composite columns in RadzenDataGrid which have same columns inside (Title) I cannot differentiate them in ColumnPicker. Therefore as a user I don't know which column do I hide. **Describe the solution you'd like** It would be nice to have property ColumnPickerTitle which would be used to set text in ColumnPicker. Title would be used as default value if ColumnPickerTitle wasn't set. ``` /// <summary> /// Gets or sets the title in column picker. /// Value of Title is used when ColumnPickerTitle is not set /// </summary> /// <value>The title.</value> [Parameter] public string ColumnPickerTitle { get => _columnPickerTitle == null ? Title : _columnPickerTitle; set => _columnPickerTitle = value; } string _columnPickerTitle; ``` ``` <div class="rz-column-picker"> <RadzenDropDown SelectAllText="@AllColumnsText" AllowSelectAll="@AllowPickAllColumns" MaxSelectedLabels="@ColumnsPickerMaxSelectedLabels" SelectedItemsText="@ColumnsShowingText" Change=@ToggleColumns @bind-Value="@selectedColumns" FilterCaseSensitivity=FilterCaseSensitivity.CaseInsensitive Multiple="true" AllowFiltering="@ColumnsPickerAllowFiltering" Placeholder="@ColumnsText" Data="allPickableColumns" TextProperty="ColumnPickerTitle" /> </div> ``` **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. I can push this code and make PR if you approve it as good idea.
Author
Owner

@Cosmatevs commented on GitHub (Sep 5, 2023):

I think you can simply make a pull request and it will be merged to the master faster than you'll get an answer here 😉

@Cosmatevs commented on GitHub (Sep 5, 2023): I think you can simply make a pull request and it will be merged to the master faster than you'll get an answer here 😉
Author
Owner

@marekm294 commented on GitHub (Sep 5, 2023):

@Cosmatevs I would really like to make new pull request but I'm not able to create new branch

@marekm294 commented on GitHub (Sep 5, 2023): @Cosmatevs I would really like to make new pull request but I'm not able to create new branch
Author
Owner

@MPapst commented on GitHub (Sep 7, 2023):

You need to fork the repository into your account and create a pr from there.

@MPapst commented on GitHub (Sep 7, 2023): You need to fork the repository into your account and create a pr from there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#973