Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
583 views
Hi

I am adding a radmenu onto a page through class not through source. Now I want to access the value or selected index using javascript. I tried to accomplish this task by finding rad menu but its giving an exception that RadMenu with this id does not exists
e.g
$find("<%= RadMenu1.ClientID %>");

I can not access this neither on page nor in any javascript file.

Please let me know how to do this.

Thank
Bharat Bhushan
Aneliya Petkova
Telerik team
 answered on 29 Jul 2014
5 answers
196 views
HI,
I upgraded Telerik Ajax version from Telerik.Web.UI_2010_2_826_Dev_Skins to Telerik.Web.UI_2010_2_929_Dev_hotfix version.

I deleted older 826 version Telerik dlls & Added New Version dlls to bin folder.
I am still getting below errors.
Error   3   Assembly 'Telerik.Web.UI, Version=2010.2.929.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses
'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'       
Error   6   Assembly 'Telerik.Web.UI, Version=2010.2.929.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 
how can i resolve this issue..? please respond to my post.

When i look at other forums thay said delete the references & Add new dll's. i did the same still i am getting above messages.
is there anything i can do in my web.config file..can you look at it.. i couldn't understand wht need to be changed..?

<?

 

 

xml version="1.0"?>

 

<

 

 

configuration>

 

<

 

 

configSections>

 

<

 

 

sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

 

<

 

 

sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

 

<

 

 

section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

 

<

 

 

sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

 

<

 

 

section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>

 

<

 

 

section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

 

<

 

 

section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

 

</

 

 

sectionGroup>

 

</

 

 

sectionGroup>

 

</

 

 

sectionGroup>

 

</

 

 

configSections>

 

<

 

 

connectionStrings>

 

<

 

 

add name="NDIConnectionString" connectionString="Data Source=sqd-102\QSRV1;Initial Catalog=NDI;Integrated Security=True" providerName="System.Data.SqlClient"/>

 

</

 

 

connectionStrings>

 

<

 

 

system.web>

 

<

 

 

customErrors mode="On" defaultRedirect="~/404errorpage.aspx">

 

<

 

 

error statusCode="403" redirect="~/404errorpage.aspx"/>

 

<

 

 

error statusCode="404" redirect="~/404errorpage.aspx"/>

 

</

 

 

customErrors>

 

<

 

 

pages>

 

<

 

 

controls>

 

<

 

 

add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

</

 

 

controls>

 

</

 

 

pages>

 

<!--

 

 

***** Begin Authentication section ***** -->

 

<

 

 

authentication mode="Windows">

 

<

 

 

forms name="MyAuth" timeout="60" cookieless="AutoDetect" defaultUrl="Default.aspx" protection="All" slidingExpiration="true"/>

 

</

 

 

authentication>

 

<

 

 

sessionPageState historySize="100"/>

 

<

 

 

sessionState mode="InProc" cookieless="false" regenerateExpiredSessionId="true" sqlCommandTimeout="9000" stateNetworkTimeout="9000" timeout="9000"/>

 

<

 

 

identity impersonate="true"/>

 

<!--

 

 

***** End Authentication section ***** -->

 

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

 

 

 

-->

 

<

 

 

compilation debug="true">

 

<

 

 

assemblies>

 

<

 

 

add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

 

add assembly="Microsoft.AnalysisServices.AdomdClient, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

 

<

 

 

add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

 

add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

 

add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

 

add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

 

add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

 

add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

 

<

 

 

add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

 

add assembly="Telerik.Web.Design, Version=2010.2.929.40, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/></assemblies>

 

<

 

 

buildProviders>

 

<

 

 

add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

 

</

 

 

buildProviders>

 

</

 

 

compilation>

 

<

 

 

httpHandlers>

 

<

 

 

remove path="*.asmx" verb="*"/>

 

<

 

 

add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

 

<

 

 

add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

 

<

 

 

add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

 

<

 

 

add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>

 

<

 

 

add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>

 

</

 

 

httpHandlers>

 

<

 

 

httpModules>

 

<

 

 

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

</

 

 

httpModules>

 

<

 

 

httpRuntime maxRequestLength="102400"/>

 

</

 

 

system.web>

 

<!--

 

 

***** Begin AppSettings section ***** -->

 

<

 

 

appSettings>

 

<

 

 

add key="CachingEnabled" value="FALSE"/>

 

<

 

 

add key="IndicateEnvironment" value="TRUE"/>

 

<!--

 

 

<add key="SqlServerConnectionString_DEV" value="Data Source=sqd-102\QSRV1;Initial Catalog=NDI;Integrated Security=SSPI;"/>

 

<add key="SqlServerConnectionString_TEST" value="Data Source=SQT-101\QSRV1;Initial Catalog=NDI;Integrated Security=SSPI;"/>

<add key="SqlServerConnectionString_STAGE" value="Data Source=sqd-102\QSRV1;Initial Catalog=NDI;Integrated Security=SSPI;"/>

<add key="SqlServerConnectionString_TRAIN" value="Data Source=sqd-102\QSRV1;Initial Catalog=NDI;Integrated Security=SSPI;"/>

<add key="SqlServerConnectionString_PROD" value="Data Source=sqd-102\QSRV1;Initial Catalog=NDI;Integrated Security=SSPI;"/>

 

 

-->

 

<

 

 

add key="SqlServerConnectionString" value="Data Source=sqd-102\QSRV1;Initial Catalog=NDI;Integrated Security=SSPI; Connect Timeout=180;"/>

 

<

 

 

add key="ReportingService.ReportService2005" value="http://isd-v-dss-srs1.cdc.gov/ReportServer"/>

 

<

 

 

add key="ReportFolder" value="/NDI"/>

 

<

 

 

add key="Filepath" value="//cdc/project/CCHIS_NCHS_NVSS/DEV//NDI/"/>

 

<

 

 

add key="Revision" value="1.24.0 build 1"/>

 

</

 

 

appSettings>

 

<!--

 

 

***** End AppSettings section ***** -->

 

<

 

 

system.webServer>

 

<

 

 

validation validateIntegratedModeConfiguration="false"/>

 

<

 

 

modules>

 

<

 

 

add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

</

 

 

modules>

 

<

 

 

handlers>

 

<

 

 

remove name="WebServiceHandlerFactory-Integrated"/>

 

<

 

 

add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

 

add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

 

add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

 

add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler"/>

 

</

 

 

handlers>

 

</

 

 

system.webServer>

 

</

 

 

configuration>

 


Boyan
Telerik team
 answered on 29 Jul 2014
7 answers
193 views
Hi,

 I am using rad chart with dynamically dispaly in my asp.net application. When the data comes from the database e.g If I got 145 records from the database and try to generate the chart with same data, so our Chat control works fine but when I got the 150 records and try to generate the chart control I am getting an error
An error has occurred while processing Chart 'chartControl':
An Unexpected error has occurred. Please review the InnerException for more information how to resolve the problem.
------------- InnerException -------------
Parameter is not valid. 


I have few concern about RadChart Control :

1) How many records should be display at single RadChart control ?
2) How many Number of color combination used for Chart control ?
3) What is the maximum number of records limit to generate in a single chart ?

I do not understand what is wrong in this case.

Thanks,
Bylar
Danail Vasilev
Telerik team
 answered on 29 Jul 2014
1 answer
161 views
Hello,

I am working on a project with a RadGrid.
In the RadGrid, each column has a filter and a DetailView.
The grid has a StaticHeader.
When page direction is Right To Left (RTL) and the user scrolls, the StaticHeader’s location goes wrong.

VB .NET:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not IsPostBack Then
            RadGrid1.AllowSorting = True
            RadGrid1.MasterTableView.AllowSorting = True
            RadGrid1.PageSize = 50
            RadGrid1.MasterTableView.AllowPaging = True
            RadGrid1.AllowPaging = False
  
            Dim tableViewOrders = New GridTableView(RadGrid1)
            RadGrid1.MasterTableView.DetailTables.Add(tableViewOrders)
            RadGrid1.ClientSettings.Scrolling.UseStaticHeaders = True
            RadGrid1.AllowFilteringByColumn = True
        RadGrid1.MasterTableView.HeaderStyle.Width = Unit.Pixel(200)
        End If
End Sub

ASPX:
<body dir="rtl">
    <form id="form1" runat="server">
<telerik:RadGrid ID="RadGrid1" runat="server" MasterTableView-EnableHeaderContextMenu="true" Height="600px" Width="700px" Skin="Web20" MasterTableView-Dir="RTL">
                            <ClientSettings>
                                   <Scrolling AllowScroll="True"></Scrolling>
                                <ClientEvents />                 
                            </ClientSettings>
                        </telerik:RadGrid>
 
 </form>
</body>

I have attached a video that shows the problem: 
[Video Link]

How can I solve this problem?
 
Thanks,
Daniel.
Pavlina
Telerik team
 answered on 29 Jul 2014
2 answers
145 views
I have a RadGrid with a GridButtonColumn column that, when clicked, makes visible and populates some information in a panel below the grid.
​
<telerik:RadGrid runat="server" ID="RadGridDocuments" ItemStyle-VerticalAlign="Top" AllowPaging="False" AllowSorting="True" ShowGroupPanel="True">
           <%--  etc... --%>
       <telerik:GridButtonColumn CommandName="viewHistory" Text="View History"
             UniqueName="viewHistory">
         </telerik:GridButtonColumn>
           <%--  etc... --%>
</ telerik:RadGrid >   
  
 
 <telerik:RadAjaxPanel ID="pnlViewHistory" runat="server" Visible="false" Height="200px" Width="300px">
    <a href="#anchor"> </a>
    <%-- other stuff --%>
</telerik:RadAjaxPanel>
 
 <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>      
            <telerik:AjaxSetting AjaxControlID="RadGridDocuments">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGridDocuments" />
                    <telerik:AjaxUpdatedControl ControlID="pnlViewHistory" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
</telerik:RadAjaxManagerProxy>

    
And the code behind

Private Sub RadGridDocuments_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles RadGridDocuments.ItemCommand
     
     Select Case e.CommandName
         Case "viewHistory"
             showHistory(e)
         Case
             'more commands follow
     End Select
 End Sub


What I would like to do is also, when this GridButtonColumn is clicked also scroll down to the panel or anchor and bring it in to view. I have no idea how to do this in ItemCommand, can anyone help?





DGraham
Top achievements
Rank 1
 answered on 29 Jul 2014
3 answers
288 views
Hi Guys,

I have a radgrid which uses an item template, within the item template i have a button and a div. On button click i would like to show / hide the div using javascript.
the javascript works fine when im hardcoding the div ID which i want to hide, but as soon as i pass a parameter to the javascript it no longer works.

my end goal is to hide the div in a specific row within the radgrid, because at the moment no matter which button in a row i click on only the first div gets shown/hidden.

If you have another method of getting this to work please let me know. but for now this is the code i have.

<telerik:RadGrid ID="lvSubSections" runat="server" GridLines="None"
                            Width="100%" AllowPaging="false" CellSpacing="0" Visible="false"
                            onneeddatasource="lvSubSections_NeedDataSource"
                            onprerender="lvSubSections_PreRender"
                            onitemcommand="lvSubSections_ItemCommand"
                            EnableViewState="true" >
                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="SubSectionID" ClientDataKeyNames="SubSectionID" >
 
                        <Columns>
 
                             <telerik:GridBoundColumn DataField="SubSectionID" HeaderText="SubSectionID" ItemStyle-Font-Names="Calibri" Resizable="False" UniqueName="Status" ReadOnly="True" Reorderable="False" ShowSortIcon="False" Visible="false">
                                <HeaderStyle HorizontalAlign="Left" Width="3%" Height="100px" Wrap="True" />
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
 
                                <telerik:GridTemplateColumn DataField="SubSectionID" >
                                <HeaderStyle Height="0px" />
                                    <ItemTemplate>
                                        <table width="100%">
                                            <tr>
                                                <td style="border:none;font-size:1.2em;font-weight:bold;" >
                                                    <asp:Label ID="grdLblSubSectionName" runat="server" Text='<%# Eval("subSectionName") %>' />
                                                </td>
                                                <td style="border:none;" align="right">
                                                   <asp:Label ID="grdLblIsComplete" runat="server" Text='<%# Eval("IsComplete") %>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border:none;" align="Left">
                                                    <div class="onoffswitch">
                                                        <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" checked>
                                                        <label class="onoffswitch-label" for="myonoffswitch">
                                                        <span class="onoffswitch-inner"></span>
                                                        <span class="onoffswitch-switch"></span>
                                                        </label>
                                                    </div>
                                                </td>
                                                <td style="border:none;padding:" align="right">
                                                    <telerik:RadButton id="grdBtnComments" runat="server" Text="C" ToolTip="Comments"  OnClientClicked='HideShowComments("<%# Eval("subSectionID") %>")' />
                                                    <telerik:RadButton id="grdBtnQuestions" runat="server" Text="Q" ToolTip="Questions" CommandName="SubSectionQuestions" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="border:none;">
                                                    <div id='<%# Eval("subSectionID") %>' style="display:none;">
                                                        <telerik:RadTextBox ID="grdTbComments" Width="100%" Height="50px" runat="server" TextMode="MultiLine" Text='<%# Eval("subSectionComments") %>' ></telerik:RadTextBox>
                                                        <telerik:RadButton id="grdBtnSaveComments" runat="server" Text="Save" ToolTip="Comments"  />
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

and this is the javascript i am currently using

function HideShowComments(ID) {
                   var id = document.getElementById(ID);
 
                   if (id.style.display == "none") {
                       id.style.display = "table-row";
                   }
                   else {
                       id.style.display = "none";
 
                   }
               }

Thanks in advance
Carlos
Top achievements
Rank 2
 answered on 29 Jul 2014
4 answers
141 views
Greetings all,

When using the RadMediaPlayer control in my web application, I am having trouble clearing the multimedia sources that have already been loaded into the control.  The user has the option of adding a new link and corresponding description which are saved in a SQL Server table of video records.  This list is loaded into a dropdown box for selection.  When a video is chosen, I am setting the source property as follows, based on the link retrieved from the database:

MMOMediaPlayer.Source = <link from db>

This works fine and the video plays as expected.  However, I want to give the user the ability to clear the control of any video content and reset it to its original state when the page first loaded.  I have a button that performs this function, with server-side code as follows:

MMOMediaPlayer.Sources.Clear()

However, after this code executes, the most recently viewed video is still present in the viewer, and begins to play from the last position (time) within the clip.  I've also tried using MMOMediaPlayer.Sources.RemoveAt(0), but this also seems to have no effect.

Any help would be appreciated.


Radoslav
Telerik team
 answered on 29 Jul 2014
3 answers
197 views
Hi,

I have requirement using multi select combo box. Please see the scenarios below.

1. We have two combo box
    a. Combo box 1: Frequency(Values will be Monthly, Quarterly, Half-yearly, Annual)
    b. Combo box 2: Months(Jan, Feb... Dec)
 Scenario 1:
When we select Monthly in Frequency Combo box , all the months should be selected in the Months combo box, user cannot change the Months Combo box

Scenario 2:
When we select Half-yearly in Frequency Combo box, Only 2 months has to be selected in a year, with interval of 6 months. For Eg( If user selects Jan automatically July should be selected and all the other values in the month combo box should disabled)

Scenario 3:
When we select Quarterly in Frequency Combo box, Only 4 months has to be selected in a year, with interval of 3 months. For Eg( If user selects Jan automatically Apr, Jul, Oct should be selected and all the other values in the month combo box should disabled)

Scenario 4:
When we select Annual in Frequency Combo box, Only 1 months has to be selected in a year. For Eg( If user selects Jan all the other values in the month combo box should disabled)

Can we do this in telerik, if possible can you pls help to do it

Thanks,
Arumugam
   
Nencho
Telerik team
 answered on 29 Jul 2014
1 answer
220 views
Need help how to use tab strip with 2 different  pages
For example :
I need 2 tab on one page
-------------------------------------
First Tab | Second Tab
-------------------------------------

On First Tab below menu will display
---------------------------------------------------------------------------------------------------------------
Menu1 | Menu 2 | Menu3 | Menu 4 | Menu 5
---------------------------------------------------------------------------------------------------------------


On Second Tab
---------------------------------------------------------------------------------------------------------------
Menu x | Menu Y | Meny Z
---------------------------------------------------------------------------------------------------------------

on tab click chagne tab and dispaly respective menu on screen. If user select Menu 1 then selected page will open inside tab


Princy
Top achievements
Rank 2
 answered on 29 Jul 2014
1 answer
110 views
It should a standard scenario but I could not find (or missed?) it neither in demos nor documentation.
Assume that there is a record edit form and one of the fields is displayed as an image. There is radAsyncUpload next to it. The task is to show a new image when it is uploaded before saving the record in db.
How to do it?
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?