

<%
@ Register TagPrefix="radG" Namespace="Telerik.WebControls" Assembly="RadGrid.Net2" %>
C:\Inetpub\wwwroot\Telerik_RadControls\bin\Telerik.Web.UI.dll
still shows the old version of the grid.<
add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.723.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> under
<
httpHandlers>
in the web.config
<
assemblies>
....
<
add assembly="Telerik.Web.UI, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
(NO Version numbering) which allows this.
Hi,
My problem is as follows. I'm trying load dynamicaly load buttons in my page. I then want them to update a label (as a test). For the buttons I wish to use htmlbutton as I can change their content more easily. unfortunately when I try click those button nothing happens to the label although it's event is fired on the server. (break point is vs proves that). When I disable ajax. the label is updated. When I change to ordinary buttons. Everything works as expected, an ajax request is fired and the label is updated.
Why doen't the label update after pushing the htmlbutton?
| magischerSqlConnection.Open(); | |
| SqlCommand command = new SqlCommand("exec getTaskPaneItemAccess @userId", magischerSqlConnection); | |
| command.Parameters.Add(new SqlParameter("userId", userId)); | |
| SqlDataReader reader = command.ExecuteReader(); | |
| while(reader.Read()) | |
| { | |
| /* | |
| HtmlButton hb = new HtmlButton(); | |
| hb.ServerClick += new EventHandler(hb_ServerClick); | |
| hb.InnerHtml = "<div style=\"width:180px;height:30px;\" ><img align=\"left\" src='/LoadImage.ashx?id=" + reader["taskPaneItemImage"].ToString() + "' /> " + reader["taskPaneItemName"].ToString() + "</div>"; | |
| this.FindControl("rpv_" + reader["taskPaneName"].ToString()).Controls.Add(hb); | |
| */ | |
| /* | |
| Button hb = new Button(); | |
| hb.Text = reader["taskPaneItemName"].ToString(); | |
| hb.Click += new EventHandler(hb_Click); | |
| this.FindControl("rpv_" + reader["taskPaneName"].ToString()).Controls.Add(hb); | |
| */ | |
| RadAjaxManager1.AjaxSettings.AddAjaxSetting(hb, Label1); | |
| } | |
| magischerSqlConnection.Close(); | |
| BottomLeftPane.Scrolling = SplitterPaneScrolling.None; | |
| BottomLeftPane.Height = numberOfTaskPanes * 36; | |
| } | |
| void hb_Click(object sender, EventArgs e) | |
| { | |
| Button hb = (Button)sender; | |
| Label1.Text = hb.ClientID; | |
| } | |
| void hb_ServerClick(object sender, EventArgs e) | |
| { | |
| HtmlButton hb = (HtmlButton)sender; | |
| Label1.Text = hb.ClientID; | |
| } | |
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Magischer._Default" %> | |
| <%@ Register assembly="Telerik.Web.UI, Version=2008.3.1105.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 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 runat="server"> | |
| <title>Untitled Page</title> | |
| <link href="controls.css" rel="stylesheet" type="text/css" /> | |
| <script type="text/javascript"> | |
| //<!-- | |
| function OnClientItemClicking(sender, eventArgs) | |
| { | |
| var multipage = $find("MainTaskPages"); | |
| multipage.set_selectedIndex(eventArgs.get_item().get_index()); | |
| } | |
| //--> | |
| </script> | |
| </head> | |
| <body> | |
| <form id="form1" runat="server"> | |
| <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True"> | |
| </telerik:RadScriptManager> | |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> | |
| </telerik:RadAjaxManager> | |
| <telerik:RadAjaxPanel ID="MainFilterPanel" runat="server" height="55px" width="695px"> | |
| <telerik:RadComboBox ID="RadComboBox1" Runat="server" CssClass="floatLeft"> | |
| </telerik:RadComboBox> | |
| <telerik:RadComboBox ID="RadComboBox3" Runat="server" CssClass="floatLeft"> | |
| </telerik:RadComboBox> | |
| <telerik:RadComboBox ID="RadComboBox2" Runat="server" CssClass="floatLeft"> | |
| </telerik:RadComboBox> | |
| </telerik:RadAjaxPanel> | |
| <telerik:RadSplitter ID="MainSplitter" runat="server"> | |
| <telerik:RadPane ID="MainContentPane" runat="server" scrolling="none"> | |
| <telerik:RadSplitter ID="RadSplitter1" runat="server" BorderStyle="None" PanesBorderSize="0"> | |
| <telerik:RadPane ID="TaskPane" runat="server" Width="198px" MinWidth="198" MaxWidth="600" Scrolling="None"> | |
| <telerik:RadSplitter ID="RadSplitter2" runat="server" BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal" > | |
| <telerik:RadPane ID="TopLeftPane" runat="server"> | |
| <telerik:RadMultiPage ID="MainTaskPages" runat="server" SelectedIndex="0" | |
| Height="100%" Width="100%" BackColor="White" BorderColor="#6593cf" | |
| BorderStyle="Solid" BorderWidth="0px"></telerik:RadMultiPage> | |
| </telerik:RadPane> | |
| <telerik:RadSplitBar ID="RadSplitBar2" runat="server" CollapseMode="Backward" EnableResize="False" /> | |
| <telerik:RadPane ID="BottomLeftPane" runat="server" Height="120px"> | |
| <telerik:RadPanelBar ID="MainTaskPaneBar" Runat="server" | |
| ExpandMode="SingleExpandedItem" Skin="Office2007" | |
| OnClientItemClicking="OnClientItemClicking" Width="100%" Height="100%"> | |
| <CollapseAnimation Type="None" Duration="100"></CollapseAnimation> | |
| <ExpandAnimation Type="None" Duration="100"></ExpandAnimation> | |
| </telerik:RadPanelBar> | |
| </telerik:RadPane> | |
| </telerik:RadSplitter> | |
| </telerik:RadPane> | |
| <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" EnableResize="False" /> | |
| <telerik:RadPane ID="RightPane" runat="server"> | |
| <asp:Panel ID="Panel1" runat="server" Height="81px" Width="156px"> | |
| <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> | |
| </asp:Panel> | |
| </telerik:RadPane> | |
| </telerik:RadSplitter> | |
| </telerik:RadPane> | |
| </telerik:RadSplitter> | |
| </form> | |
| </body> | |
| </html> | |
| Dim buttonItem2 As RadMenuItem = RadMenu2.FindItemByText("CellarClub") |
| Dim MemberInfo As ImageButton = DirectCast(buttonItem2.FindControl("MemberInfo"), ImageButton) |
| MemberInfo.Attributes.Add("onmouseover", "src='" & ResolveClientUrl("images/buttons/rt-arrow-over-grey.gif") & "'") |
I have a scenario, i have a radtreeview control on left side and raddockzone on right, i want to drag the tree node to zone and add it to particular position and drop it as raddock, how can i acheive this scenario.
please help...
Fahad
Nice feature adding in ResourceStyles, I'd like to integrate with my current app. I'm using a custom data provider so I can support multiple resources (classes and classrooms, classes can be in multiple classrooms)
I'm currently doing this below:
| List<Room> roomList = GetRoomList(); //returns list of rooms (ID, Name, Abbreviation, ScheduleColor); |
| foreach (Room room in roomList) |
| { |
| schedulerMain.ResourceStyles.Add(new ResourceStyleMapping("Room", room.RoomID.ToString(), room.Name, room.ScheduleColor)); |
| } |
This works great, except for appointments with multiple resources. So I figure on AppointmentDataBound, if the appointment has more than one resource, remove it and use a default style. How do I remove the current resource style that is applied, ie. something like this:
| protected void schedulerMain_AppointmentDataBound(object sender, SchedulerEventArgs e) |
| { |
| List<Resource> resources = (List<Resource>)e.Appointment.Resources.GetResourcesByType("Room"); |
| if (resources.Count > 1) |
| { |
| //use different resource style |
| } |
| } |
I appreciate any help you can send my way, thanks guys!