Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
150 views
Hi There,

I've just upgraded my site to the latest version and it appears there is some bug with Chrome & Safari. It works fine with Firefox, didn't try with IE (but really, is there anyone out there still using IE ? :) )
I didn't notice anything with the previous version, which I think was 2013 Q3.

Roughly, what I'm doing is loading a usercontrol containing my Async Upload control through an AjaxManager. Pretty basic.
As soon as my control is loaded, here's what I get in my console:

01.Uncaught ReferenceError: Invalid left-hand side in assignment VM936:148
02.(anonymous function) VM936:148
03.Telerik.Web.UI.RadProgressManager._createSafariIFrame Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:92
04.Telerik.Web.UI.RadProgressManager._createSafariPoller Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:67
05.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
06.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
07.Sys._Application.raiseLoad Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
08.Sys.WebForms.PageRequestManager._pageLoaded Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
09.Sys.WebForms.PageRequestManager._scriptsLoadComplete Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
10.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
11.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
12.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
13.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
14.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
15.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
16.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
17.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
18.Sys._ScriptLoader._nextSession Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
19.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
20.Sys._ScriptLoader._scriptLoadedHandler Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
21.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
22.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6

And :

01.Uncaught TypeError: Cannot set property '_primaryProgressBarElement' of undefined Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:1440
02.Telerik.Web.UI.RadProgressArea._setupSafariProgressAreaControls Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:1440
03.Telerik.Web.UI.RadProgressManager._setupSafariProgressAreas Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:73
04.Telerik.Web.UI.RadProgressManager._createSafariIFrame Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:94
05.Telerik.Web.UI.RadProgressManager._createSafariPoller Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:67
06.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
07.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
08.Sys._Application.raiseLoad Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
09.Sys.WebForms.PageRequestManager._pageLoaded Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
10.Sys.WebForms.PageRequestManager._scriptsLoadComplete Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:15
11.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
12.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
13.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
14.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
15.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
16.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
17.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
18.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
19.Sys._ScriptLoader._nextSession Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
20.Sys._ScriptLoader._loadScriptsInternal Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
21.Sys._ScriptLoader._scriptLoadedHandler Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
22.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6
23.(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScri…:6

The second one is probably more useful, therefore I clicked on it and it brought me there on the row 1440 of "Telerik.Web.UI.Upload.RadProgressManager.js":

},_setupSafariProgressAreaControls:function(){if($telerik.RadUpload_isIFrameProgress){this._getSafariProgressArea()._primaryProgressBarElement=this._primaryProgressBarElement;

This 'bug' does not prevent me to upload any file but then none of my handlers are being called except for the HttpHandlerUrl defined on the control, hence I can't use it.

Hope this is useful and will help you in your investigation.

Cheers,

Chris
Plamen
Telerik team
 answered on 26 May 2014
9 answers
224 views
I do want to add a different banner to each video in a playlist. The banners (blank .png) would be used to make a link if the video is clicked.

Is there a way to connect the banners to the the different video files since every video should take the visitor to a different page.

Last line commented does not seem to be working.

Markus

banner = new MediaPlayerBanner()
                {
                    NavigateURL = "http://www.marktold.com", //this would be different later per file
                    ImageUrl ="/css/images/mediaplayer_blank_banner.png",
                    
                };
             
                    file = new MediaPlayerVideoFile()
                    {
                        Poster = string.Format(PosterMP4),
                        //Path = string.Format(MP4),
                        AutoPlay = true,
                  
                    };
                    SourceMP4 = new MediaPlayerSource()
                    {
                        Path = MP4,
                    };
                    SourceWEBM = new MediaPlayerSource()
                    {
                        Path = WEBM,
                    };
                    SourceOGV = new MediaPlayerSource()
                    {
                        Path = OGV,
                    };
 
                    file.Sources.Add(SourceOGV);
                    file.Sources.Add(SourceWEBM);
                    file.Sources.Add(SourceMP4);
 
                    player.Playlist.Add(file);
                  //  player.Banners.Add(banner);
Eyup
Telerik team
 answered on 26 May 2014
3 answers
211 views
Hi,
We are not able to implement paging on the basis of groups. For example we have 5 groups and have 10 rows in each group then if we set page size to 4 then first 4 groups should be displayed and 5th group should be displayed on 2nd page. But what happens is that only 4 rows of Ist group is displayed and 12 page numbers were created.

We have to implement paging based on groups while it is happening based on total records in the groups.

Please help. Its urgent.
Pavlina
Telerik team
 answered on 26 May 2014
1 answer
85 views
hi

I am getting value Prod_ID return in the Page Load but nothing is return from selectedValue or radlistbox.SelectedItem.Value in the SelectedIndexChanged event even though autopostback is set to true. I have 5 records in the DB.

How should i resolve this?  Thanks a lot.

 <telerik:RadListBox ID="radlistbox" runat="server" Width="100%" EnableViewState="false" Skin="Metro" style="top: 0px; left: 0px" SelectionMode="Multiple" AutoPostBack="True">
</telerik:RadListBox>

 Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
       If Not Page.IsPostBack Then
            listboxdatabind()
            radlistbox.SelectedIndex = 0
            Dim a As String = radlistbox.SelectedItem.Value
        End If
    End Sub
 

 Sub listboxdatabind()
        radlistbox.DataSource = prodDatatable()
        radlistbox.DataTextField = "Prod_Name"
        radlistbox.DataValueField = "Prod_ID"
        radlistbox.DataBind()
    End Sub

Protected Sub radlistbox_SelectedIndexChanged(sender As Object, e As EventArgs) Handles radlistbox.SelectedIndexChanged
        listboxdatabind()
        Dim x As String = radlistbox.SelectedValue
        Dim y As String = radlistbox.SelectedItem.Value
 End Sub
Shinu
Top achievements
Rank 2
 answered on 26 May 2014
5 answers
212 views
I have a hierarchical RadGrid with Default skin.When I click the expand button,expanded row will be highlighted.I mean,row's background color will be changed.I've looked the classes given in this link,but I couldn't make it.How can I achieve this?
Eyup
Telerik team
 answered on 26 May 2014
1 answer
78 views
Hi I have a radgrid with a mastertableview. The grid has 4 columns. Two of them are RadCombobox and the other two are RadDatePicker. All filters are "EqualTo".  All filter works fine. On the CommandItem I have two radiobuttons that when clicked brings the last 15 and 30 days data. In this case in the commandItem on code behind I am recunstructing the filterexpression and replacing the "([UpdateDate] = '" per "([UpdateDate] >= '". I have tested and it works for some situations. The only time it is not working is when there are not data for that grater or equal date. Instead of bringing an empty grid it crashes saying out of range where I am calling the rebind() function.

Thank you
Eyup
Telerik team
 answered on 26 May 2014
1 answer
108 views
Hi All,
I have a RadDateTimePicker defined like this:

 <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server">          
  </telerik:RadDateTimePicker>

and I have used this code in PageLoad function:
 if (!Page.IsPostBack)
            {

                List<DateTime> dateList = new List<DateTime>();

                for (int hour = 0; hour < 24; hour++)
                    dateList.Add(DateTime.UtcNow.Date.AddHours(hour));
                dateList[0] = dateList[0].AddDays(1).AddMinutes(-1);

                RadDateTimePicker1.TimeView.DataList.DataSource = dateList;
                
            
            }

Above code is used to display 11:59:00 PM in the time selection, but my issue is , whenever I select any Time , then 5:30 hours get automatically added to the time.
for eg. If i select 2:00 PM, then 7:30PM get displayed in the RadDateTimePicker.

Please help.
Viktor Tachev
Telerik team
 answered on 26 May 2014
1 answer
106 views
Can I disable a radgrid when the 'Add new record' template form is open? The user can only view the records. He cant delete or select rows.
This template also has a cancel button, on click of which I want to close the template. How can I achieve this?
Princy
Top achievements
Rank 2
 answered on 26 May 2014
1 answer
168 views
Hi folks,

i'm using a RadGrid with a custom CSS. When additionally using a RadAjaxManager, the assigned CSS is ignored and the Default is used.
I tried it like described here 
http://www.telerik.com/help/aspnet-ajax/ajax-layout-problem-updated-controls-on-new-line.html
but no success so far.

So summarized i got this.

I have a global CSS style to add a border to all input type=submit:

1.body input[type=submit] {
2.        background-color: #bdb69e;
3.        border: 1px solid #bdb69e;
4.        min-width: 200px;
5.        min-height: 35px;
6.        box-shadow: 0 0 0 1px rgba(254,254,254,0.5), 0 0 0 2px #bdb69e;
7.    }

Because i dont want to have this border for the paging buttons in a RadGrid i'm using:

1..RadGrid input[type=submit] {
2.    border: none !important;
3.    box-shadow: none !important;
4.    width: 25px !important;
5.    min-width: 25px !important;
6.}

As said before this works fine with no RadAjaxManager. But with RadAjaxManager the borders appear.
Currently i'm using the RadAjaxManager like this:

01.<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
02.        <AjaxSettings>
03.            <telerik:AjaxSetting AjaxControlID="btn_Search">
04.                <UpdatedControls>
05.                    <telerik:AjaxUpdatedControl ControlID="rg_Translation" UpdatePanelCssClass="ForcedRadGridStyle" UpdatePanelRenderMode="Inline" />
06.                </UpdatedControls>
07.            </telerik:AjaxSetting>
08.        </AjaxSettings>
09.</telerik:RadAjaxManager>

I even tried to assign a other custom class with some radical colors for testing purposes, but nothing changes.

1..ForcedRadGridStyle {
2.    color: rgb(182, 255, 0) !important;
3.    background-color: rgb(182, 255, 0) !important;
4.}


How can i get this working?
What am i missing?

Thanks,
Markus
Venelin
Telerik team
 answered on 26 May 2014
6 answers
216 views
We've noticed that if we include a column in the pivotgrid, and give it a caption, that's the value that shows up in the configuration panel. All OTHER fields are picked up automatically from the data source, but the value that shows is the field name, which isn't always meaningful to the user.

Is it possible to define captions for all fields, even those that are not initially included in the pivotgrid?
Antonio Stoilkov
Telerik team
 answered on 26 May 2014
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?