I attached the code and screen. Please take a look. We are putting grid in RadDock. RadGrid contain Filer option. Now In Rad Dock we collapse and expand. Grid will Hide.
2nd Concern is we are using Web20 Skin. In Normal window it is working fine. But when we decrrease the size of window we are getting teeth image. I attached all images.
Please take a look and give us solution ASAP. Please note that we are using IE 6.0
.ASPX Page
<%@ Page Language="C#" AutoEventWireup="false" ValidateRequest="false" CodeFile="TierMaskCodesTest.aspx.cs"
Inherits="TierMaskCodes" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link id="Link1" href="~/Styles/UDStyles.css" rel="stylesheet" type="text/css" runat="server" />
</head>
<body style="margin:0px;padding:0px;">
<form id="form1" runat="server" style="margin:0px;padding:0px;">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<table border="0" cellpadding="2" cellspacing="1" width="95%">
<tr>
<td style="width: 100%; border: solid 1px #B5C7DE;">
<table width="100%" cellspacing="0">
<tr>
<td style="width: 100%;">
<table width="100%" border="0" cellspacing="0">
<tr>
<td>
<telerik:RadDockLayout ID="RadDockLayout2" runat="server">
<telerik:RadDockZone ID="RadDockZone2" runat="server" Width="99%" BorderWidth="0">
<telerik:RadDock runat="server" ID="RadDock2" Title="Expand Collapse Issue" Width="100%"
EnableDrag="false" DefaultCommands="ExpandCollapse" Skin="Web20">
<ContentTemplate>
<telerik:RadGrid ID="RadGrid1" Skin="Office2007" runat="server" GridLines="None"
AutoGenerateColumns="False" OnInit="RadGrid1_Init" AllowFilteringByColumn="true">
<GroupingSettings CaseSensitive="false" />
<MasterTableView>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="Column1" AllowFiltering="false" HeaderText="Column1"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Column2" AllowFiltering="false" HeaderText="Column2"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Column3" AllowFiltering="false" HeaderText="Column3"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Column4" HeaderText="Column4"
ShowFilterIcon="true" AllowFiltering="true"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<AlternatingItemStyle BackColor="#EFF3FB" />
<HeaderContextMenu EnableTheming="True" Skin="Office2007">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</HeaderContextMenu>
<FilterMenu EnableTheming="True" Skin="Office2007">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>
<ClientSettings>
</ClientSettings>
</telerik:RadGrid>
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
</telerik:RadDockLayout>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
MinDisplayTime="200" Width="75px">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
style="border: 0px;" />
</telerik:RadAjaxLoadingPanel>
<asp:HiddenField ID="loadErrMsg" runat="server" />
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
</Windows>
</telerik:RadWindowManager>
</form>
</body>
</html>
.CS Page
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Telerik.Web.UI;
public partial class TierMaskCodes : System.Web.UI.Page
{
protected override void OnLoad(EventArgs e)
{
DataTable Dt1 = new DataTable();
Dt1.Columns.Add(new DataColumn("Column1"));
Dt1.Columns.Add(new DataColumn("Column2"));
Dt1.Columns.Add(new DataColumn("Column3"));
Dt1.Columns.Add(new DataColumn("Column4"));
DataRow Dr1 = Dt1.NewRow();
Dr1["Column1"] = "Good";
Dr1["Column2"] = "to";
Dr1["Column3"] = "eat";
Dr1["Column4"] = "Oranges";
Dt1.Rows.Add(Dr1);
DataRow Dr2 = Dt1.NewRow();
Dr2["Column1"] = "Good";
Dr2["Column2"] = "to";
Dr2["Column3"] = "eat";
Dr2["Column4"] = "Cherries";
Dt1.Rows.Add(Dr2);
DataRow Dr3 = Dt1.NewRow();
Dr3["Column1"] = "Good";
Dr3["Column2"] = "to";
Dr3["Column3"] = "eat";
Dr3["Column4"] = "Peaches";
Dt1.Rows.Add(Dr3);
DataRow Dr4 = Dt1.NewRow();
Dr4["Column1"] = "Good";
Dr4["Column2"] = "to";
Dr4["Column3"] = "eat";
Dr4["Column4"] = "Grapes";
Dt1.Rows.Add(Dr4);
DataRow Dr5 = Dt1.NewRow();
Dr5["Column1"] = "Good";
Dr5["Column2"] = "to";
Dr5["Column3"] = "eat";
Dr5["Column4"] = "Apples";
Dt1.Rows.Add(Dr5);
RadGrid1.DataSource = Dt1;
RadGrid1.DataBind();
}
protected void RadGrid1_Init(object sender, System.EventArgs e)
{
GridFilterMenu menu = RadGrid1.FilterMenu;
int i = 0;
while (i < menu.Items.Count)
{
if (menu.Items[i].Text == "NoFilter" || menu.Items[i].Text == "Contains" || menu.Items[i].Text == "DoesNotContain" || menu.Items[i].Text == "StartsWith"
|| menu.Items[i].Text == "EndsWith" || menu.Items[i].Text == "EqualTo" || menu.Items[i].Text == "NotEqualTo")
{
i++;
}
else
{
menu.Items.RemoveAt(i);
}
}
}
}
| protected void RadMenuIW_ItemDataBound(object sender, RadMenuEventArgs e) |
| { |
| IntranetMenuInfo item = (IntranetMenuInfo)e.Item.DataItem; |
| e.Item.Visible = (item.Hidden == null) || !((bool) item.Hidden); |
| e.Item.Enabled = (item.Disabled == null) || !((bool) item.Disabled); |
| bool restricted = (item.RestrictedByGroup != null) && ((bool)item.RestrictedByGroup); |
| bool pagespecific = (item.PageSpecific != null) && ((bool)item.PageSpecific); |
| if (item.ItemText == "-") |
| { |
| e.Item.IsSeparator = true; |
| e.Item.Text = ""; |
| } |
| if ((e.Item.Visible) && restricted) |
| { |
| bool hide = true; |
| // Might be hidden from user |
| foreach (UserGroupInfo groupInfo in mUserInfo.UsersGroups) |
| { |
| if (item.MenuUserGroupExists(groupInfo.UserGroupName)) |
| { |
| hide = false; |
| break; |
| } |
| } |
| e.Item.Visible = !hide; |
| } |
| if (pagespecific) |
| { |
| string pagename = GetCurrentPageName(); |
| IntranetMenuPageInfo pageInfo = |
| IntranetMenuPageData.GetPage(item.Id, pagename); |
| if (pageInfo != null) |
| { |
| if ((pageInfo.RestrictByGroup != null) && ((bool)pageInfo.RestrictByGroup)) |
| { |
| e.Item.Visible = false; |
| foreach (UserGroupInfo groupInfo in mUserInfo.UsersGroups) |
| { |
| if (pageInfo.PageUserGroupExists(groupInfo.UserGroupName)) |
| { |
| e.Item.Visible = true; |
| break; |
| } |
| } |
| } |
| else |
| { |
| e.Item.Visible = (item.MenuPageExists(pagename)); |
| } |
| } |
| else |
| { |
| e.Item.Visible = false; |
| } |
| } |
| } |
Hi...
I have an issue associated with RadCombo in the Gridtemplatecolumn of radGrid.
My scenario is:
I have a RadCombo inside the template column of RadGrid. When combo's selected item is changed then another column in Grid needs to be updated.
It should happen in such a way that when the column should get updated at the instance of itemchange, not after the user clicks update or any other mode.
Is there any way to access the selectedchange event of the Radcombo(combo being inside the template column)?
Or is there any work-around?
I need to arrive at a solution, could u provide me with one..
Please help me...
| protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem) |
| { |
| DataRowView v = (DataRowView)e.Item.DataItem; |
| ImageButton lnk = new ImageButton(); |
| lnk.ImageUrl = "~/Images/view.gif"; |
| lnk.ToolTip = GetString("TimeSheet"); |
| lnk.CommandArgument = "test"; |
| lnk.CommandName = "Redirect"; |
| lnk.Command += new CommandEventHandler(lnk_Command); |
| GridDataItem tem = e.Item as GridDataItem; |
| Item["Column"].Controls.AddAt(0, lnk); |
| } |
| } |
| protected void lnk_Command(object sender, CommandEventArgs e) |
| { |
| Session["Redirect"] = e.CommandArgument; |
| Response.Redirect("Timesheet.aspx"); |
| } |
When page is loaded first time ImageButton is successfully created and displayed in each row,
but clicking on it doesn't fire lnk_Command event (I have checked this adding breakpoints in lnk_Command),
Instead of redirecting I get the same page without ImageButtons displayed.
Please advice.