Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
81 views
IE8, return generates 2 lines.  This wasn't a problem with 2009.3.1102.35.     I needed the newer version of the DLL to fix the problem with the Combobox issue.

What version of DLL is this running?
http://demos.telerik.com/aspnet-ajax/editor/examples/editorastextbox/defaultcs.aspx

Shift-Enter generates 1 line.   If I use the margin:0px below, on the screen it's fine, but it still retained <p> in the code, which in my HTML email it displays with additional lines.   NewLineBr=true/false doesn't make a difference.
Removing OnClientLoadRadEditor() doesn't make a difference.

P  
{  
    margin:0px;  
}  

                <telerik:RadEditor ID="txtNewComment" OnClientLoad="OnClientLoadRadEditor" runat="server" AutoResizeHeight="True" Skin="Office2007" 
                      BorderStyle="None" BorderWidth="0px" ToolsWidth="345px" ToolbarMode="ShowOnFocus" 
                        EditModes="Design" ToolsFile="BasicTools.xml" Width="720px" Height="50px" > 
                    <Content> 
                    </Content> 
                </telerik:RadEditor> 
             function OnClientLoadRadEditor(editor, args)   
                {   
                    var style = editor.get_contentArea().style;   
                    style.fontFamily= 'Arial';   
                    style.fontSize= 12 + 'px';   
                  
                    var tool = editor.getToolByName("FontName");   
                  
                    if (tool)   
                    {   
                            tool.set_value("Arial");  
                    }  
                      
                    var tool2 = editor.getToolByName("RealFontSize");   
                  
                    if (tool2)   
                    {   
                            tool2.set_value("10px"); 
                    } 
                    editor.removeShortCut("InsertTab"); 
                }     

Rumen
Telerik team
 answered on 08 Dec 2009
1 answer
84 views
I'm new with RadScheduler. Can anyone tell me how to do nested quarter views? I need to first group by year, and then by quarter. Thank you in advance for your help!
Peter
Telerik team
 answered on 08 Dec 2009
3 answers
76 views
Hi

I have 2 radmenus on a page and I use the ajaxmanagere to ajaxify the click events as per normal

the mark up looks something like this , obviously with the specific panels to open referenced inside the <UpdatedControls> tag

<%--menu 1 --%> 
                 
<telerik:AjaxSetting AjaxControlID="i0"> 
<telerik:AjaxSetting AjaxControlID="i1"> 
<telerik:AjaxSetting AjaxControlID="i2"> 
 
<%--menu 2--%> 
    
<telerik:AjaxSetting AjaxControlID="i0"> 
<telerik:AjaxSetting AjaxControlID="i1"> 
<telerik:AjaxSetting AjaxControlID="i2"> 
<telerik:AjaxSetting AjaxControlID="i3"> 
<telerik:AjaxSetting AjaxControlID="i4"> 
 

The loading panel does not seem to want to fire for Menu 2 and I have lost some functionality in Menu 1 too, Is this because the AjaxControlID's have the same name ? and if so how do I distinguish between them

Yana
Telerik team
 answered on 08 Dec 2009
1 answer
137 views
Can anyone tell me how to do nested resources in RadScheduler? I need to first group the resoource by building name, and then by meeting room. Thank you in advance!
Peter
Telerik team
 answered on 08 Dec 2009
1 answer
123 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
142 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
119 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
236 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
67 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
112 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
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?