Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
303 views
hi,
tried everything to play local MP4 files in media player, but can't get it to happen.

Added to web.config:
​<staticContent>
<remove fileExtension=".mp4" />
<remove fileExtension=".ogv" />
<remove fileExtension=".webm" />
<remove fileExtension=".mp3" />
<remove fileExtension=".ogg" />
<remove fileExtension=".wav" />
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />
<mimeMap fileExtension=".webm" mimeType="video/webm" />
<mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
<mimeMap fileExtension=".ogg" mimeType="audio/ogg" />
<mimeMap fileExtension=".wav" mimeType="audio/wav" />
</staticContent>

tried various paths, and the sample code from Telerik, but I just can't get them to play. I can play a youtube video without a problem, but not local files.

Code is:-
​RadMediaPlayer1.ToolbarDocked = true;
RadMediaPlayer1.ToolBar.FullScreenButton.Visible = true;
RadMediaPlayer1.ToolBar.HDButton.Visible = true;
RadMediaPlayer1.Source = filename;
RadMediaPlayer1.Title = title;
RadMediaPlayer1.Skin = Session["Skin"].ToString();
RadMediaPlayer1.AutoPlay = true;

Filename is passed through, and could be a youtube URL or a path such as ~/App_Documents/FindACosta.mp4

Thanks

Pete
Eyup
Telerik team
 answered on 24 Apr 2015
1 answer
139 views

Hello,

 

when toolbar position is set to Top or Bottom it does not showing correctly number of items and current item. Also when user click to play slideshow, toggle fullscreen or show/hide toolbar it cause server postback and does not working.

 

If toolbar position is set to top inside or bottom inside toolbar is working.

 

I have created ImageGallery in codebehind and this property is setup in CreateChildControls method.

 

Is it issue or is there some way how to fix?

Thanks

Vlad

Angel Petrov
Telerik team
 answered on 24 Apr 2015
5 answers
78 views
Hi,

on http://www.telerik.com/help/aspnet-ajax/grid-applying-default-filter-on-initial-load.html , at bottom of page, where it say:

<MasterTableView FilterExpression="([chkBoxColumnDataField] = True)">

I thing the right text should be:

<MasterTableView FilterExpression="([BoolField] = True)">

Also, for me, right syntax may be:

<MasterTableView FilterExpression="( it.BoolField = True)">

Regards.
Daniel.

Konstantin Dikov
Telerik team
 answered on 24 Apr 2015
5 answers
605 views
Hi 
    i  have an auto complete text box i am able to  bind the the data to the text box  i  am able to  retrieve the value and store it in the database
No i want know how do i bind the the saved value  in the database to the to auto complete text box  again i tried somewhat like this 
         
AutoCompleteBoxEntry childNode = new AutoCompleteBoxEntry();
              childNode.Text = lblTeamLeaderName.Text;
            childNode.Value = lblTASKTEAM_ID.Text;
            txtusers.Entries.Add(childNode);

and
txtusers.Entries[0].Value = lblTASKTEAM_ID.Text;
                 txtusers.Entries[0].Text = lblTeamLeaderName.Text;


but still value which is saved  is not being shown in the textbox i want to bind the text and value some what like  dropdownlist box  can any one  tell where i am going wrong





Dell
Top achievements
Rank 1
 answered on 24 Apr 2015
1 answer
69 views

Hi,

I want to use client side binding and need to set additional Parameters (projectId) for GetTasks(). Every other controls (scheduler etc.) has a client Event, where I can set additional parameters in  context. Is there a similar client event in RadGantt? To use session variables is no option for me.

 thx

gregor

Bozhidar
Telerik team
 answered on 24 Apr 2015
3 answers
68 views

Hi,

I have an issue with users pasting invalid HTML into the editor (usually from an email client).  The HTML comes in with no closing tags, which then causes issues when we render the saved content onto a web page.

Example

<span style>some text<span style>more text <span style> some more text

Is there any way to either strip the invalid tags out or add the closing tags when the user pastes the data?

Thanks

Gavin.

Ianko
Telerik team
 answered on 24 Apr 2015
1 answer
349 views

I'm unable to get a RadListBox to sort.

.Net 4.5; version 2015.1.225.45

Here is the code below:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="WebApplication1._default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="false" />
            <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" CssClass="demo-containers">
                <div class="demo-container size-thin">
                    <telerik:RadListBox
                        ID="RadListBox1"
                        runat="server"
                        Sort="Descending"
                        DataSortField="t" 
                        CheckBoxes="true"
                        ShowCheckAll="true" >
                    </telerik:RadListBox>
                </div>
        </telerik:RadAjaxPanel>
     </form>
</body>
</html>

 

       protected void Page_Load(object sender, EventArgs ed)
        {
            DataTable dt = new DataTable();
            dt.Clear();
            dt.Columns.Add("v");
            dt.Columns.Add("t");
            DataRow a = dt.NewRow();
            a["v"] = "1"; a["t"] = "a";
            dt.Rows.Add(a);
            DataRow b = dt.NewRow();
            b["v"] = "2"; b["t"] = "f";
            dt.Rows.Add(b);
            DataRow c = dt.NewRow();
            c["v"] = "3"; c["t"] = "d";
            dt.Rows.Add(c);
            DataRow d = dt.NewRow();
            d["v"] = "4";d["t"] = "x";
            dt.Rows.Add(d);
            DataRow e = dt.NewRow();
            e["v"] = "5"; e["t"] = "b";
            dt.Rows.Add(e);
           
            RadListBox1.DataSource = dt;
            RadListBox1.DataTextField = "t";
            RadListBox1.DataValueField = "v";
            RadListBox1.DataBind();
        }
  

 

Bozhidar
Telerik team
 answered on 24 Apr 2015
8 answers
214 views
Hi there

It seems as if there is a layout problem with the RadScheduler's Recurrence Editor in Internet Explorer 11:

When we open a RadWindow showing the recurrence editor in IE11, everything seems to be cramped together.  Setting the height and / or width of the RadWindow or Recurrence Editor does not resolve the problem.

See attached images of how it is displayed.

We don't have the same problem in other browsers like Firefox and Chrome and we are using the latest Telerik controls.

Our code is:

<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadSchedulerRecurrenceEditor runat="server" ID="AppointmentRecurrenceEditor"
            SharedCalendarID="SharedCalendar" StartDate="2000-01-20" />
        <telerik:RadCalendar runat="server" ID="SharedCalendar" ShowRowHeaders="false" RangeMinDate="1900-01-01" />
        <asp:HiddenField runat="server" ID="OriginalRecurrenceRule" />
    </div>
    </form>
</body>

Thanks

Gerrit
Andrew
Top achievements
Rank 1
 answered on 23 Apr 2015
4 answers
59 views

Is there anybody can help me to do like this on attachment? I have one text box and one telerik grid and one button. What I want to do is when user enter room no in text box and click GO button then I want to point out text box value on grid because grid have many records.I would like to show attached screen shot.

 

Thanks

Myo
Top achievements
Rank 1
 answered on 23 Apr 2015
6 answers
257 views

Hello,

 

I have a problem with RadListBox in a Control Page (.ASCX). Everything seems to work fine when transferring from one RadListBox to a second one from client-side.

The problem is after post back. Changes are not being read. These are my JS and ASPX codes.

I would appreciate any help. Thank you.

 

var listBox;
var listBox2;
  
function transferItem(item, lbSource, lbTarget) {
    var itemsTarget = lbTarget.get_items();
    lbTarget.trackChanges();
    itemsTarget.insert(0, item);
    lbTarget.commitChanges();
}
  
function pageLoad() {
    var $ = $telerik.$;
    listBox = $find("<%= AllLanguages.ClientID %>");
    listBox2 = listBox.get_transferTo();
}
  
function transferRight() {
    var items = listBox.get_selectedItems();
    for (var i = 0; i < items.length; i++) {
        var item = items[i];
        if (item.get_text() != "Select" || item.get_value() != "") {
            transferItem(item, listBox, listBox2);
        }
    }
    listBox.clearSelection();
    listBox2.clearSelection();
    return false;
}
  
function transferLeft() {
    var items = listBox2.get_selectedItems();
    for (var i = 0; i < items.length; i++) {
        var item = items[i];
        if (item.get_text() != "Select" || item.get_value() != "") {
            transferItem(item, listBox2, listBox);
        }
    }
    listBox.clearSelection();
    listBox2.clearSelection();
    return false;
}
  
function removeAll() {
    var items = listBox2.get_items();
    for (var i = items.get_count() - 1 ; i > -1 ; --i) {
        transferItem(items.getItem(i), listBox2, listBox);
    }
}

 

<table border="0" style="width: 760px; border-collapse: collapse; border-spacing: 0px">
    <tr>
        <td>Available:</td>
        <td></td>
        <td>Selected:</td>
    </tr>
    <tr>
        <td>
            <telerik:RadListBox ID="AllLanguages" runat="server" Height="500px" Width="300px" SelectionMode="Multiple" TransferToID="SelectedLanguages"></telerik:RadListBox>
        </td>
        <td>
            <telerik:RadButton ID="btnAdd" runat="server" Text="Add >" Width="100px" OnClick="btnAdd_Click" OnClientClicked="transferRight" AutoPostBack="False" UseSubmitBehavior="False"></telerik:RadButton>
            <br />
            <telerik:RadButton ID="btnRemove" runat="server" Text="< Remove" Width="100px" OnClientClicked="transferLeft" AutoPostBack="False" UseSubmitBehavior="False"></telerik:RadButton>
            <br />
            <telerik:RadButton ID="btnRemoveAll" runat="server" Text="Remove All" Width="100px" OnClientClicked="removeAll" AutoPostBack="False" UseSubmitBehavior="False"></telerik:RadButton>
            <br />
        </td>
        <td>
            <telerik:RadListBox ID="SelectedLanguages" runat="server" Height="500px" Width="300px" OnClientLoad="pageLoad"></telerik:RadListBox>
        </td>
    </tr>
</table>

Ivan Danchev
Telerik team
 answered on 23 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?