Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
Hello, I am trying to bind my scheduler to a database and I am having trouble. I am just trying to do the basics following the codeless example I was on the site.

I added the entity data source to my project and through the wizard I went through and set it up pointing to my online database. It saw my tables and I was able to select them. I also checked off the insert, update, delete. So I know the issue is not being able to see the database.

Next I set the scheduler data id to the it of the entity data source.

Below is all the code on the page I have.

<asp:EntityDataSource runat="server" ID="EntityDataSource1" ConnectionString="name=on2wheelsEntities"
DefaultContainerName="on2wheelsEntities" EntitySetName="Scheduals" EnableDelete="True"
EnableInsert="True" EnableUpdate="True" EnableFlattening="False" 
        EntityTypeFilter="Schedual">
</asp:EntityDataSource>

    <telerik:RadScheduler Height="600px" ID="RadScheduler1" runat="server" SelectedView="MonthView"
    DataDescriptionField="Description" DataEndField="EndTime" DataKeyField="Key" 
    DataSourceID="EntityDataSource1" DataStartField="StartTime" 
    DataSubjectField="Subject" EnableDescriptionField="True">
    </telerik:RadScheduler>

    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>


I made a table just for the scheduler to add items to. I have the following structure:

Id (Primary key)(int)(auto increment)(Not Nullable)(not used with scheduler)
StartTime (datetime)(Nullable) 
EndTime (datetime)(Nullable) 
Subject (varchar100)(Nullable) 
Description (varcharmax)(Nullable) 
Key (int)(Nullable) 


Plamen
Telerik team
 answered on 15 Feb 2012
3 answers
116 views
Hi Guys,

Need to know that if there is any facility where we can disable everything but the Edit form pop up, when it is Open?
Richard
Top achievements
Rank 1
 answered on 15 Feb 2012
1 answer
78 views
Hi,

I want to store as a integer value for each DockZone. How i can convert string to integer . where we are getting the zoneid as dynamically.Which attributes needs to set then i can find easily the position or zoneid. Please provide the proper solution.


Thanks,
Rajesh
Slav
Telerik team
 answered on 15 Feb 2012
7 answers
211 views
 Hi All,
I have an issue with RadTabStrip control when I create this control at runtime by using ajax. I alsway have the js error:  "
Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type"
Could you tell me how to solve this issue?

Thanks,
Peter.
PS: Here is my code (I am using RAD2010Q1.NET3.5)

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
try
{
...
...
RegisterUpdateControl();
}
catch (Exception ex)
{
DisplayErrors(ex.ToString());
}
}
protected override void OnLoad(EventArgs e)
{
int height = 0;
try
{
base.OnLoad(e);
......
.....
Test();
}
catch (System.Exception ex)
{
DisplayErrors(ex.toString);
}
}
private AjaxSetting ajaxSetting2;
private void RegisterUpdateControl()
{
ajaxSetting2 = new AjaxSetting();
ajaxSetting2.AjaxControlID = "panelTest_ID";
AjaxUpdatedControl control2 = new AjaxUpdatedControl();

control2.ControlID = "panelTest_ID";
control2.LoadingPanelID = this.ID + "loadingPanel";

ajaxSetting2.UpdatedControls.Add(control2);
this.radAjaxManager.AjaxSettings.Add(ajaxSetting2);

//panelTest_ID
}

 protected Panel panelTest;
protected Button button;
protected TextBox textbox;
private void Test()
{
panelTest = new Panel();
panelTest.ID = "panelTest_ID";
textbox = new TextBox();
textbox.ID = "textbox";
panelTest.Controls.Add(textbox);
button = new Button();
button.ID = "Button";
button.Text = "Ok";
button.Click += new EventHandler(button_Click);
panelTest.Controls.Add(button);
this.Controls.Add(panelTest);
}
RadTabStrip tap;
void button_Click(object sender, EventArgs e)
{
CreateTabTemp();
}
private void CreateTabTemp()
{
tap = new RadTabStrip();
tap.TabClick += new RadTabStripEventHandler(tap_TabClick);
tap.ID = "fdasdfasdf";
tap.EnableAjaxSkinRendering = true;
//tap.EnableEmbeddedScripts = true;
//tap.EnableEmbeddedSkins = true;
//tap.EnableSubLevelStyles = true;
InitTabs();
this.panelTest.Controls.Add(tap);
}

void tap_TabClick(object sender, RadTabStripEventArgs e)
{
string te = e.Tab.Value.ToString();
}
private void InitTabs()
{
for (int i = 0; i < 5; i++)
{
RadTab item = new RadTab("tab_" + i.ToString(), i.ToString());

tap.Tabs.Add(item);
}
}
Kalina
Telerik team
 answered on 15 Feb 2012
8 answers
176 views
A long paragraph will make the expand animation to jump, it appears that if the height of panel item > of something, this behavior happens. The same problem happens on all browsers (i tested on firefox, IE, and google chrome all fully updated).
Is this normal, can this be fixed ?

Thanks

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> 
 
<%@ 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 runat="server"
    <title></title
    <style type="text/css"
        </style> 
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadPanelBar runat="server" ID="RadPanelBar2" PersistStateInCookie="True" 
            Skin="Web20" ExpandAnimation-Type="OutQuad" ExpandAnimation-Duration="1000" CollapseAnimation-Type="OutQuad" 
            CollapseAnimation-Duration="1000"
            <Items> 
                <telerik:RadPanelItem Text="RadPanelItem"
                    <Items> 
                        <telerik:RadPanelItem> 
                            <ItemTemplate> 
                                <p> 
                                    this is a line of textth this is a line of textth is is a line of textthis is a 
                                    line of textthis this is a line of textth this is a line of textth h this is a line 
                                    of textth is is a line of textt <br /> 
                                    his is a line of textthis this is a line of textth this is a line of textth 
                                </p> 
                                <p> 
                                    this is a line of text</p> 
                                <p> 
                                    this is a line of text</p> 
                                <p> 
                                    this is a line of text</p> 
                                <p> 
                                    this is a line of text</p> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelBar> 
    </div> 
    </form> 
</body> 
</html> 
 

Simon
Telerik team
 answered on 15 Feb 2012
6 answers
220 views
Hi

I would like to create a 3 level Hierarchy created from a database stored procedure. Each level can have personnel assigned to it. How will I be able to this?

Thank You
Peter Filipov
Telerik team
 answered on 15 Feb 2012
1 answer
109 views
Hi, i want to ajaxify the treeview i have on a master page to stop a full page postback everytime a node is clicked. I have found examples for this when not being used on a master page but i cannot get it to work. Can i ask also what effect would this have on the code behind we have on the masterpage for such things as node clicks? ANy help on this would be greatly appreciated.
Maria Ilieva
Telerik team
 answered on 15 Feb 2012
7 answers
451 views
Just wondering when Telerik are going to do an OLAP cube browser.

Dundas do a fantastic one....

http://www.dundas.com/Components/Products/chart/NET/OLAP/QuickStart1.aspx

--------------------


Just realised this is covered by another thread.

http://www.telerik.com/community/forums/aspnet/general-discussions/olap-control-for-asp-net.aspx#303987
Sebastian
Telerik team
 answered on 15 Feb 2012
0 answers
102 views
Team,
    I'm using RadComboBox in my project.Inside it I placed RadTree control having the dynamic data.I want to disable the RadComboBox based on the another RadComboBox selection.At server side I'm able to enable or disable the RadComboBox and able to select the data after disabling or enabling.And it will maintains entire data in RadComboBox.

But When I'm using same operations at client side using JavaScript it's not working.After enabling the RadComboBox  using JavaScript, user want to select the value in RadComboBox.Suppose if the user selects any value from it, it losses data.It just maintains only selected value.Can you please help me on how to maintain RadComboBox data after enabling using Javascript.

Thanks,
Krishna
Krishna
Top achievements
Rank 1
 asked on 15 Feb 2012
3 answers
97 views
We are having a serious problem with event handling of the RadGrid control on the server side when using IE8.  We are currently using the latest release of Telerik UI, 2011.3.1115.40.
The problem is that when the events "PageIndexChanged" and "PageSizeChanged" are fired, we receive the following error message from the browser:
    "Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Unable to cast object of type 'System.EventArgs' to type 'Telerik.Web.UI.GridPageSizeChangedEventArgs'."

This only happens with IE8.  When we use IE9 or FireFox for the same application, there is no error being thrown.  This is a big problem in our production environment since we have a large number of users that are using the IE8 browser.

Thank you in advance for any help you can provide.

Ed Sudit
Tsvetina
Telerik team
 answered on 15 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?