Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
333 views
I have multiple RadGrids on a page, each in a separate usercontrol.  Each have Export functionality, and the export buttons are in RadMenus.  The page has a RadAjaxManager, and each usercontrol has a RadAjaxManagerProxy.  Since RadAjaxManagerProxy's do not have an OnRequestStart method, I handle the cancel of the ajax request on the main page.

Code to handle 1 of the usercontrols:
        function PageAjaxRequestStart(sender, args) {  
            if (args.EventTarget == '<%= ctrlGrid1.menu1.UniqueID %>') {  
                var menu = $find('<%= ctrlGrid1.menu1.ClientID %>');  
                var index = menu._findItemByValue('EXPORT').get_index().toString();  
                if (args.EventArgument.match("^"+index) == index) {  
                    args.set_enableAjax(false);  
                }  
            }  
        } 

This works fine, but I'm wondering if there is a better way to do it...  To make this solution work, I have to expose the menu in each usercontrol publicly, and the page has to know about the exporting feature of the usercontrol. (any page that the usercontrol is added to would have to implement this solution).  It would be nice if there was some way to handle this from within the usercontrols.  Please let me know if there is a better way.

Thanks 
Maria Ilieva
Telerik team
 answered on 12 May 2015
1 answer
96 views

I have a RadAutoCompleteBox along with a RadODataDataSource.

Every time I load the page I am prompted for username/password.

The website is on the intranet and so it the odata source.

The Odata source wizard always shows error so it must be set manually.

Once I present credentials it pulls the data.

 How can I make it stop asking for credentials?

Hristo Valyavicharski
Telerik team
 answered on 12 May 2015
3 answers
139 views

Hi

   I am having a RadMenu. In this RadMenu for a perticular RadMenuItem  i am using ItemTemplet. For this RadMenuItem

 

"OnClientMouseOver" is not firing when i hover on this RadMenuItem. If i remove this ItemTemplet its working fine.

Can you please tell me how can i fire "OnClientMouseOver" event for ItemTemplet RadMenuItem.

Thanks
Srikanth Gunnala

Nencho
Telerik team
 answered on 12 May 2015
2 answers
5.7K+ views


Hello All,
               I want to apply a fixed width to Telerik Rad Grid's Bound Column,It may be with or without filtering.Please suggest me the answer,its urgent....
                If the data in the grid bound's is large the disigning is all misplaced



Thankx
Ritzie




Sunil
Top achievements
Rank 1
 answered on 12 May 2015
1 answer
251 views

.aspx page

<telerik:RadClientDataSource runat="server" ID="RadClientDataSource1">
        <DataSource>
            <WebServiceDataSourceSettings ServiceType="OData">
                <Select Url="Products" DataType="JSON" />
            </WebServiceDataSourceSettings>
        </DataSource>
        <Schema DataName="d.results">
        </Schema>
    </telerik:RadClientDataSource>

    <div >
        <telerik:RadComboBox ID="RadComboBox1" runat="server" ClientDataSourceID="RadClientDataSource1"
            EnableLoadOnDemand="true" DataTextField="ProductName" DataValueField="ProducasdtID"
            ShowMoreResultsBox="true" ItemsPerRequest="10" EnableVirtualScrolling="true" Width="300px">
        </telerik:RadComboBox>
    </div>

.cs Page

 protected void Page_Load(object sender, EventArgs e)
        {
            RadClientDataSource1.DataSource.WebServiceDataSourceSettings.BaseUrl = ResolveUrl("http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/client-side-data-binding/Services/NorthwindWcfService.svc/");
        }

 

how to bind this in page base event instated of webserviceDatasourcesetting but in my another application i am use this code

<telerik:RadComboBox ID="cbCommodity" Height="100px" Width="200px" 
                                    runat="server" ItemsPerRequest="10" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                    EnableAutomaticLoadOnDemand="true" AccessKey="T" MarkFirstMatch="true" EmptyMessage="Select"
                                    HighlightTemplatedItems="true">
                                    <HeaderTemplate>
                                        <ul>
                                            <li class="col1">HS Code</li>
                                            <li class="col2">Description</li>
                                        </ul>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <ul>
                                            <li class="col1">
                                                <%# DataBinder.Eval(Container.DataItem, "HSCode")%></li>
                                            <li class="col2">
                                                <%# DataBinder.Eval(Container.DataItem, "Description")%></li>
                                        </ul>
                                    </ItemTemplate>
                                </telerik:RadComboBox>

 

Can i do databind at client side using page base method please give me any demo

Hristo Valyavicharski
Telerik team
 answered on 12 May 2015
9 answers
344 views
Hi,

I implemented a custom gantt provider just like in the code library for a custom gantt provider. This worked perfectly well. But when I try to set the end date of a child task after the end date of the parent task, the update of the tasks do work but the task aren't shown any more inside the gantt control. I do have the same problem if I try to delete or to add the child task of my root element -> No tasks are shown inside the gantt control anymore.

My second problem is that I want to set a information message inside a label if inserting, updating or deleting of a task is successful or not. But the text of the label doesn't change wether I place the label inside the same radajaxpanel or place it outside of the radajaxpanel which contains the gantt control because changing the tasks does not trigger a full postback. Can someone help me with my problems? Thanks.

Regards,
Michael
Felix
Top achievements
Rank 1
 answered on 12 May 2015
1 answer
61 views

Hello everyone,

 

I have a project with a radgrid and checklist filtering. I need the selected values to be stored aswell as loaded after a refresh of the page.

The page is refreshed automatically via JQuery after 30 seconds.

 

Thanks for your help.

Angel Petrov
Telerik team
 answered on 12 May 2015
1 answer
377 views

My ASP.NET site coded in C# is running fine on my local system but when I uploaded the files on the httpdocs folder through Plesk control panel. I have a shared accounts at http://hostforlife.eu/ and I got the following error:

Server Error in '/' Application.
________________________________________
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS0246: The type or namespace name 'Xyz' could not be found (are you missing a using directive or an assembly reference?)Source Error:Line 1: <%@ Application Language="C#" %>
Line 2: <%@ Import Namespace="mydomain" %>
Line 3: <%@ Import Namespace="System.Web.Optimization" %>
Line 4: <%@ Import Namespace="System.Web.Routing" %>Source File: g:\PleskVhosts\mydomain.com\httpdocs\Xyz\Global.asax Line: 2Show Detailed Compiler Output:C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba70df64\8ad7fdd9\App_global.asax.8gpjfmvi.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba70df64\8ad7fdd9\App_global.asax.8gpjfmvi.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba70df64\8ad7fdd9\App_global.asax.8gpjfmvi.1.cs"Microsoft (R) Visual C# Compiler version 4.0.30319.17929for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.g:\PleskVhosts\mydomain.com\httpdocs\Xyz\Global.asax(2,11): error CS0246: The type or namespace name 'Xyz' could not be found (are you missing a using directive or an assembly reference?)
g:\PleskVhosts\mydomain.com\httpdocs\Xyz\Global.asax(3,22): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
g:\PleskVhosts\mydomain.com\httpdocs\Xyz\Web.config(24,21): error CS0234: The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 11 May 2015
7 answers
557 views

I'm updating an application from  the Classic controls to the newest version. Some of the scripts are working correctly. I need to set the border and background of a RadCombobox to Red to signify its a required field. I used to do the following:

 RadAjaxPanelContacts.ResponseScripts.Add("LoadCombobox(" & rcbContactTxt.ClientID & ");")

 function LoadCombobox(combobox)
{
combobox.InputDomElement.style.border = "solid 1px #a80532";
combobox.InputDomElement.style.color = "#a80532";
combobox.InputDomElement.style.background = "white";
}

 

This now triggers a javascript error type error element undefined. I tried replacing with:

 

function LoadCombobox(combobox)
{
    combobox.element.style.border = "solid 1px #ff0000";
    combobox.element.style.color = "#ff0000";
    combobox.element.style.background = "white";
}

 

 Doesn't work either. How do I do what the old code does with the newer version of the controls?

Magdalena
Telerik team
 answered on 11 May 2015
3 answers
65 views

Which is prefered and recommended way to create custom skins?

I know that i can create skin with Visual Style Builder and compile it with acTelerikStylesAssembly to DLL library, which i can attache to SkinManager etc.

I know that i can copy files from C:\Program Files (x86)\Telerik\UI for ASP.NET AJAX Q1 2015\Skins, rename it with acTelerikStylesRenaming or manual and place them in App_Themes folder etc.

But...

In C:\Program Files (x86)\Telerik\UI for ASP.NET AJAX Q1 2015\Skins subfolders i have more folders and files than in skin *.zip file downloaded from VisualStyleBuilder. Why? If i create two skins by two different ways, my application will be working in the same way and looks great with both skins?

I must create four skins for my application (light and dark for normal users and two high contrast for users with some dysfunction), and this will be hard work for me, that i must know how to make it with minimal effort.

P.S. Sorry for my bad English.

Magdalena
Telerik team
 answered on 11 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?