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

5 posts, 1 answers
  1. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 06 Oct Link to this post

    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?

  2. Answer
    Stefan X1
    Admin
    Stefan X1 avatar
    518 posts

    Posted 10 Oct Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 11 Oct in reply to Stefan X1 Link to this post

    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>

  5. Stefan X1
    Admin
    Stefan X1 avatar
    518 posts

    Posted 12 Oct Link to this post

    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.
  6. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 12 Oct in reply to Stefan X1 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready