Hi
I have a RADGrid with one button column and rest bound columns as follows;
<telerik:RadGrid ID="DocsList" runat="server" AllowPaging="True" GridLines="None" OnNeedDataSource="DocsList_NeedDataSource"> <MasterTableView AutoGenerateColumns="False"> <Columns> <telerik:GridBoundColumn FooterText="Document" UniqueName="Document" SortExpression="ContactTitle" HeaderText="Document" DataField="Document" Resizable="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn FooterText="Index" UniqueName="Index" HeaderText="Index" DataField="Index" Display="false"> <ItemStyle Width="0px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn FooterText="MediaURL" UniqueName="MediaURL" HeaderText="MediaURL" DataField="MediaURL" Display="false"> <ItemStyle Width="0px" /> </telerik:GridBoundColumn> <telerik:GridButtonColumn FooterText="View" ButtonType="ImageButton" UniqueName="View" HeaderText="View" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" CommandName="Select" DataTextField="CustomerID" ImageUrl="~/Resources/Images/submit.png"> <ItemStyle Width="20px" /> </telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid>I have a few questions;
1. How can I attach an onclick event to the buttons in the button column so when a button in a row is clicked then value of one of the bound columns in the same row is returned?
2. The button images' seems to have an annoying shadow (image1.jpg attached). How can this be removed?
3. When this web page is being viewed in browser and browser window is scaled down the buttons start to crop instead of grid rescaling to allow the button to remain fully visible (image2.jpg attached). How can this be fixed?
Many Thanks
Regards