Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
I have two Treeviews on a page. On one treeview tvwSource I create parent and child nodes from the database. The child nodes are populated when I click on the "+" sign on the parent node which is handled in the tvwsource_click event. Now I want to drag the node from source to the destination treeview. I am able to drag and drop the parent nodes from source to the destination, but not the child nodes. I have handled the drag and drop operations in  "RadTvwSource_NodeDrop" event.

Is there any other event where I should handle the drag and drop operations.

Thanks
Yana
Telerik team
 answered on 09 Jul 2008
1 answer
91 views

Hello,

I try to migrate one of my custom webpart which use previously MOSSRadEditor in his version 4.5.3 with the new version 5.1.0.

It's difficult, because I used a lot of property, for example to specify path of images and other properties. These properties don't exist with the new version.

Do you have a guide or a documentation for this type of migration ?

Thanks in advance for your answer.

Best Regards.
Nicolas COLLET.

George
Telerik team
 answered on 09 Jul 2008
2 answers
233 views
I have a RadGrid with paging, sorting, filtering, etc...

When I am on a specific page greater than one, and then I change the filter - either by removing a filter value or adding a value to filter - the grid refreshes, but never goes back to Page 1.

How do I make the Pager reset to the first page whenever the filter changes?

Thanks!

Michael
Michael
Top achievements
Rank 1
 answered on 09 Jul 2008
2 answers
153 views
Hey, I've made application and ajaxManager.ajaxRequest(argument) fires other places except OnClientAppointmentMoveEnd.

I've set alert that it is hitting the function, but it will not hit ajaxManager.ajaxRequest no matter what I put in the argument.  My other functions hits ajaxRequest just fine, except for this one.  can someone help me out?


OnClientAppointmentMoveEnd
="ScheduleMoved"

                    function ScheduleMoved(sender, eventArgs)  
                    {     
 
                        var start = formatDate(eventArgs.get_newStartTime());  
                        var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");  
                        var index = eventArgs.get_appointment().get_id();                          
                        ajaxManager.ajaxRequest(index.toString() + '+'  + start.toString());  
       
                    
                          
                    }                      
                     
Peter
Telerik team
 answered on 09 Jul 2008
1 answer
129 views

What is the difference between :

RadControls for ASP.NET

and

RadControls for ASP.NET AJAX ?

Both work with Ajax.Net ?

Thank you in adance,

Vlad
Telerik team
 answered on 09 Jul 2008
1 answer
95 views
Hi all,
can one please tel me how to add gridItems to a radgrid at runtime? i tried to do this but i can as the GridItem is an abstract class hence i can instatiate it, how do i go about doing this since i can do this easily with a gridview object in asp.net?
K
Vlad
Telerik team
 answered on 09 Jul 2008
4 answers
249 views
Dear All,

I have downloaded the trial version of the new rad controls and have copied acorss the dll into my bin folder.

I have been updating the controls which i have used in the previous version.

I have managed to successful upgrade the radCalendar.

But have faced an issue with the RadEditor control.

I have tried loading a redEditor control onto the screen without using a master page and it works fine.  But when i try to laod an RadEditor control using a master page as my template, i enocunter a problem on the Firefox browser, is there a knowen error?

Instead of seeing the control on the screen a list of bullet points is displayed scrolling down the screen.

Another issue i have is that i have iconimages which i want ot load using the Tools.xml file.  But in the example on your site it states to put it on the actaul page, but if i include the Tools.xml file it doesnt work (tried http://www.telerik.com/support/kb/article/b454K-kdc-b454T-btc-b454c-btc.aspx )

any help is mch appreicated.

Many thanks in advance

Zal
Zal
Top achievements
Rank 1
 answered on 09 Jul 2008
11 answers
241 views

ASPX:

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

<%@ 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>Sample Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </div>
    <telerik:RadAjaxPanel ID="myPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">   
    <telerik:RadDatePicker ID="RadDatePicker1" Runat="server" AutoPostBack="True"
        onselecteddatechanged="RadDatePicker1_SelectedDateChanged">
<DateInput InvalidStyleDuration="100" autopostback="True"></DateInput>
    </telerik:RadDatePicker>
    </telerik:RadAjaxPanel>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
        height="75px" Transparency="15" width="75px">
        <img alt="Loading..."
            src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' originalAttribute="src" originalPath="<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>"
            style="border:0px;" />
    </telerik:RadAjaxLoadingPanel>
    </form>
</body>
</html>

C#:
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 Web_PersonnelInfoQuery_ClearCaching : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void RadDatePicker1_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
    {
 // do something here
 string s = string.Format("this is {0} test", "a");
 s += "!";
    }
}

Note that we make Web_PersonnelInfoQuery_ClearCaching inherited from BasePage, and the code of BasePage is quite simple.

BasePage:

using System;
using System.Data;
using System.Configuration;
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;
using System.IO;
using System.Text.RegularExpressions;
using System.Text;

public class BasePage : Page
{
    protected override void Render(HtmlTextWriter writer)
    {
        StringWriter stringWriter = new StringWriter();
        HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
        base.Render(htmlWriter);
        string html = stringWriter.ToString();

        MatchCollection collection = Regex.Matches(html, "<(a|link|img|script|input|form).[^>]*(href|src|action)=(\\\"|'|)(.[^\\\"']*)(\\\"|'|)[^>]*>", RegexOptions.IgnoreCase);

        foreach (Match match in collection)
        {
            if (match.Groups[match.Groups.Count - 2].Value.IndexOf("~") != -1)
            {
                string url = this.Page.ResolveUrl(match.Groups[match.Groups.Count - 2].Value);
                html = html.Replace(match.Groups[match.Groups.Count - 2].Value, url);
            }
        }
        #endregion
        writer.Write(html);
    }
}

what surprised me is that base.Render(htmlWriter) was executed twice, as long as we put RadAjaxPanel on a page, but other controls such as RadGrid, DatePicker, RadToolbar, MS UpdatePanel... work perfectly.

can anybody tell me why?

 

Weibin
Top achievements
Rank 1
 answered on 09 Jul 2008
0 answers
120 views
Hi,

I have an stored proc displaying the result as below:
Group        SubGroup    Details
--------      ----------     -------
Matches     Dupl             Dupli
Matches     Org              Rec
Matches     Org              Em
Reports      Pro              Merchant
Reports      Pro              Over
Reports      Pro              Life
Reports      Pro              Emp
Reports      Proced         Proh
Reports      Proced         Prohib

I have captured the result into a dataset and tried to bind this dataset to my panel like below:

reportCataloguePanel.DataSource = dataset1;

reportCataloguePanel.DataFieldID =

"Group";

reportCataloguePanel.DataFieldParentID =

"SubGroup";

reportCataloguePanel.DataBind();

A runtime error was thrown showing "These columns don't currently have unique values."


How can i bind this dataset result to my panel?

thanks,
Nataraj

Nataraj
Top achievements
Rank 1
 asked on 09 Jul 2008
1 answer
256 views

Is there some technical explanation available for the apparent restriction upon the use of "code blocks" within pages containing the RadUpload control?

I have a VB.NET application in development using the RadUpload control. The application uses a Master Page design, with the usual Content Placeholder control to render in variable "child-page" content. One of the child-pages contains a RadUpload control.

I needed to add some client-side javascript for other child-page processes completely unrelated to the RadUpload control. That client-side javascript required the use of a .NET "code block" (<%= … %>) to render-in a value from the page's code-behind script.

The client-side javascript block is a normal script block, placed in the Master Page document HEAD. And everything about it works fine across all child-pages, until I render-in the child-page containing the RadUpload control.

At that point I get an error:
"The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)"

A little poking around your site revealed, in a completely unrelated area, the restriction:
"The <%= .. %> codeblock must be placed inside the BODY element of the page."
http://www.telerik.com/help/aspnet-ajax/upload_clientsidebasics.html

The example noted was capturing the RadUpload control's ClientID, so I figured it didn't apply to me, since I wasn't messing with the RadUpload control at all.

And yet, just as noted, the page with the RadUpload control will not render until I place my script block (with that "code block" inside) within the Master page's BODY tag.

Now, I'm no stickler for "Script in the Head" and don't mind moving the script block. But I'd like to understand what's going on.

There are places in the final design where I will have at least one other 3rd Party control in my page, with its own clot of client-side script, collocated with the RadUpload control. And, like with the RadUpload control, I don't have a lot of influence over how that control and its scripting nestles into the rendered page.

So any explanation for the "code blocks in the body, please" requirement would be appreciated.

Thanks

Erjan Gavalji
Telerik team
 answered on 09 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?