Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
218 views
function setv(sender,args)  
{  
   var id='<%# Eval("ID") %>';  
   sender.set_value(id);  
} 
i have a combobox which resides inside a formview and uses objectdatasource.
my combobox is loaded on demand.
on the OnClientLoad function of combobox, i would like to set the value of the combobox which i get from objectdatasource in client side using <%# Eval("ID" %>.
But Eval doesn't seem to work inside javascript. I dont' wont to use server side programming ondatabinding of objectdatasource. I would like to use client side.
thanks
Prabir
Top achievements
Rank 1
 asked on 08 May 2008
29 answers
340 views

I've copied the Windows2000 skin and made some amendments to the CSS which have worked very well. However the Splitter is still trying to get images from a WebResource, as such no images are being displayed.

<telerik:RadSplitter ID="MainSplitter" runat="server" Orientation="Vertical" Width="100%" Height="100%" Skin="MySkin" EnableEmbeddedSkins="false" >

 

<telerik:RadPane ID="MainContent" runat="server" Scrolling="none">

 

<telerik:RadSplitter ID="MainContentSplitter" runat="server" Orientation="Horizontal" >

 

<telerik:RadPane ID="MainContent_SearchHolder" runat="server" Height="25" Locked="true" >

 

<telerik:RadSlidingZone ID="MainContent_SlidingZone" runat="server" ClickToOpen="true">

 

<telerik:RadSlidingPane ID="MainContent_SearchOptions" runat="server" Title="Search Options" MinHeight="250" Height="250" EnableDock="false" >

 

Search Optionssssss

</telerik:RadSlidingPane>

 

<telerik:RadSlidingPane ID="MainContent_SavedSearches" runat="server" Title="Saved Searches" EnableDock="false">

 

Saved Searchedddddd

</telerik:RadSlidingPane>

 

<telerik:RadSlidingPane ID="MainContent_ApplicantActions" runat="server" Title="Applicant Applications" EnableDock="false">

 

Applicant Actionssssss

</telerik:RadSlidingPane>

 

</telerik:RadSlidingZone>

 

</telerik:RadPane>

 

<telerik:RadSplitBar ID="Splitbar_Search_Results" runat="server" CollapseMode="None" />

 

<telerik:RadPane ID="MainContent_Results" runat="server" Scrolling="y">

 

Results

</telerik:RadPane>

 

<telerik:RadSplitBar ID="Splitbar_Results_Bookmarks" runat="server" CollapseMode="Both" />

 

<telerik:RadPane ID="MainContent_Bookmarks" runat="server" Scrolling="Y">

 

Bookmarks

</telerik:RadPane>

 

</telerik:RadSplitter>

 

</telerik:RadPane>

 

<telerik:RadSplitBar ID="TheSplitBar" runat="server" CollapseMode="none" EnableResize="false" />

 

<telerik:RadPane ID="SlidingContent" runat="server" Width="25" Scrolling="none">

 

<telerik:RadSlidingZone ID="SlidingZone" runat="server" ClickToOpen="true" SlideDirection="left" >

 

<telerik:RadSlidingPane ID="Slide_AppNotes" runat="server" Title="Applicant Notes" MinWidth="500" Width="500">

 

App Notes

</telerik:RadSlidingPane>

 

<telerik:RadSlidingPane ID="Slide_AppContactHistory" runat="server" Title="Contact History" MinWidth="500" Width="500">

 

Contact History

</telerik:RadSlidingPane>

 

</telerik:RadSlidingZone>

 

</telerik:RadPane>

 

</telerik:RadSplitter>


Any ideas how I can put my own images in?
Tsvetie
Telerik team
 answered on 08 May 2008
1 answer
219 views
I have a Label within a NestedViewTemplate.  I just want to be able to access this Label from my code so I can populate it when the associated row in clicked.  I was able to get a reference to it for the first row, but there's got to be a better way...  Here's how I'm getting to it from the Grid's OnItemCommand method:
protected void radGridSample_ItemCommand(object sender, GridCommandEventArgs e)  
{  
    if (e.CommandName == "ExpandCollapse")  
    {  
        if (e.Item.Expanded == false)  
        {  
            // The line below is where I get the label, but it's too clunky and only works for on GridItem...  
            Label lblDetail = e.Item.Parent.Controls[4].FindControl("lblDetail") as Label;  
            if (lblDetail != null)  
            {  
                StringBuilder sbDetail = new StringBuilder();  
                sbDetail.AppendLine("<div class='Details'>bla bla bla</div>");  
                lblDetail.Text = sbDetail.ToString();  
            }  
        }  
    }  
}  
 
What's the *right* way to do this?  I couldn't find any mention of it in the docs or samples...

Thanks!

Eddie
diggityDawg
Top achievements
Rank 1
 answered on 08 May 2008
2 answers
111 views
hi all!

maybe i'm missing something, but i need to have the subject and one on my resources mandatory when editing or inserting an appointment.

how can i achieve that?

i'm able to the event 'appointment_insert' to check if the subject is empty & also check the resource if is nothing....

but when updating i always get the 'old' values in the 'appointment_update' event - so when some one has deleted the subject i cannot check or stop him from doing so...

are there any examples i'm missing?

please help me :-)
thanks!
Reini
Top achievements
Rank 2
 answered on 08 May 2008
1 answer
149 views
Hello,

Could you give us a time frame as to when SP1 will be available.

Many thanks
Ivo
Telerik team
 answered on 08 May 2008
1 answer
71 views

Error 128 'Telerik.Web.UI.RadWindowManager' does not contain a definition for 'Language' and no extension method 'Language' accepting a first argument of type 'Telerik.Web.UI.RadWindowManager' could be found (are you missing a using directive or an assembly reference?) 
Georgi Tunev
Telerik team
 answered on 08 May 2008
12 answers
209 views
I've been using the RadToolbar for Asp.Net with the DisplayEnds property set to false so that I could blend the toolbar into the background image.  Basically, I want the toolbar to look like it extends the entire width of the container.  I'm not able to do this with the ASP.NET AJAX version since there doesn't appear to be a DisplayEnds property and setting the width to be 100% doesn't make the toolbar 100% wide.  Is there another way I can accomplish this in the ASP.NET AJAX version?

Thanks,
Matt
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 08 May 2008
2 answers
162 views
There is one minor annoyance when upgrading with a website that uses RadEditor. As you know, in the Web.config you have to add an httpHandlers like this:

<add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

When you swap out the DLL in the bin folder, you have to manually go into the Web.config and update the version in the type section above, or else the RadEditor dialogs fail. I know it's nothing like a functionality issue, but is there a way to upgrade without needing to update the Web.config with the new version info? It's pretty tedious when you have a few websites that need upgrading so you need to go into some page that uses a RadEditor, go to the properties, and enable dialogs so it can update the Web.config with the exact info and version.
bemara57
Top achievements
Rank 1
 answered on 08 May 2008
1 answer
295 views
I am trying to have a ajax page initiate self -  postback after the page loads on the client side the first time.  The script raises a "object is null error" when it trys to run.  However if I ignore the error and manually click the button it works.     Here is a simplified sample of the code. 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestAjax2.aspx.cs" Inherits="TestAjax2" %>

<%@ 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>Untitled Page</title>
</head>
<body  >
    <form id="form1" runat="server">
    <div>
       <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
  <script language=jscript>
  function xpress(){
 
   
  $find('<%=RadAjaxPanel1.ClientID%>').ajaxRequestWithTarget("<%= RadAjaxPanel1.UniqueID %>", "Button1Press")
  }
  </script>
  </telerik:RadScriptBlock >
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
          
      
        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
   
   
      <br />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
     <input type=button id=buttonx   value="Change color" onclick='<%=RadAjaxPanel1.ClientID%>.ajaxRequestWithTarget("<%= RadAjaxPanel1.UniqueID %>", "ButtonxPress")' />
      <input type=button id=button1   value="Change colorx" onclick='xpress()' />
    </telerik:RadCodeBlock>
    </telerik:RadAjaxPanel>
    </div>
    </form>
</body>
</html>



using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class TestAjax2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Page_PreRender(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
                Type cstype = this.GetType();
              
            //    ClientScript.RegisterStartupScript(cstype, "", "xpress();", true);

                ScriptManager.RegisterStartupScript(this.Page, cstype, "", "javascript:xpress();", true);
           

        }

    }
    protected override void RaisePostBackEvent(IPostBackEventHandler source, String eventArgument)
    {
        base.RaisePostBackEvent(source, eventArgument);
        Label1.Text = eventArgument;
    }
}




Vlad
Telerik team
 answered on 08 May 2008
6 answers
246 views
I've got a user control which has a number of controls on it (one of which is a RadGrid). I have a client-side event handler hooked up to it to cause a postback when you double-click on a row. My user control implements IPostBackEventHandler and processes the request. This is currently working.

Now I'd like to add a RadAjaxManager (v2007.3.1425.35) to the page, but can't seem to get it to work correctly (and I also have a few questions about it). I added RadAjaxManager to the page, set the various properties based on what to update when, and then ran my test page. When a postback occurs, it keeps failing back on the client side with,

"Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed."

Since this is a user control, it occurred to me that I'll have problems using RadAjaxManager in the UC if I happen to have more than one of these controls on a form (or my form is already using RadAjaxManager). So I pulled the RadAjaxManager code out and moved it into my ASPX page, and adjusted the AjaxSettings control for the user control as the source and as the updated control. I re-ran the page and I still receive the "Sys.WebForms.PageRequestManagerParserErrorException" error.

Any thoughts on what I'm missing/what is causing the error? Also, it appears like I can't have as fine-grained control of the Ajax updating process in user controls because I can only have RadAjaxManager appear once on a page. Or am I missing something?
Maria Ilieva
Telerik team
 answered on 08 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?