Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
243 views
I have a database that contains may appointments.  I have written a search page that allows a user to specifiy dates and other parameters.  Once the user initiates the search, I retrieve the appointments from the database and bind them to the radScheduler.  That part is is working fine.

However, whenever the user hits the search button, I need to clear all the previously bound appointments from the scheduler so I can put the new results from the database into the scheduler.  So, I called the Appointments.Clear() method but after a couple of seconds, it causes a javascript error.  I thought that maybe I need to set some other properties like AllowDelete=true but nothing seems to help.

Here's is the offending line (I think):

rsScheduler.AllowDelete = true;
rsScheduler.Appointments.Clear();

rsScheduler.AllowDelete = true;  
rsScheduler.Appointments.Clear(); 
If this is NOT the correct way to remove all the appointments from the scheduler, please provide me with alternatives.

Thanks,

Dexter
Dexter McCloud
Top achievements
Rank 1
 answered on 14 Apr 2010
4 answers
313 views
hi,
i want to get appointment referance means some properties of Appointment like width, top,left of that appointment ON MOUSE HOVER and ONMOUSE OUT event,so that i can handle that appointment form Clientside.like u have given click event of appointment

thanks
regarded As:
Muhammad Ali.
Peter
Telerik team
 answered on 14 Apr 2010
3 answers
79 views
quick question (can't seem to find an answer by searching)


I have a raddatepicker inside an AJAX panel everything on the form works fine, but I can't seem to set focus to it from the server side.

I can set focus to a radtextbox sitting directly beside the datepicker.

on the server side

This works
RadAjaxManaer.FocusControl(txtMyRadTextbox)

this does not work
RadAjaxManaer.FocusControl(rdpMyRadDatePicker)

any suggestions???

Maria Ilieva
Telerik team
 answered on 14 Apr 2010
1 answer
48 views
hello all
i m facing problem to display ajax calender on internet explorer it is blinking not showing on button click
Maria Ilieva
Telerik team
 answered on 14 Apr 2010
2 answers
122 views
I want to use the TreeView control in a ComboBox but I want to dynamically populate the nodes in the tree rather than defining them statically in the web page.  Do you have an example of this?  My main problem is I don't understand how to access the tree control since it is in the itemTemplate of the ComboBox.
Veronica
Telerik team
 answered on 14 Apr 2010
1 answer
80 views
Hi!

I'm trying to write a context menu control,for the reason to add context menu item dynamically!I wrote a web form page to invoke the control radcontextmenu.but when i click the href,I get a error:"Microsoft JScript runtime error: Object doesn't support this property or method"
web form page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="WebApplication1.WebForm4" %> 
 
<%@ Register TagPrefix="CM" TagName="contextmenu" Src="~/contextmenu.ascx" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!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></title>  
</head> 
<body> 
      
    <form id="form1" runat="server">  
    <script type="text/javascript">  
    //<![CDATA[
    function popupMenu(item, e) {
        window.<%=contex1.ClientID%>.ShowContextMenu(item, e);
    }
    //]]> 
    </script> 
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" /> 
    <div> 
        <CM:contextmenu ID="contex1" runat="server" /> 
        <a onclick="popupMenu(this, event)">Click here!</a> 
    </div> 
    </form> 
 
</body> 
</html> 
 
web control form(contextmenu.ascx)
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="contextmenu.ascx.cs" Inherits="WebApplication1.contextmenu" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<Telerik:RadContextMenu id="RadContextMenu1" 
                runat="server" > 
    <Items> 
        <Telerik:RadMenuItem Text="Trees" /> 
        <Telerik:RadMenuItem Text="Sunset" /> 
        <Telerik:RadMenuItem Text="Mountains" /> 
    </Items> 
</Telerik:RadContextMenu> 
web control form cs(contextmenu.ascx.cs)
using System;  
using System.Collections.Generic;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
namespace WebApplication1  
{  
    public partial class contextmenu : System.Web.UI.UserControl  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
 
        }  
        protected override void OnPreRender(EventArgs e)  
        {  
            if (!this.Page.IsClientScriptBlockRegistered(this.GetType().FullName))  
                this.Page.RegisterClientScriptBlock(this.GetType().FullName, string.Format("<script type=\"text/javascript\" src=\"{0}\"></script>", this.ResolveUrl("~/ContextMenu.js")));  
 
            if (!Page.IsClientScriptBlockRegistered(this.ClientID))  
                Page.RegisterStartupScript(this.ClientID, String.Format("<script language=javascript>window.{0} = new ContextMenu('{0}', {1});</script>", this.ClientID, this.RadContextMenu1.ClientID));  
            base.OnPreRender(e);  
        }  
    }  
} 
contextmenu.js
function ContextMenu(name, contextMenu) {  
    this.Name = name;  
    this.ContextMenuHandle = contextMenu;  
 
    this.ShowContextMenu = function() {  
        this.ContextMenuHandle.show(arguments[1]); //(the JScript error ) 
    }  
} 
Any idea about what is wrong?

Thanks.
Veronica
Telerik team
 answered on 14 Apr 2010
1 answer
138 views
Hi,

I have using the Telerik control Q22009.
I have set the column resizing property of radgrid so it allow to resize the column but in this case we have to drag the column egde to resize the column.

1)Can it possble to resize the column to the largest size of data on coulmn egde double click just like excel . 
i.e In excel when you double click on the column it will expand to the largest piece of data.

I want to resize the column on click insted of dragging the column.

Thanks

 


Iana Tsolova
Telerik team
 answered on 14 Apr 2010
5 answers
489 views
when you have itemtemplate and asp controls you can't coolapse the panel? why is that? if you can please let me know. thanks.
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Web20" ExpandMode="fullexpandeditem" OnClientItemClicked="collapseRoots">  
                        <Items> 
                            <telerik:RadPanelItem  Value="RadPanelBar_CompanyReport" Text="Company Report">  
                                <ItemTemplate> 
                                    <telerik:RadTextBox ID="txt_test" runat="server" /> 
                                    <asp:Button ID="btn_Submit" runat="server" Text="Submit" OnClick="btn_Submit_ButtonClick"/>  
                                </ItemTemplate> 
                             </telerik:RadPanelItem>                                                      
                            <telerik:RadPanelItem Text="Test2">  
                                <Items> 
                                    <telerik:RadPanelItem Text="test2" /> 
                                </Items> 
                            </telerik:RadPanelItem> 
                            <telerik:RadPanelItem Text="test3">  
                                <Items> 
                                    <telerik:RadPanelItem Text="test3" /> 
                                </Items> 
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelBar> 
Yana
Telerik team
 answered on 14 Apr 2010
1 answer
58 views

Hello,telerik.
Another question about self-hierarchy grid:
In self-hierarchy gird, Does expand-collapse indicator icon only show in datakey ID column?
Can I move the indicator to the other column (for example: LastName,or FirstName of live DEMO )?

Please me ,help me.all guys 

thanks any way 

Daniel
Telerik team
 answered on 14 Apr 2010
1 answer
117 views
Tried following article for radgrid localization, it's fine but some parts couldn't change. Screenshots are attached. Fields marked with are not replaced.

Code-behind localization using extension methods (via ResourceManager)

I have a problem without localization. Using page codes

ASPX Code:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Liste.ascx.cs" Inherits="Kp_Kontrol_Eklenti_Liste" 
    Debug="true" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" 
    SelectMethod="GetDS" TypeName="W5PCore.Modul.EklentiBLL">  
    <SelectParameters> 
        <asp:Parameter Name="EklentiID" Type="Int16" /> 
    </SelectParameters> 
</asp:ObjectDataSource> 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"   
    DataSourceID="ObjectDataSource1" GridLines="None" PageSize="2" Skin="Hay">  
    <PagerStyle Mode="NextPrevNumericAndAdvanced"   
        PageSizeLabelText="Sayfa Boyutu:" /> 
<MasterTableView DataSourceID="ObjectDataSource1">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
</MasterTableView> 
    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">  
    </ClientSettings> 
</telerik:RadGrid> 
 
 

ASPX.CS Code
using System;  
 
public partial class Kp_Kontrol_Eklenti_Liste : System.Web.UI.UserControl  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
          
    }  
}  
 

Thanks
Pavlina
Telerik team
 answered on 14 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?