This is a migrated thread and some comments may be shown as answers.

How to create a custom column TextBox + Button (Lookup style)

6 Answers 358 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 06 Oct 2016, 12:34 PM

Hi to all,

I would create a new custom column.

I need a column to show Item No. and user need to write a code of article or click on button to lookup by articles list, click one and write into cell.

How can I do to do this?

6 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 10 Oct 2016, 12:11 PM
Hello Dario,

In order to achieve such customization, I suggest you taking a look at these three articles:

Create Custom Column Editor
Add a button column
Create Custom Editor with RadGridView

If I am understanding your requirement correctly, you can use a TextBox editor in conjunction with a RadComboBox.

Hopefully, this helps.

Regards,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Dario Concilio
Top achievements
Rank 2
answered on 11 Oct 2016, 08:11 AM

I'll try to read these document, but you didn't understand.

I would a column that have this content

<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition/>
        <ColumnDefinition Width="Auto"/>
    </Grid.ColumnDefinitions>
    <TextBox Text="{Binding SelectedCode,Mode=TwoWay}"/>
    <telerik:RadButton Content="..." Command="{Binding LookupCommand}" Width="20" Grid.Column="1"/>
</Grid>

0
Stefan
Telerik team
answered on 12 Oct 2016, 08:09 AM
Hello Dario,

In case I am not missing anything, you should be able to define the needed content as a UserControl and use it in the custom column definition, as demonstrated in the listed articles.

Feel free to approach me in case you experience any difficulties with this.

All the best,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Dario Concilio
Top achievements
Rank 2
answered on 12 Oct 2016, 08:27 AM

I read 3 link that you proposed me.

Indeed I try to create Custom Column with a specific CustomEditor called LookupEditor, in this way I can use this custom column for different context.

Thank you for support.

0
Nechama
Top achievements
Rank 1
answered on 02 Jul 2019, 05:02 PM

Hi,

Is this possible in Winforms?

Thanks

0
Dinko | Tech Support Engineer
Telerik team
answered on 05 Jul 2019, 12:42 PM
Hi Nechama,

You can consider checking the following articles which I think will be helpful.
As this is forum is related for Telerik UI for WPF products I would suggest you post any further questions related to WinForms product in the related forum thread. This way the right team will contact you responsible for the Telerik UI for WinForms products.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Dario Concilio
Top achievements
Rank 2
Nechama
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or