Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
Hi
I using Vs.2008
I have a RadTripStrip with 4 tabs
I want fire OnTabClick event on server side just for one of those tabs

I write OnClientTabSelecting event, i can determine in this event what tab is selecting
Now, how i prevention OnTabClick event in my cutom case?
Shinu
Top achievements
Rank 2
 answered on 03 Jan 2011
4 answers
55 views

Hi, 
I am using a MOSSradEditor inside the following control hirarchy: 

Sharepoint Web part
- - - - Web user control
- - - - - - - - Rad Dock
- - - - - - - - - - - - MOSSRadEditor.

I would like to have ModeChange event of the MOSSRadEditor on the server side. For this purpose I handle the ClientModeChange event and then use RadAjaxManager to send the ajaxrequest to the server. But the method $find returns null in the line: 

 

var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");

 

 

Therefore I receive the javascript error Error: 'null' is null or not an object on the next line:        

 

ajaxManager.ajaxRequest(operation);

 

 

Can you pleae let me know how I can solve this problem, 
or proposing any pther way to have ModeChange event on the server side?
Here is the code section.

 

<%

 

@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditFormUI.ascx.cs"

 

 

 

 

 

 

 

Inherits="EditingTools.Core.EditFormUI" %>

 

<%

 

@ Register Assembly="Telerik.Web.UI, Version=2010.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

 

 

 

 

Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

 

@ Register Assembly="RadEditorSharePoint, Version=5.8.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed"

 

 

 

 

 

 

 

Namespace="Telerik.SharePoint" TagPrefix="telerikSP" %>

 

 

 

 

<

 

 

asp:ScriptManager ID="ScriptManager1" runat="server">

 

</

 

 

asp:ScriptManager>

 

<

 

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

 

</

 

 

telerik:RadAjaxManager>

 

<

 

 

telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

 

 

 

 

 

 

<script type="text/javascript">

 

 

 

 

 

 

 

function ajaxRequest(operation) {

 

 

 

var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");

 

ajaxManager.ajaxRequest(operation);

}

 

 

</script>

 

</

 

 

telerik:RadScriptBlock>

 

<

 

 

telerik:RadDockLayout ID="RadDockLayout1" runat="server">

 

 

 

 

 

 

 

<telerik:RadDockZone ID="dockZone" runat="server" Orientation="Vertical" Width="100%"

 

 

 

 

 

 

 

FitDocks="true">

 

 

 

 

 

 

 

<telerik:RadDock ID="dockAma" runat="server" >

 

 

 

 

 

 

 

<ContentTemplate>

 

 

 

 

 

 

 

<telerikSP:MOSSRadEditor ID="EditorAma" runat="server" OnClientModeChange="Editor_ModeChange">

 

 

 

 

 

 

 

<Content>

 

 

 

 

 

 

 

</Content>

 

 

 

 

 

 

 

</telerikSP:MOSSRadEditor>

 

 

 

 

 

 

 

</ContentTemplate>

 

 

 

 

 

 

 

</telerik:RadDock>

 

 

 

 

 

 

 

</telerik:RadDockZone>

 

</

 

 

telerik:RadDockLayout>

 

 

 

 

 

<

 

 

script type="text/javascript">

 

 

 

 

 

RadEditorCommandList[

 

"Save"] = function (commandName, editor, oTool) {

 

ajaxRequest(

 

"Save" );

 

}

RadEditorCommandList[

 

"Cancel"] = function (commandName, editor, oTool) {

 

ajaxRequest(

 

"Cancel");

 

}

 

 

function Editor_ModeChange(editor, args) {

 

 

 

var mode = editor.get_mode();

 

 

 

switch (mode) {

 

 

 

case 1:

 

ajaxRequest(

 

"Design" );

 

 

 

break;

 

 

 

case 4:

 

ajaxRequest(

 

"Preview" );

 

}

}

 

 

 

</

 

 

script>

 

Thank you in advance.

 

 

 

Ali
Top achievements
Rank 1
 answered on 03 Jan 2011
2 answers
98 views
Hello and marry xmas and so on ;)

my multiple columns show up like that:

. DataItem.field1
. DataItem.field2
. DataItem.field3

instead of

. DataItem.field1 | . DataItem.field2 | . DataItem.field3

i went through the demo page example code and css multiple times but i dnot know why my ul, li, li, li ... does'nt want to show up horizontal as in the demo.

Hope u can help me.

Maybe tell me which part of the code/css/asp makes this behavoir happen.

thx Mario
Mario
Top achievements
Rank 2
 answered on 03 Jan 2011
4 answers
88 views

Hi,

I had gone through this article at below link for Radscheduler Implementation for my scenario.

http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx

However I am facing a time latency issue when I save the appointment (using SubmitButton_Click Method), the Appointment save time takes approx 20-30 seconds to save. I am using below 2 statements :-

XmlSchedulerProvider provider = new XmlSchedulerProvider(MyXMLFilePath, false);

RadScheduler1.Provider = provider;

 in SubmitButton_Click method

If I remove above statement and add

Radscheduler1.Rebind() in place of it which you suggested in the previous articles based on this scenario ,I need to refresh the Radscheduler in order to see the Updated Appointment.

But in case of using above 2 statements I don't need to refresh the Radscheduler, but I face with time latency issue.

So, please suggest me a solution in order to resolve it.

I am using (2010.2.929.40) version.

Veronica
Telerik team
 answered on 03 Jan 2011
2 answers
62 views
Hi I am working with a radgrid and need help.

I created a javascript function so that when you select the row of the grid, which is insidea pageview, automatically switch to the second tab, which has a WebUserControl.Worked without problems.

My question is, how do I pass parameters using javascript, I need to WebUserControl do I need?

Javascript function:
            function selectTab(sender, args) {
                var _id = args.getDataKeyValue("ID");

                var tabStrip = $find("<%= RadTabStrip.ClientID %>");
                var tab = tabStrip.findTabByText("Employee");
                if (!tab) {
                    return false;
                }
                tab.set_selected(true);
                return false;
            }

Vasil
Telerik team
 answered on 03 Jan 2011
2 answers
58 views
As soon as I try to insert an item into my paging grid it moves to last page. Is it possible to avoid this?

//h
Henrik
Top achievements
Rank 1
 answered on 03 Jan 2011
1 answer
95 views
when i was using RadAjaxManager and RadAjaxLoadingPanel it's work in my testing project just like this
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
 
<%@ 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">
 
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
     
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" BackgroundPosition="None">
    </telerik:RadAjaxLoadingPanel>
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
    </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <asp:Panel ID="Panel1" runat="server">
    <table>
    <tr>
    <td>UserId:</td>
    <td><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
    <td><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Invalid Name" ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox></td>
    <td><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Invalid Password" ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>
    </tr>
    </table>
     
    <div><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox5" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox6" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox7" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox8" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox9" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox10" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox11" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox12" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox13" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox14" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox15" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox16" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox17" runat="server"></asp:TextBox></div>
    <div><asp:TextBox ID="TextBox18" runat="server"></asp:TextBox></div>
    </asp:Panel>
    <div><asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /></div>
    </form>
</body>
</html>

protected void Button1_Click(object sender, EventArgs e)
    {
        System.Threading.Thread.Sleep(2000);
        Response.Redirect("default3.aspx");
    }

but when i was use same thing in my major projects it does not work here it isplz help and reply urgently i'm waiting.
Maria Ilieva
Telerik team
 answered on 03 Jan 2011
1 answer
127 views

Dear Telerik,

I refer to the page regarding accessibility with the Rad TreeView.

We have Tooltips enabled, but I notice when browsing the page using Microsoft Narrator (Windows 7) that it does not read the tooltips as the page suggests it should.

I am not an expert in screenreaders, but it seems we have done as instructed yet it does not work.  Can you advise this should work with Windows 7 version of Narrator?

Otherwise, can you offer any suggestions please?

We are using Telerik.Web.UI.dll  v2010.2.713.35 

Thank you.

Mark

 

Nikolay Tsenkov
Telerik team
 answered on 03 Jan 2011
2 answers
140 views
I have created a web page in which I have placed a rad editor. When I clicked on Apply Css Class drop down it displays css classses of entire application instead of displaying css classes of rad editor or no class if there are no classes for editor. So please give some solution to fix this problem.
Thanks. 
Nidhi
Top achievements
Rank 1
 answered on 03 Jan 2011
1 answer
38 views
Hi,

I Have a problem with adding gridView to my project.
Last week our company buy your product and i was adding the first control into my project and run it.
When i was closing the explorer window, an error accured - "Microsoft JScript runtime error: '_events' is null or not an object"
Any solution for this error? and if this error going to effact my project somehow?

Tomer. 
Daniel
Telerik team
 answered on 03 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?