Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Hello,
as far as I see it give no German-Localizations-Files for grid, filter, pager, Upload and other controls.
Resources is expected in the near future to this?

Greetings
Daniel
Telerik team
 answered on 10 Dec 2010
2 answers
260 views
I know the file explorer is an ASP.NET control, but much of the code needed is javascript and I'm just not any good with that.  So here's my noob question.  I have a video player control that embeds a windows media player on my page.  I have a File Explorer control above it showing the contents of a Video Library folder where the user is asked to double-click a filename and I want it to play in my video player.  From the OnClientItemSelected(sender, args) javascript function, can I call a function in my ASP code-behind page? Or is there a simpler/easier way to do this?  I need to take the selected filename and fill in the 'VideoURL' field of the video player control.

I have tried several different ways to do this with no luck and I'm getting frustrated.  I know this should be a simple task but I just don't get it.

Here is the code in my primary .aspx page.  There is nothing in the .aspx.vb page yet.

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <script type="text/javascript">
       
       function OnClientItemSelected(sender, args) {
           var vidpath = args.get_item().get_name();
           PlayVid(vidpath);
       }

    </script>


    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

        Select a file below to view it.<br /><br />


        <telerik:RadFileExplorer
            ID="RadFileExplorer1" 
            runat="server" 
            Height="250px" 
            InitialPath="/VideoLibrary" Skin="Outlook" EnableCreateNewFolder="False" 
            ToolTip="Double-click a video from the list to view it." TreePaneWidth="0px" 
            VisibleControls="Grid, ContextMenus" 
            onclientitemselected="OnClientItemSelected" Width="606px">
                <Configuration SearchPatterns="*.*" 
                ViewPaths="/VideoLibrary">
                </Configuration>
        </telerik:RadFileExplorer>

        <br /><br />

    <ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server" Height="480px" 
            VideoURL="http://www.pdcrx.com/VideoLibrary/Introduction_to_Palliative_Sedation_-_Aug_2010.wmv" 
            Width="640px" WMode="Window">
    </ASPNetVideo:WindowsMedia>

    </form>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <script type="text/javascript">
       
       function OnClientItemSelected(sender, args) {
           var vidpath = args.get_item().get_name();
           PlayVid(vidpath);
       }

    </script>


    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

        Select a file below to view it.<br /><br />


        <telerik:RadFileExplorer
            ID="RadFileExplorer1" 
            runat="server" 
            Height="250px" 
            InitialPath="/VideoLibrary" Skin="Outlook" EnableCreateNewFolder="False" 
            ToolTip="Double-click a video from the list to view it." TreePaneWidth="0px" 
            VisibleControls="Grid, ContextMenus" 
            onclientitemselected="OnClientItemSelected" Width="606px">
                <Configuration SearchPatterns="*.*" 
                ViewPaths="/VideoLibrary">
                </Configuration>
        </telerik:RadFileExplorer>

        <br /><br />

    <ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server" Height="480px" 
            VideoURL="http://www.pdcrx.com/VideoLibrary/Introduction_to_Palliative_Sedation_-_Aug_2010.wmv" 
            Width="640px" WMode="Window">
    </ASPNetVideo:WindowsMedia>

    </form>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <script type="text/javascript">
       
       function OnClientItemSelected(sender, args) {
           var vidpath = args.get_item().get_name();
           PlayVid(vidpath);
       }

    </script>


    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

        Select a file below to view it.<br /><br />


        <telerik:RadFileExplorer
            ID="RadFileExplorer1" 
            runat="server" 
            Height="250px" 
            InitialPath="/VideoLibrary" Skin="Outlook" EnableCreateNewFolder="False" 
            ToolTip="Double-click a video from the list to view it." TreePaneWidth="0px" 
            VisibleControls="Grid, ContextMenus" 
            onclientitemselected="OnClientItemSelected" Width="606px">
                <Configuration SearchPatterns="*.*" 
                ViewPaths="/VideoLibrary">
                </Configuration>
        </telerik:RadFileExplorer>

        <br /><br />

    <ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server" Height="480px" 
            VideoURL="http://www.pdcrx.com/VideoLibrary/Introduction_to_Palliative_Sedation_-_Aug_2010.wmv" 
            Width="640px" WMode="Window">
    </ASPNetVideo:WindowsMedia>

    </form>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <script type="text/javascript">
        
       function OnClientItemSelected(sender, args) {
           var vidpath = args.get_item().get_name();
           PlayVid(vidpath);  <-- This is where I was thinking of calling a code-behind vb function
       }
 
    </script>
 
 
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
 
        Select a file below to view it.<br /><br />
 
 
        <telerik:RadFileExplorer
            ID="RadFileExplorer1"
            runat="server"
            Height="250px"
            InitialPath="/VideoLibrary" Skin="Outlook" EnableCreateNewFolder="False"
            ToolTip="Double-click a video from the list to view it." TreePaneWidth="0px"
            VisibleControls="Grid, ContextMenus"
            onclientitemselected="OnClientItemSelected" Width="606px">
                <Configuration SearchPatterns="*.*"
                ViewPaths="/VideoLibrary">
                </Configuration>
        </telerik:RadFileExplorer>
 
        <br /><br />
 
    <ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server" Height="480px"
            VideoURL="some_video_title.wmv"
            Width="640px" WMode="Window">
    </ASPNetVideo:WindowsMedia>
 
    </form>
</asp:Content>
Dobromir
Telerik team
 answered on 10 Dec 2010
2 answers
214 views
I have a rad grid and when the user select edit or insert it opens the EditForm using a Template.  Depending on who the user is there are two items that I would like to either show or hide.  Here is a sample of the code.
  <rad:RadGrid ID="gridClients" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" EnableAJAX="True" EnableAJAXLoadingTemplate="True" GridLines="None" LoadingTemplateTransparency="50" ShowStatusBar="True" Skin="Windows" Width="98%" AllowFilteringByColumn="True" PageSize="25" DataBound="gridClients_ItemDataBound" OnUpdateCommand="gridClients_UpdateCommand" OnInsertCommand="gridClients_InsertCommand" OnDeleteCommand="gridClients_DeleteCommand">
...
<EditFormSettings EditFormType="Template" UserControlName="ClientGrid" >
  <EditColumn UniqueName="EditCommandColumn"></EditColumn>
  <FormTemplate>
     <table cellpadding="2" cellspacing="0" border="0" width="100%">
       <tr id="SpecialInstructRow" runat="server" visible="false">
         <td>
            <label for="SpecialInstuct">Billing Notes:</label>
            <asp:TextBox ID="SpecialInstructTextBox" runat="server" Text='<%# Bind("SpecialInstructions")  %>' TextMode="MultiLine" ></asp:TextBox>
          </td>
       </tr>
  
...
</table>


As you can see I have the table row visible set to false.  How can I change this when the user hits the edit or insert button on the grid, based on the user who is loged in?
Eric Klein
Top achievements
Rank 1
 answered on 10 Dec 2010
5 answers
127 views
The HTML we are currently generating through the Telerik menu control looks something like this :

<li class="rmItem">
   <a class="rmLink radMenuLoginReq" href="...">
      <img src="...">
      <span class="rmText rmExpandDown">Menu Item</span>
   </a>
   <div class="rmSlide">
      ...
   </div>
</li>

Is it possible to have the rmText SPAN tag swap places with the IMG tag? I would rather switch the positions of the tags than find the correct way to float the image into the position I want it to be in.
Kamen Bundev
Telerik team
 answered on 10 Dec 2010
4 answers
1.0K+ views

 

Dear Forum.

I added a button to a command item template in my grid and now only the command item template is showig and not the Export to Excel button. I need both buttons to show, please advise.

Thanks,
Celeste

<
CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />

 

 

<CommandItemTemplate>

 

 

<asp:Button ID="btnExpandAll" Text="Expand All" Runat="server" CommandName="ExpandAll"></asp:Button>

 

 

</CommandItemTemplate>

 

Celeste
Top achievements
Rank 1
 answered on 10 Dec 2010
2 answers
136 views
I want to handle a click event, and prompt the user with a message saying that a tab is disabled (when it is disabled)...

Doable out of the box, or should I wire up a jQuery click event of my own?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 10 Dec 2010
2 answers
125 views
When I have pagersytle mode set to NextPrevNumericAndAdvanced and I am unable to PageSizeLabelText.
but if I change the mode to NextPrevAndNumeric then my custom PageSizeLabelText takes effect.

Is this a known issue?

This works
<PagerStyle AlwaysVisible="True" PageSizeLabelText="# Per Page" ShowPagerText="True" Mode="NextPrevAndNumeric" />

This does not work
<PagerStyle AlwaysVisible="True" PageSizeLabelText="# Per Page" ShowPagerText="True" Mode="NextPrevNumericAndAdvanced" />

Thanks
smdk
Top achievements
Rank 1
 answered on 10 Dec 2010
1 answer
184 views
Hello,
I want to access GridDropDownColumn of RADGRID using Javascript. I know how to create function on ItemDataBound and access the GridDropDownColumn from there. But my javascript function is being called from the other page. And from the other page I want to access the GridDropDownColumn which has Dropdown in the EDIT mode in the RADGRID.
I want to set the value passed from the other page to set the GridDropDownColumn's dropdown's value.
Please help me fresolving this problem.
Telerik contols have problem accessing from javascript without using the server side code. Please put attention to my POST and reply me ASAP.

Thanks,
Deepa
Iana Tsolova
Telerik team
 answered on 10 Dec 2010
3 answers
156 views
- The RadXmlHttpPanel currently contains a RadTreeView, which has a context menu defined using RadTreeViewContextMenu.
- The EnableClientScriptEvaluation property of RadXmlHttpPanel has been set to true, but the client side event 'OnClientContextMenuItemClicking' of the RadTreeView doesn't seem to fire while 'OnClientContextMenuShowing' event fires.
- Have also tried by setting RegisterWithScriptManager property of RadTreeView to false, this still doesn't help

Snippet:
----------
<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" OnServiceRequest="XmlHttpPanel_ServiceRequest" OnClientResponseEnded="XmlHttpPanel_ResponseEnded"
EnableClientScriptEvaluation="true" RenderMode="Block">
<telerik:RadTreeView ID="treeView1" runat="server" OnNodeDataBound="treeView1_NodeDataBound"
EnableViewState="false" OnClientContextMenuItemClicking="onClientContextMenuItemClicking" OnClientContextMenuShowing=”onClientContextMenuShowing”
Height="99%" RegisterWithScriptManger="false">
<ContextMenus>
<telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
<Items>
<telerik:RadMenuItem Value="menuItem1" Text=" menuItem1" AccessKey="M">
</telerik:RadMenuItem>
<telerik:RadMenuItem Value="menuItem2" Text=" menuItem2" AccessKey="U">
</telerik:RadMenuItem>
</Items>
<CollapseAnimation Type="none" />
</telerik:RadTreeViewContextMenu>
</ContextMenus>
<NodeTemplate>
<asp:CheckBox ID="NodeCheckBox" runat="server"></asp:CheckBox>
<asp:RadioButton ID="NodeRadioButton" runat="server"></asp:RadioButton>
</NodeTemplate>
</telerik:RadTreeView>
</telerik:RadXmlHttpPanel>


Here, onClientContextMenuItemClicking doesn’t get hit, while onClientContextMenuShowing is hit.
Nikolay Tsenkov
Telerik team
 answered on 10 Dec 2010
10 answers
519 views
Hi,

I am binding PIE chart programmatically. Kindly tell me how to change the series item color? And how to change the background color of the chart as white? Because when I set <FillStyle MainColor="#FFFFFF"  /> is not working. 

Regards,
Jones
Vladimir Milev
Telerik team
 answered on 10 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?