Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views

I have JavaScript based Gantt Chart that is built on the client when the page loads from an initialization script that was built on the server. For version 1, my client has elected to first update the chart by making Ajax calls to the server and let the return script completely rebuild the chart while leaving the rest of the page alone. Eventually the chart will be modified on the client with only data changes being sent to the server via Ajax.

I have done a lot of JavaScript using hte XMLHTTPRequest object. So I am familiar with this part of the plumbing.

The web page with the Gantt chart will have other content built from calls to the DB layer. We want this and any associated Viewstate left completely alone and we don't want to do any normal PostBack processing during the Ajax call such has hitting the DB layer again for anything other than Gantt related issues.

The Ajax call will be initiated by Gantt chart client method using RadAjaxManager.ajaxRequest(AjaxDataToServer).

  1. During the server side processing, should we use RadAjaxManager.isAjaxRequest to pretty much prevent any other processing not needed for the Ajax call?
  2. In reading the Telerik documentation, it appears that the XML response due to the Ajax call is all that is returned to the client and not any of the normal page content that is normally built during a Page Cycle. Is this correct and with an overview type of reply, how is the normal page content suppressed? Is there a more formal and descriptive document that gives a more detailed explanation other than what I have seen under the help documentation entitled "What is AJAX?"
  3. When using my own JavaScript libraries using the XMLHTTPRequest object, I often post to a different url that is entirely devoted to processing Ajax calls. This can be pretty handy when I have processing that is exactly common to many pages and so there is no need for any isAjaxRequest type of related processing - write once, use many times. Using the approach of Teleriik, It appears that it is not possible to change the url of the Ajax call away from the current page url. Is this true?
  4. It appears that a JavaScript eval(...) is executed by any script returned by server using RadAjaxManagerOrTelerikControl.ResponseScripts.Add(script). Is this true? 

BTW - I am absolutely delighted with your product

Have a nice day,
Carl Taylor
Suwanee, GA USA

Nikolay Rusev
Telerik team
 answered on 08 Dec 2009
1 answer
134 views
Hi Telerik Team,

                          I want to buy u r Scheduler in Ajax control and before that i want to know if it is meeting my requirements or not.
I need a sample application where i can create multiple resources based on conditions dynamically from code behind and create appointments for individual resources, storing those in sql server DB. Populating them when that particuler employee login. I want to customize new appointment window by adding some more fields.
Peter
Telerik team
 answered on 08 Dec 2009
1 answer
115 views
I have created a user control with a FileExporer inside (myUCFileExplorer). The FileExplorer uses a CustomProvider, as in the code library:
Code Library CustomProvider Sample

How can I pass a parameter for filtering the files in the CustomerProvider. I want to have in the same web form various myUCFileExplorer, so I need to pass a parameter for each myUCFileExplorer for having a filter independent from each other.

In the samples here in the forum the class has this function:
private bool IsFiltered(string name) 
        { 
            if (name.ToLower().EndsWith(".sys") || name.ToLower().Contains("Some")) 
            { 
                return false
            } 
 
            // else 
            return true
        } 
 But it's harcoded the filter.

Any comment is welcomed.




Fiko
Telerik team
 answered on 08 Dec 2009
4 answers
229 views
Hi!

I have a radgrid that har AutoPostBackOnFilter="true" and CurrentFilterFunction="StartsWith".

Behavior observed:
1) The first time I enter a value and press enter, the filter expression is "(Country LIKE '1%')"
2) I then removed the value and presses enter again.
3) The filterexpression is now ""
4) I then enter a new value and press enter again.
5) Now the filterexpression is ""(Country LIKE '%2%')"

Why does the CurrentFilterFunction change when I press enter in a empty filter textbox?
Is there a way to stop this behavior?

I'm using Q1 2009 version.

Regards
Per
Jessie
Top achievements
Rank 1
 answered on 08 Dec 2009
1 answer
61 views
I have been using the proscribed method of populating a RadMenu via a web service.  It used to work correctly when we were using the 2007 Q3 version.  We recently upgraded to the 2009 Q3 version of the Telerik controls and now this functionality doesn't work.  It calls the web service, the web service runs successfully, but nothing is ever returned.  Neither of the client functions for post item populating fire.  Not sure what is going on.  Any help is greatly appreciated.  I've included the code below.

 [WebMethod(EnableSession = true)]
    public RadMenuItemData[] GetMenuColumns(RadMenuItemData item, object context)
    {
        SqlConnection sCon = new SqlConnection(ConfigurationManager.ConnectionStrings["Soleran"].ConnectionString);
        IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;
        List<RadMenuItemData> result = new List<RadMenuItemData>();
        
        SqlDataAdapter adap = new SqlDataAdapter(QueryParse(contextDictionary["query"].ToString()),sCon);
        DataTable dt = new DataTable();
        adap.Fill(dt);
        foreach(DataColumn dc in dt.Columns)
        {
            RadMenuItemData itemData = new RadMenuItemData();
            itemData.Text = dc.ColumnName.ToString();
            itemData.Value = dc.ColumnName.ToString() + '·' + dc.DataType.ToString() + '·' + dc.Ordinal.ToString();
            result.Add(itemData);
        }

        return result.ToArray();
    }

<telerik:RadContextMenu id="rcmSummary" runat="server" EnableAutoScroll="True" OnItemClick="AddSumClick" OnClientItemPopulationFailed="itemPopulatedFailed" OnClientItemPopulated="itemPopulated" OnClientItemPopulating="itemPopulating">
                                                            <WebServiceSettings Path="Summary.asmx" Method="GetMenuColumns" />
                                                            <LoadingStatusTemplate>
                                                                Loading...
                                                            </LoadingStatusTemplate>
                                                            <CollapseAnimation Duration="200" Type="OutQuint" />
                                                            <Items>
                                                                <telerik:RadMenuItem runat="server" Text="Available Columns" ExpandMode="WebService">
                                                                </telerik:RadMenuItem>
                                                            </Items>
                                                        </telerik:RadContextMenu>
Veselin Vasilev
Telerik team
 answered on 08 Dec 2009
1 answer
107 views
Hi,
     In my project i need to remove the 'Options' button  of Rad Scheduler or hide it  ,Can anyone give me the solution for it.


Thanks,

RKiran
Princy
Top achievements
Rank 2
 answered on 08 Dec 2009
4 answers
173 views
Hi,

This might be a really stupid question but i need to use the value from one calculated column in another calculated column. Is this possible? It's a typical scenario of Product, VAT, Sub Total, Shipping and Total. The Sub-total is calculated, but for Total i need to add Shipping to Sub-Total to make the Total. When I try this it says it cannot find SubTotal (the unique name of the column) in datafields.

Thanks for any help in advance.

Michael
Yavor
Telerik team
 answered on 08 Dec 2009
2 answers
162 views
Hi,

My radtree view has the elements in Parent,Child and Grandchild relationship as shown below:
Parent1
--->Child1
--->Child2
      ---->Grandchild1
      ---->Grandchild2
--->Child3
      ---->Grandchild3
      ---->Grandchild4.

I need to increase the height between Parent1 and Chidl1 and also  between Child2 and Grandchil1.
How can this be achieved as the height between the nodes is fixed.
Any help here is highly appreciated.
Thanks in Advance
                                             




Mohammad Abid
Top achievements
Rank 1
 answered on 08 Dec 2009
1 answer
333 views

How can i call a function inside the navigate url property ?

Below is the code:
Im trying to call a function with function.getpageid inside the navigateurl.

<script language="javascript" type="text/javascript">  
    function onClicking(sender, eventArgs) {  
        var item = eventArgs.get_item();  
        var navigateUrl = item.get_navigateUrl();  
        eventArgs.set_cancel(true);  
        if (navigateUrl && navigateUrl != "#") {  
            var oWnd = radopen(navigateUrl, "WindowName");  
        }  
        sender.hide();  
    }    
</script>  
   
        <telerik:RadContextMenu ID="RadContextMenu2" runat="server" OnClientItemClicking="onClicking">        
        <Targets>       
            <telerik:ContextMenuControlTarget ControlID="Mediaarea" />  
        </Targets>       
        <Items>       
            <telerik:RadMenuItem runat="server" Text="Media wijzigen" NavigateUrl='~/test.aspx?PageID=<%# functions.getpageID %>'></telerik:RadMenuItem>     
        </Items>       
        </telerik:RadContextMenu>           
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">        
        </telerik:RadWindowManager>    
 
<div id="Mediaarea">  
<img src="Upload/Design/GUI/images/powerplusxq/media.jpg" />  
</div>  
 

But i get result as PageID=%3C%

anyone has a suggestion ?
Georgi Tunev
Telerik team
 answered on 08 Dec 2009
1 answer
223 views
I am having a problem with the DatePicker. It is not opening properly in IE7 or IE8 when accessed via an iframe. It works fine when it's not accessed via an iframe. The Javascript error I am getting is below.

This problem does not happen in Chrome or Firefox. 
When using Telerik version 2008.2.286.20, it only happened on IE7 and did not happen on IE8. 
After upgrading to version 2009.3.1103, it not happens on IE7 and IE8.

Has anyone ever seen this before?

Error:

Message: Access is denied.

Line: 6

Char: 73478

Code: 0

URI: /Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_cphSurvey_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1103.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afa29fa87-3646-4a1f-8f90-45263b4e63e9%3a16e4e7cd%3aed16cbdc%3af7645509%3a8674cba1%3ab7778d6c%3ac08e9f8a%3a59462f1%3aa51ee93e

Dimo
Telerik team
 answered on 08 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?