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
<MasterTableView> <GroupByExpressions> <telerik:GridGroupByExpression> <GroupByFields> <telerik:GridGroupByField FieldName="Usuario.Login" /> </GroupByFields> <SelectFields> <telerik:GridGroupByField FieldName="Usuario.Login" /> </SelectFields> </telerik:GridGroupByExpression> </GroupByExpressions> </MasterTableView>Hi,
There is an issue with Rad Upload control not loading File Open dialog box in Fire Fix. Please find belwo Rad Upload markup and Javascript function. This javascript function working perfectly in IE but not in Fire Fox because it doesn't allow File Input control to be clicked. Please provide a workaround for this issue.
Thanks in advance.
Rad Upload markup:
<telerik:RadUpload id="fileUploadImport" OnClientAdded="MakeKeyBoardAccessible" OnClientFileSelected="validateBrowse" ReadOnlyFileInputs="true" EnableEmbeddedSkins="false" Skin="Default" AllowedFileExtensions=".txt" ControlObjectsVisibility="None" ToolTip="Browse" runat="server">
<Localization Select = "Browse"/>
</telerik:RadUpload>
function MakeKeyBoardAccessible(radUplaod, args) {
args._row.all[3].onkeydown = function(e) {
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13) {
args._row.all[1].click();
}
}
}
<telerik:RadTreeView ID="RadTreeView1" Runat="server"> <ContextMenus> <telerik:RadTreeViewContextMenu OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" runat="server" ID="HelpDeskMenu" ClickToOpen="True" Skin="Vista"> <Items> <telerik:RadMenuItem Text="Add Lesson Component" Value="xyz"></telerik:RadMenuItem> </Items> </telerik:RadTreeViewContextMenu> </ContextMenus> </telerik:RadTreeView> // CODE TO POPULATE TREE RadTreeNode node = new RadTreeNode("Test Google"); RadTreeNode node2 = new RadTreeNode("Test Google 2"); RadTreeView1.Nodes.Add(node); RadTreeView1.Nodes.Add(node2);string strID = string.Empty; string UnderLicenseeID = string.Empty; string StrType = string.Empty; string msg = string.Empty; //RadTextBox Users = ((RadTextBox)e.Item.FindControl("txtUsers")).Text; ViewState["bound"] = "1"; if(e.Item is GridDataItem) { GridDataItem Item = e.Item as GridDataItem; if(ViewState["bound"].ToString() == "1") { foreach (GridDataItem item in RadGrid1.Items) { if(item["Users"].Text != null) { strID = item["ClientID"].Text; UnderLicenseeID = item["UnderLicense"].Text; StrType = item["Type"].Text; msg = item["Name"].Text; RadGrid2.Visible = false; } } } }