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

 I have been getting the below error, have tried every solution online i could find. even found this below solution in this forum. Even in this didn't help. I'm in bad need to get a solution for this, please

Problem:

Using the Telerik controls with RadScriptManager on your login page throws one of the following errors:

ASP.NET Ajax client-side framework failed to load

'Sys' is undefined

"Telerik.Web.UI" is undefined

 

Cause:

As the website denies access to all pages to unauthorized users, access to the Telerik.Web.UI.WebResource.axd handler is unauthorized. This causes the handler to serve the content of the login page instead of the combined scripts, hence the error.

Suggested Solution:

Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like:

XML
<configuration>
...
<location path="Telerik.Web.UI.WebResource.axd">
   <system.web>
     <authorization>
       <allow users="*"/>
     </authorization>
   </system.web>
 </location>
...
</configuration> 
Cause:

If a website was migrated from an older version of ASP.NET to the latest there might be a preCondition attribute added to the Telerik.Web.UI.WebResource.axd handler declaration stating that the runtime version is 2.0

Cause:

As the website denies access to all pages to unauthorized users, access to the Telerik.Web.UI.WebResource.axd handler is unauthorized. This causes the handler to serve the content of the login page instead of the combined scripts, hence the error.

Suggested Solution:

Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like:

  • XML
<configuration>
...
<location path="Telerik.Web.UI.WebResource.axd">
   <system.web>
     <authorization>
       <allow users="*"/>
     </authorization>
   </system.web>
 </location>
...
</configuration> 

Cause:

If a website was migrated from an older version of ASP.NET to the latest there might be a preCondition attribute added to the Telerik.Web.UI.WebResource.axd handler declaration stating that the runtime version is 2.0

Cause:

As the website denies access to all pages to unauthorized users, access to the Telerik.Web.UI.WebResource.axd handler is unauthorized. This causes the handler to serve the content of the login page instead of the combined scripts, hence the error.

Suggested Solution:

Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like:

  • XML
<configuration>
...
<location path="Telerik.Web.UI.WebResource.axd">
   <system.web>
     <authorization>
       <allow users="*"/>
     </authorization>
   </system.web>
 </location>
...
</configuration> 

Cause:

If a website was migrated from an older version of ASP.NET to the latest there might be a preCondition attribute added to the Telerik.Web.UI.WebResource.axd handler declaration stating that the runtime version is 2.0

Marin Bratanov
Telerik team
 answered on 01 Dec 2015
1 answer
130 views

I'm using RadDropdownlist in Radgrid,  "SelectedValue " or "Databinding" cause DataRowView . I don't know why?

Here is my code:

datasource part

<asp:SqlDataSource ID="landmarketclasssqldatasource" runat="server" ConnectionString="<%$ ConnectionStrings:myAsystemstring %>"
     SelectCommand="SELECT  [PK_LandMarketClass],[LandMarketClass]  FROM [Ref_LandMarketClass]">
 </asp:SqlDataSource>

 

<asp:SqlDataSource ID="mysqldatasource" runat="server" ConnectionString="<%$ ConnectionStrings:myAsystemstring %>"
        SelectCommand="select a.PK_land, a.pk_bookID, a.landblockname, a.capacityrate, a.landblockarea, b.landmarketclass, a.pk_period   from LD_Landblock a left join Ref_LandMarketClass b on a.PK_landmarketclass=b.PK_landmarketclass where pk_bookID=@pk_bookID"
        InsertCommand ="insert into ld_landblock (PK_bookID ,landblockname,capacityrate,landblockarea, pk_landmarketclass, pk_period,pk_userIDlasteditor) values(@pk_bookid, @landblockname,@capacityrate,@landblockarea,@pk_landmarketclass,@pk_period,@pk_userIDlasteditor)"
        UpdateCommand ="update ld_landblock set landblockname=@landblockname, capacityrate=@capacityrate, pk_useridlasteditor=@pk_useridlasteditor,landblockarea=@landblockarea, pk_landmarketclass=@pk_landmarketclass where pk_land=@pk_land"
        DeleteCommand="delete  from ld_landblock where pk_land=@pk_land"
       >        
        <SelectParameters>
            <asp:ControlParameter ControlID="HFPK_BookID" Name="pk_bookID" PropertyName="Value" />
        </SelectParameters>
       <InsertParameters>
           <asp:Parameter Name="LandBlockName" Type="String"></asp:Parameter>
           <asp:Parameter Name="CapacityRate" Type="Decimal" ></asp:Parameter>
           <asp:ControlParameter ControlID="HFPK_BookID" Type="Int32" Name="pk_bookID" PropertyName="Value" />
           <asp:ControlParameter ControlID="HFUserID" Type="Int32" Name="pk_userIDlasteditor" PropertyName="Value" />
           <asp:ControlParameter ControlID="HFPK_Period" Type="Int32" Name="pk_period" PropertyName="Value" />
           <asp:Parameter Name="landblockarea" Type="Decimal" />
           <asp:Parameter Name="pk_landmarketclass" Type="Int32" />
       </InsertParameters>
       <UpdateParameters>
           <asp:Parameter Name="PK_land" Type="Object"   />
           <asp:Parameter Name="LandBlockName" Type="String"></asp:Parameter>
           <asp:Parameter Name="CapacityRate" Type="Decimal" ></asp:Parameter>
           <asp:ControlParameter ControlID="HFUserID" Type="Int32" Name="pk_userIDlasteditor" PropertyName="Value" />
           <asp:Parameter Name="landblockarea" Type="Decimal" />
           <asp:Parameter Name="pk_landmarketclass"  Type="Int32" />
       </UpdateParameters>
        <DeleteParameters>
            <asp:Parameter Name="PK_land"  Type="Object"  ></asp:Parameter>
        </DeleteParameters
   </asp:SqlDataSource>

 

and raddropdownlist in radgrid

method 1

<telerik:GridDropDownColumn HeaderText="class" UniqueName="pk_landmarketclass" DataSourceID="landmarketclasssqldatasource"
                       ListTextField="landmarketclass" ListValueField="pk_landmarketclass"   DataField="pk_landmarketclass"  >
                           
                 </telerik:GridDropDownColumn>

method 2

<telerik:RadDropDownList  ID="RDDLlandmarketclass" runat="server"  DataSourceID="landmarketclasssqldatasource" DataTextField="landmarketclass"
                                  DataValueField="pk_landmarketclass"    SelectedValue='<%# Bind("PK_landmarketclass") %>'  >
                              </telerik:RadDropDownList>

 neither of methods works. all of them cause datarowview error.

my reference: http://demos.telerik.com/aspnet-ajax/dropdownlist/examples/applicationscenarios/dropdownlistingird/defaultcs.aspx

http://www.telerik.com/forums/bind-dropdown-selected-value-to-a-data-source

Thanks in advance

Eyup
Telerik team
 answered on 01 Dec 2015
3 answers
254 views

Right now I am using open street map to show a map in the control just like your example online. And this works fine. I am now looking into adding routing on the map. I read the website that it only supports Bing maps for this.Is this for WPF only and not ASP.NET? I also saw a page on your site using layers and had a line drawn over a road to show a walking tour. The routes I want to show from one location to the other are already determined and I can supply the locations for the route. So to me the best scenario is to supply this if I can. Do you have a demo showing how I can do this to show the route on a map from point A to point B?

Thanks so much!

Warren

 

Ianko
Telerik team
 answered on 01 Dec 2015
13 answers
411 views
Hi,
I have a problem and would appreciate your help.

I have a website with some Teleriks controls: radgrid and htmlchart. No one will see this website (none of users will enter/display this website). The only purpose of this website is to generate a html, which I pass to third-party PDF Generator. I pass it as a byte[]. My pdf generator copes easily with css and javascript (animations in jQuery etc.).
The problem is that the htmlcharts do not display in final pdf, other telerik controls display properly. When I view this website via browser, everything is displaying ok. Only witho htmlcharts in my final pdf is problem. I suppose the problem is "client-side-nature of this charts". I have read the http://www.telerik.com/community/code-library/aspnet-ajax/html-chart/exporting-radhtmlchart-to-png-and-pdf.aspx and this solution works, but I have different scenario. In my situation no one (none user) will enter the website via a browser. So passing svg with getSVGString() to server is impossible.
So my question is, how to get a rendered html view of this htmlchart.

Thanks in advance for help.
AK

Dylan Nicholson
Top achievements
Rank 1
 answered on 01 Dec 2015
1 answer
83 views

Hi,

What I see in the HTML chart control is almost what I need.  The closest that I can get to a "generic chart" (with everything specified in the data) is binding to the XMLDataSource, but even with that, it appears that the Series Name needs to be hard-coded (not included in the XML data) or we need to write code to replace a hard-coded value with an "out of band" supplied value for each of the series names.

I've been looking through all of the demos and it appears that in every one of them, labels or titles that appear on the graph show up in the code somewhere.  Then when I look at the documentation, there is no place where those labels or titles can be extracted from the data source.  This would indicate to me that every graph needs to be hard-coded.

 Am I missing something?  I hope so.  We have potentially thousands of graphing possibilities that we need to implement and would like the user to be able to design their own and this control looks pretty good, except for the "hard-coding" thing.  If we could retrieve the series names from the XML input, the task would take days; if we need to individually code each chart, it will take months to staff-years.

Thanks,
Rob

Marin Bratanov
Telerik team
 answered on 30 Nov 2015
3 answers
142 views
Dear all,

I encountered problems with the SPRAdGrid web part using managed metadata columns from SharePoint 2010.

What I did:
I created a list with a column of type "managed metadata".
The column refers to a term set and is included in my default list view.

Then, I added the SPRadGrid web part to my web part page.

The Problem:
When accessing the web part page, I get an error message "An unexpected error has occurred."

The SharePoint log lists the following information:
System.ArgumentException: Column 'Term$Resources:core,Language;' does not exist. It may have been deleted by another user.  /Lists/TaxonomyHiddenList    at Microsoft.SharePoint.SPFieldCollection.GetFieldByInternalName(String strName, Boolean bThrowException)     at Telerik.Ajax.SharePoint.FieldDataLookup..ctor(SPFieldLookup relatedField)     at Telerik.Ajax.SharePoint.SPFieldToFieldDataMapper.MakeFieldDataFromSPField(SPField field)     at Telerik.Ajax.SharePoint.SPFieldToFieldDataMapper.MapSPFieldToSPFieldData(SPField field)     at Telerik.Ajax.SharePoint.SPTableViewMapperBase.InitializeFields(SPViewDataProvider viewParser, SPView currentView, SPList currentList, List`1 fields)     at Telerik.Ajax.SharePoint.SPTableViewMapper.BuildGridColumns(SPView view, SPList list, GridTableView gridTab... 

As soon as I remove the managed metadata column from the view, everything works fine.

Some system information:
Telerik RadControls for SharePoint 11.1.413.0
SPRadGrid Web Part
Windows Server 2008 R2
SQL Server 2008 R2
SharePoint Server 2010
IE 9

My questions:
- does the SPRadGrid web part support the use of managed metadata columns at all?
- if yes, does anybody know the problem or maybe the solution?

TIA
Markus
Maria Ilieva
Telerik team
 answered on 30 Nov 2015
2 answers
97 views

Good morning,

Is there anyway to change the tooltip of the filter icon of a radgrid column, so that it displays the current filter (i.e. 'contains', 'starts with', ...)?

thanks a lot,

Gaetan

Gaetan
Top achievements
Rank 1
 answered on 30 Nov 2015
0 answers
42 views

hexadecimal value 0x2D error when you export to PDF. Content is pasted in RadEditor.

Any warning message when you pasted content that is not compliant?

RJ
Top achievements
Rank 1
 asked on 30 Nov 2015
2 answers
128 views

Hi,

 I use Autocompletebox in my asp.net website for load postal code from by sql servr's database. But it take a lot of time (15 second.. to long). And It seem that, if I understand, autocomplete box load ALL my postal code from database and after that, use the string research...

My question is here, did it is possible to call a function sql server with, on parameter, the text witch is written in the Autocompletebox

I've tried a code like : 

        protected void RadAutoCompleteBox1_TextChanged(object sender, AutoCompleteTextEventArgs e)
        {
            string recherche = RadAutoCompleteBox1.Text;
            SqlDataSource2.SelectCommand = "select CodePostal,NomCommune from GetVilleByCpTelerik2(" + recherche + ") order by CodePostal OFFSET 10 ROWS FETCH NEXT 10 ROWS ONLY";
        }

 

But it doesn't work. I have error message like "The object reference is not definied"

 

Can I have help please ?

 

Ps : Sorry for my English level

Thibault
Top achievements
Rank 1
 answered on 30 Nov 2015
3 answers
104 views

Why is the dateinput rendering as type="text".

Better would be type="date" to let correct keyboard popup on iOs

Marc

Viktor Tachev
Telerik team
 answered on 30 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?