Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
195 views
Hi everyone,

I have followed the example of "RadComboBox Multiple Column" to display my items in multiple rows and columns which is working perfectly fine. The items are displayed in a horizontal ordering, so I would like to display it vertically instead. Thus, is it possible ?

/* RadComboBox CSS*/
.multipleRowsColumns .rcbItem,
        .multipleRowsColumns .rcbHovered
        {
            float:left;
            margin:0 1px;
            min-height:13px;
            overflow:hidden;
            padding:2px 19px 2px 6px;
            width:80px;
        }

Markup:
<telerik:RadComboBox ID="cboxHour" runat="server" Width="40px" DropDownCssClass="multipleRowsColumns"
    DropDownWidth="200px">
    <HeaderTemplate>
        <table style="width: 100%">
            <tr>
                <td align="center">
                    <b>Select Hour</b>
                </td>
            </tr>
        </table>
    </HeaderTemplate>
</telerik:RadComboBox>

C#:
protected new void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                int[] hours = Enumerable.Range(0, 24).ToArray();
                cboxHour.DataSource = hours;
                cboxHour.DataBind();
            }
        }
Irving
Top achievements
Rank 2
 answered on 26 May 2014
1 answer
452 views
I have a rad-grid with search functionality,in which i have a Important Level Column that has Very Low and Low records .So when i search low ideally very low should come first as it should appear in same sequence that was before search , but Low Comes First. Here i have attached gif for more details.


Please Suggest.



Princy
Top achievements
Rank 2
 answered on 26 May 2014
6 answers
200 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
297 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
246 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
122 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
241 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
104 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
136 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
144 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?