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

Requirements

Telerik Product and Version


Supported Browsers and Platforms


Components/Widgets used (JS frameworks, etc.)



PROJECT DESCRIPTION 
[enter description here, together with step-by-step instructions on how to use the project]
Eyup
Telerik team
 answered on 03 Mar 2014
3 answers
141 views
HI Telerik

Is it possible to play video files using radmediaplayer in browsers that are not HTML5 compatible? Like the control can make use of flash plug-ins installed on the browser to play videos if it does not support HTML5.

Ben
Eyup
Telerik team
 answered on 03 Mar 2014
1 answer
187 views
Hi all,

I am currently using the OnDayRender event of the Calendar of my RadDatePicker which executes normally but, on a number of times only. My objective is to disable dates which are already taken and enable only Sundays for selection. So here's my code:

protected void Calendar_OnDayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
    // disable all days except Sunday
    if (e.Day.Date.DayOfWeek != DayOfWeek.Sunday)
    {
        CalendarDatesDisabler(sender, e);
    }
    // for Sundays, disable the dates already taken in the records
    // if no records with this date do not disable
    else // if (e.Day.Date.DayOfWeek == DayOfWeek.Sunday)
    {
        if (_dtForCalendarDayRender.Rows.Count > 0)
        {
            if (_dtForCalendarDayRender.Select(string.Format("startdate = '{0:MM/dd/yyyy}'", e.Day.Date)).Length == 0)
                return;
 
            CalendarDatesDisabler(sender, e);
        }
    }
}

The above block of code runs just what it is expected to do, but it seems to trigger only for 30 number of days, maybe, after that it stops executing and then leaving other Sundays as enabled where it should not be. What can you suggest with this? I have searched the web with the server-side event of on month/year changed so that each time the month or year is selected it will disable the specific calendar days but found nothing.

Thanks for your response!
Eyup
Telerik team
 answered on 03 Mar 2014
2 answers
133 views
Hi,

Can you help us with our problem on safari and chrome? The ajax loading panel will only show once and after that it will not show up anymore. I tried to debug this found out that after a successful ajax on first try, it displays a javascript error on console.

TypeError: 'null' is not an object (evaluating 'f.cssRules.length').

I tried to debug and found out that the f variable was the addthis css ("http://ct1.addthis.com/static/r07/counter014.css")

Thanks,

JP
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2014
1 answer
595 views

Never had a problem with this until now and I think it is some extra code I need with C#, just switched over last month and its always worked with VB.  BUt my grid will not ignore paging on export, it only exports the current page.  Is there some extra code behind I need.  I put in the GridExporting and BiffExporting but niether made a difference still only 1 page that gets exported.  So what am I missing?

<telerik:RadGrid ID="myRadGrid" runat="server" Skin="Web20" Width="80%" OnNeedDataSource="myRadGrid_NeedDataSource" CssClass="CentDiv3" OnPageIndexChanged="myRadGrid_PageIndexChanged"
       OnPageSizeChanged="myRadGrid_PageSizeChanged" OnSortCommand="myRadGrid_SortCommand" OnGridExporting="myRadGrid_GridExporting" OnBiffExporting="myRadGrid_BiffExporting">
       <ExportSettings ExportOnlyData="true" Excel-Format="Biff" IgnorePaging="true" OpenInNewWindow="true"></ExportSettings>
       <MasterTableView runat="server" AutoGenerateColumns="false" Font-Size="9" AllowPaging="true" AllowSorting="true" CommandItemDisplay="Top">
 
 
 
protected void myRadGrid_PageIndexChanged(object sender, GridPageChangedEventArgs e)
   {
       fillGrid = true;
       myRadGrid.Rebind();
   }
   protected void myRadGrid_PageSizeChanged(object sender, GridPageSizeChangedEventArgs e)
   {
       fillGrid = true;
       myRadGrid.Rebind();
   }
   protected void myRadGrid_SortCommand(object sender, GridSortCommandEventArgs e)
   {
       fillGrid = true;
       myRadGrid.Rebind();
   }
   protected void myRadGrid_GridExporting(object sender, GridExportingArgs e)
   {
       fillGrid = true;
       myRadGrid.Rebind();
   }
   protected void myRadGrid_BiffExporting(object sender, GridBiffExportingEventArgs e)
   {
       fillGrid = true;
       myRadGrid.Rebind();
   }
Princy
Top achievements
Rank 2
 answered on 03 Mar 2014
11 answers
857 views
I found the tutorial that talked about hiding the default command items, but I don't think it showed how to do it.  When I use the CommandItemSettings tag I only find the Show command for the four export types and not the Add new or Refresh item.  How can I hide the "Add new record" command item?

Sorry if this is an elementary issue.  I can't figure out how to do it....
Princy
Top achievements
Rank 2
 answered on 03 Mar 2014
3 answers
72 views
I have a Radgrid that has a MasterTable and a DetailsTable.  They basically have the same columns, the Master is top level view and the details is broken down data.  However, when I export the data to Excel the columns are no longer aligned.  How can I get them to align?

Thank You in advance!
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2014
3 answers
87 views
Hi All,

I'm looking to improve the performance of my RadGrid when editing entries.  I have 30 columns and a couple hundred rows.  I do use paging, but when I click the edit icon it can take 7+ seconds for the grid to open up in edit mode.  Can anyone please recommend any was to improve the performance?

Thanks,
Mark
Princy
Top achievements
Rank 2
 answered on 03 Mar 2014
1 answer
58 views
Drop down tree  with check box when i single click (root / child node ) AutoPostBack the  drop down tree in code behind (mostly problem in the root node check box check page load more time is taken)
Shinu
Top achievements
Rank 2
 answered on 03 Mar 2014
8 answers
268 views
I have a DropDownList (have also tried ComboBox with the same results) that gets populated during page_load if it's not a post back.  The code executes fine and the DropDownListItems are created and appear to be added from the code behind but when the page renders the DropDownList is empty/disabled.  As soon as I do a post back (checkbox click), when it reloads, all of my DropDownLists now actually show the data and can be clicked on.

I've isolated this down to being caused when I load data into the DropDownList during page_load.  On the post back, the data loading doesn't occur (as expected) and allows the items loaded from the initial page_load to be displayed.

Any ideas why this happens or what I can do to fix it?  I've searched and searched but haven't found a solution that works.  The ComboBox exhibits the exact same behavior.

Relevant code:

DropDownList markup:

<telerik:RadDropDownList ID="cmbPayment_CardType" runat="server"
    OnSelectedIndexChanged="cmbPayment_CardType_SelectedIndexChanged"
    Width="160px" DropDownHeight="90px" DropDownWidth="160px" />

page_load from code behind:

protected void Page_Load(object sender, EventArgs e)
{
    try
    {
        if (!IsPostBack)
        {
            List<CreditCardListItem> lstCreditCards = null;
 
            //Load the list of accepted credit cards
            cmbPayment_CardType.Items.Clear();
            lstCreditCards = GetCreditCardsList();
 
            if ((lstCreditCards != null) && (lstCreditCards.Count > 0))
            {
                foreach (CreditCardListItem ccDetails in lstCreditCards)
                    cmbPayment_CardType.Items.Add(new DropDownListItem() { Text = ccDetails.DisplayName, Value = ccDetails.DisplayOrder.ToString() });
            }
 
            lstCreditCards.Clear();
        }
    }
    catch (Exception ex)
    {
        System.Diagnostics.Debug.Print("Error: " + ex.ToString());
    }
}
John
Top achievements
Rank 1
 answered on 03 Mar 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?