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

[Solved] Searching for Colorpicker+Grid Sample

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin Price
Top achievements
Rank 1
Kevin Price asked on 17 Mar 2010, 05:12 PM
Tried searching a bit and don't see where anyone has posted a working example of using the colorpicker inside the grid. It's discussed - people mention a few issues with it - but I didn't find a working example. Maybe I didn't look deep enough? If anyone has one, it would be greatly appreciated.

Quick update - I have this almost working.... just need a hint on how to access objects inside the FormTemplate. I've seen one example that works once you're processing the Update/Insert/Delete command, but I'm trying to trap it when the Color changes in a ColorPicker and set that value in a text box.
<FormTemplate> 
.... 
                            <tr> 
                                <td> 
                                    Room Color: 
                                </td> 
                                <td> 
                                    <telerik:RadColorPicker AutoPostBack="true" runat="server" ShowIcon="true" ID="RadColorPicker1" PaletteModes="WebPalette"
                                    </telerik:RadColorPicker> 
                                     
                                    <asp:TextBox ID="ColorPickerSelectedColor" runat="server" Text='<%# Bind("room_color") %>'></asp:TextBox> 
                                </td> 
                            </tr> 
.... 
</FormTemplate> 

I have tried trapping the color change on client side and server side, as well as trying the GridEditableItem with no luck. Of course, tried binding directly to the ColorColorText prop of the colorpicker, that was funny :)

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 23 Mar 2010, 09:28 AM
Hello Kevin,

Please find the attached sample prepared based on your description and requirements and let me know if it works for you.

Sincerely yours,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Kevin Price
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or