This is a migrated thread and some comments may be shown as answers.

embed audio player in radgrid row?

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rui
Top achievements
Rank 1
Rui asked on 04 Sep 2013, 04:02 PM
Hi,

Is there a feature or something I can combine with radgrid to play audio in row when a button in a column is clicked?
I don't want user to leave the page to listen to the audio, best way will be a button column for user to click, once the button is clicked, a play will start inside the column and play a wav file.
Any suggestions?

Thanks
Roy

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 06 Sep 2013, 06:35 PM
Hello Rui,

In our next official release we will introduce RadMediaPlayer control that could be used in such scenarios, but for now you may use some other approach for getting such functionality.

For now to implement the desired functionality I would suggest using GridTemplateColumn with HTML5 "audio" tag inside its ItemTemplate:
<telerik:GridTemplateColumn>
    <ItemTemplate>
        <audio controls="controls"><source src='<%# Eval("audioFileURL") %>' type="audio/x-wav"></audio>
    </ItemTemplate>
</telerik:GridTemplateColumn>

Furthermore, you could also take a look at HTML "object" element for more possible ways to play audio files.

Hope that helps.

Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Rui
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or