Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
478 views
In the example below, when _brlCustomer.ShippingMethod = "", the ddlShippingMethod.SelectedValue appears to be getting set to the cached value from the previously viewed customer record. So if the previous customer had ShippingMethod = "GROUND" then adding a new customer subsequently is setting the SelectedValue = "GROUND" instead of SelectedValue = "".
How do I prevent this?

ASPX markup...

  <telerik:RadDropDownList ID="ddlShippingMethod" runat="server" Width="300" DropDownHeight="200" />

VB code behind...

        ddlShippingMethod.DataSource = ShippingMethodMaster.GetShippingMethodMasters(_ServerName, _DatabaseName)
        ddlShippingMethod.DataTextField = "ServiceDescription"
        ddlShippingMethod.DataValueField = "ShippingMethod"
        ddlShippingMethod.SelectedValue = _brlCustomer.ShippingMethod
        ddlShippingMethod.DataBind()
Nencho
Telerik team
 answered on 03 Nov 2015
5 answers
167 views

Hello

I am validating a RadDatePicker control using a RequiredFieldValidator and a ValidatorCalloutExtender.

The control is being validated successfully but the ValidatorCalloutExtender is not showing/popping up when the input date is invalid/empty. It also doesn't highlight the RadDateTime input box yellow when its empty/invalid.

Any ideas why this would be failing to display when other widgets (regular TextBoxes, etc.) have their ValidatorCalloutExtender's working?

<telerik:RadDatePicker ID="Expiry" runat="server" ClientIDMode="Static"> ... </telerik:RadDatePicker>
<asp:RequiredFieldValidator ID="rfvExpiry" runat="server" ErrorMessage="Expiry is a required field" SetFocusOnError="true"
    ControlToValidate="Expiry" Text="*"  ClientIDMode="Static" />
<ajaxtoolkit:ValidatorCalloutExtender ID="vcerfvExpiry" runat="Server" TargetControlID="rfvExpiry" Width="350px" HighlightCssClass="highlight"
    WarningIconImageUrl="warning.gif" CloseImageUrl="close.gif" />

Maria Ilieva
Telerik team
 answered on 03 Nov 2015
8 answers
165 views

 

Hello all, 

 I'm using Telerik.Web.UI and Telerik.Web.Design with version no - 2015.2.623.40 in my application. I am using it at two different pages , one in a master page and one in a usercontrol. I had added the required configuration in the web.config file.

When I am clicking on Find and Replace icon on one of the page using the master page, it is showing an error as Web.Config registration Missing!  The Telerik dialogs require a HTTP handler registration in web.Config. But I'm not able to see this error when I'm using it in a page which is accessing the usercontrol.

 I am not able to find the possible issue with this behaviour. Could you please suggest.

 

Thanks,

 

Ianko
Telerik team
 answered on 03 Nov 2015
1 answer
53 views

Unable to download .pdf   convert RadHtmlchart  from the Weblocations.

 Please Help me

 

Thanks

Niranjan

Marin Bratanov
Telerik team
 answered on 03 Nov 2015
5 answers
454 views
I have create method in master page and bind in radmenu control:
Here is the Code  that I get the table from session and bind
 
public void ShowMenuItems()
    {
        try
        {
            if (common.myStr(Session["MenuData"]) != "")
            {
                DataTable ds = (DataTable)Session["MenuData"];
                if (ds != null)
                {
                    if (ds.Rows.Count > 0)
                    {
                        for (int ii = 0; ii < ds.Rows.Count; ii++)
                        {
                            if (common.myInt(ds.Rows[ii]["ParentId"]) == 0)
                            {
                                ds.Rows[ii]["ParentId"] = DBNull.Value;
                                ds.AcceptChanges();
                            }
                        }
                        ds.DefaultView.Sort = "";
                        ds.DefaultView.RowFilter = "ModuleId =" + common.myInt(Session["ModuleId"]);
                        ds.DefaultView.Sort = "Sequence Asc";

                        if (ds.DefaultView.Count > 0)
                        {
                            RadMenu1.DataSource = ds.DefaultView;
                            //Establish hierarchy:
                            RadMenu1.DataFieldID = "PageId";
                            RadMenu1.DataFieldParentID = "ParentId";

                            //Set Text, Value, and NavigateUrl:  
                            RadMenu1.DataTextField = "PageName";
                            RadMenu1.DataValueField = "PageId";
                            RadMenu1.DataNavigateUrlField = "PageUrl";
                            RadMenu1.DataBind();
                        }
                    }
                }
            }
        }
        catch (Exception Ex)
        {
            objException.HandleExceptionWithMethod(Ex, "ShowMenuItems");
        }
    }
And following Error Occur in ourt database exception log table

(ShowMenuItems)This constraint cannot be enabled as not all values have corresponding parent values.
Please why this error come

Please help me I am helpless

Thanks


Nencho
Telerik team
 answered on 03 Nov 2015
1 answer
53 views

How to convert RadHtmlChart and download to the client machine through google chrome.

 

Thanks 

Niranjan

 

 

Marin Bratanov
Telerik team
 answered on 03 Nov 2015
1 answer
82 views

How to Export to the Pdf ,word & csv

 

me tried and able to convert to pdf format 

and struct in downloading the file

 

Actually i am converting into .svg and then .pdf by using inkscape.

 

Please Help me in Asp.net Application

 

Thanks & Regards

Niranjan

Marin Bratanov
Telerik team
 answered on 03 Nov 2015
1 answer
58 views

Hi,

  Please find attached 2 screenshots, which illustrate my issue. I am using Radhtmlchart with Area Series. If I have less than 4 data points on X-axis (as you seen in screenshot 1), it does not fill the area with color. It only shows points of data on that date. But if the data points on X-axis are 4 or more (As you seen in screenshot 2), then it fills the entire area with color. I need the area filled even if X-axis has only 1 point. I am using Stock Layout. Can you please help me with this? Is there some limitation?

Danail Vasilev
Telerik team
 answered on 03 Nov 2015
6 answers
361 views
When attached to my w3wp.exe process for my DNN 7 website, I receive a flood of InsecureExternalStyleSheetException's

Exception Data:
Telerik.Web.UI.InsecureExternalStyleSheetException occurred
Message=The style sheet '/js/dnn.js' is not located in any of the 'Style Sheet' folders designated in the web.config.
Source=Telerik.Web.UI
StackTrace:
at Telerik.Web.UI.ExternalScriptHelper.ResolveSecurePath(String scriptRelativePath)

Looking this up, it's saying that I need any folder that has a css file to be in a list of folders described by the appSettings key of Telerik.Web.UI.StyleSheetFolders.

Here are the two related settings:

<add key="Telerik.Web.UI.ScriptFolders" value="~/Scripts/;" /><!--~/js/;-->
    <add key="Telerik.Web.UI.StyleSheetFolders" value="~/admin/ControlPanel/;~/DesktopModules/Admin/Authentication/;~/DesktopModules/Brick/User Dashboard/;~/DesktopModules/DNNCentric-AJAXFAQ/;~/DesktopModules/DNNCentric-AJAXFAQ/themes/skindefault/;~/DesktopModules/EasyDNNRotator/Controls/ChameleonRotator/static/common/;~/DesktopModules/EasyDNNRotator/Controls/ChameleonRotator/static/themes/callisto/;~/DesktopModules/EasyDNNRotator/flowplayer/skin/;~/DesktopModules/TabsPro/templates/blitzer-simple/;~/Portals/_default/;~/Portals/_default/Containers/Brick/;~/Portals/_default/Containers/Gravity/;~/Portals/_default/Containers/TabsPro/;~/Portals/_default/Skins/_default/WebControlSkin/Default/;~/Portals/_default/Skins/Brick/;~/Portals/_default/Skins/Brick/bootstrap/css/;~/Portals/_default/Skins/Brick/css/;~/Portals/_default/Skins/Brick/js/colorpicker/css/;~/Portals/0/;~/StaticContent/kendo/styles/;~/js/;" />


I made sure that any folder on any page that loads a css file is included in that list (the second one).

When I try to add /js to ScriptFolders, it causes 404's on 2 of the 3 WebResource.axd calls for any page that is generated by DNN. One of those seems to be rather important as it causes Sys to be undefined and kills most of the other javascript on the page.

Bozhidar
Telerik team
 answered on 03 Nov 2015
1 answer
180 views

Hi All,

 

How can I use scriptmanager on Masterpage and RadScriptManager on Content page in asp.net.

Kindly help me.

 Thanks.

Bozhidar
Telerik team
 answered on 03 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?