Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
238 views
In my radEditor I am using the image, media, flash, and document managers. I have a custom file handler, and content provider that puts the files onto my server, and allows me to view them. The media manager allows me to upload files, see the files in the file structure, insert, but I can't preview the media or play the media once inserted into the rad editor.  I also am using this in my email system tool. When I send the email it shows an X where the media player should be. I believe that the email is recognizing it as a media file because it shows me the WMPlayer.OCX.7.Object.
<object width="150" height="150" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject">
<param name="URL" value="/FileHandlers/FileSystemHandler.ashx?path=mediaUploads/chord.wav&amp;DealerSiteID=1"/>
<param name="AutoStart" value="true"/>
<embed width="150" height="150" pluginspage="http://www.microsoft.com/Windows/MediaPlayer" src="http://localhost:53316/FileHandlers/FileSystemHandler.ashx?path=mediaUploads/chord.wav&amp;DealerSiteID=1" type="application/x-mplayer2" autostart="true"></object>

is it because of the src path and the URL value? I have looked at a few forum threads but most of those issues were because of the classid missing or the object not being complete. Neither of those issues are happening here.
Misho
Telerik team
 answered on 21 Mar 2015
10 answers
239 views
My problem is changing an auto-generated column editor type..

I want to change from a textbox control to a dropdownlist control using AutoGenerateColumns = true

Is there a different way to do what I'm doing below? I really hate deriving from GridTextBoxColumnEditor just to expose a DropDownList.


<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" AllowAutomaticUpdates="true" OnNeedDataSource="RadGrid1_NeedDataSource"  OnCreateColumnEditor="RadGrid1_CreateColumnEditor">

protected void RadGrid1_CreateColumnEditor(object sender, GridCreateColumnEditorEventArgs e) 
    { 
        if (e.Column is GridBoundColumn) 
        { 
            if ((e.Column as GridBoundColumn).DataField == "Code"
            { 
                DropDownList ddl = new DropDownList(); 
                e.ColumnEditor = new CustomDropDownList(ddl); 
            } 
        } 
    } 
// Derived class used to expose a dropdownlist
// (Notice i'm deriving from GridTextBoxColumnEditor)
public class CustomDropDownList : GridTextBoxColumnEditor 
    private DropDownList _ddl; 
 
    public CustomDropDownList(DropDownList ddl) 
    { 
        this._ddl = ddl; 
    } 
 
    protected override void LoadControlsFromContainer() 
    { 
        this._ddl = this.ContainerControl.Controls[0] as DropDownList; 
    } 
 
    public override bool IsInitialized 
    { 
        get 
        { 
            return this._ddl != null
        } 
    } 
 
    public override string Text 
    { 
        get 
        { 
            return this._ddl.SelectedValue; 
        } 
        set 
        { 
            this._ddl.SelectedIndex = this._ddl.Items.IndexOf(this._ddl.Items.FindByValue(value)); 
        } 
    } 
 
    protected override void AddControlsToContainer() 
    { 
        this.ContainerControl.Controls.Add(this._ddl); 
    } 

Jeff
Top achievements
Rank 2
 answered on 20 Mar 2015
11 answers
2.3K+ views
Hello,

How do you clear the RadDatePicker date on the client?  I want to set the value to null, but how do I do that because set_selectedDate(null) throws an exception.  I want the textbox to be blank.  I tried getting the textbox and setting the value to null, but that doesn't produce the desired result too...

Thanks.
JAVIER
Top achievements
Rank 1
 answered on 20 Mar 2015
4 answers
171 views
I'm running a script on window.onbeforeunload to check to see if the form is 'dirty'

this works for asp controls:

$('select').bind('change', function (event) { dataChanged = 1 })
$('input').bind('input', function (event) { dataChanged = 1 })

but I can't find an equivalent for a radComboBox or radDatePicker.
Anybody running this check?

Thanks
Bill
Top achievements
Rank 1
 answered on 20 Mar 2015
1 answer
110 views
Hi

I have Telerik Grid with Textbox when i enter the textbox i need calculated in my Telerik Grid Footer Template so how will do this
i tried row.findcontrol("controlname") but i canot get footer value and setvalue also any one guide me.
Eyup
Telerik team
 answered on 20 Mar 2015
3 answers
962 views
I am new to Telerik and pretty new to C# as well. Wanting to build a website that uses the RadPageLayout so it can be responsive.

I thought I would find a sample app that does part of what I need to do, like user login, remember me, user logout, user forgot password, registration, change password, and then build from there. It doesn't look like any of the sample apps do this sort of thing.

Does anyone know of a sample application that I could use to learn Telerik and help with my application that I would like to create? If it used the RadPageLayout as the base, that would be fantastic.

Thanks in advance



Hristo Valyavicharski
Telerik team
 answered on 20 Mar 2015
0 answers
155 views
Hi, Support

i have a dynamically added repeater to asp Panel control (see the code below)

DataRepeater.ID = String.Format("DR{0}", ItemID);
DataRepeater.DataSource = oToDoList;
DataRepeater.DataBind();
 
foreach (RepeaterItem RItem in DataRepeater.Items)
{ ... }
 
pnlNiches.Controls.Add(DataRepeater);

This is working good, repeater is added to asp Panel. But, when I try to retrieve repeater items, it appears that panel doesn't contain any control.

Repeater DataRepeater = (Repeater)pnlNiches.FindControl(String.Format("DR{0}", ItemID));
if (DataRepeater != null)
{
    foreach (RepeaterItem RItem in DataRepeater.Items)
    { ... }
}

I am sure that I don't clear panel controls in the code.
What can be the reason of this strange behavior? Thanks in advance!

















Bobi
Top achievements
Rank 1
 asked on 20 Mar 2015
4 answers
518 views
I am using radgrid filter in which i am performing search operation,when i put text it filters the data but when i put text along with special characters for eg: building[ then filter does not work.


Milena
Telerik team
 answered on 20 Mar 2015
3 answers
53 views
I need to setup progress area for lengthy logic that located in dll outside the page.

Not sure how to approach this.

Please help
Hristo Valyavicharski
Telerik team
 answered on 20 Mar 2015
1 answer
83 views
I need to setup progress bar for lengthy logic that located in dll outside the page.
Not sure how to approach this.
Please help
Hristo Valyavicharski
Telerik team
 answered on 20 Mar 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?