Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
199 views
I have a scaffolding page with RadEditor user control. It does work 4 month age with a old version but after updating i get "Telerik is not defined" when this UC is open.

<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <sectionGroup name="system.web">
      <section name="sanitizer" requirePermission="false" type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
    </sectionGroup>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  </configSections>
  <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
  </appSettings>
  <system.web>
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" name=".ASPXFORMSAUTH" protection="All" path="/" timeout="2880" />
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
    <compilation targetFramework="4.5" debug="true">
      <assemblies>
        <add assembly="System.Web.Entity, 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.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <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.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
      <buildProviders>
        <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
      </buildProviders>
    </compilation>
    <membership defaultProvider="CustomizedProvider">
    </membership>
    <httpRuntime executionTimeout="420" targetFramework="4.5" maxRequestLength="10000" />
    <pages styleSheetTheme="" theme="" controlRenderingCompatibilityVersion="4.0" maintainScrollPositionOnPostBack="true">
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
    <webParts>
      <personalization>
        <providers>
          <remove name="AspNetSqlPersonalizationProvider" />
          <add connectionStringName="" name="AspNetSqlPersonalizationProvider" type="System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider" applicationName="/" />
        </providers>
        <authorization>
          <deny users="*" verbs="enterSharedScope" />
          <allow users="*" verbs="modifyState" />
        </authorization>
      </personalization>
    </webParts>
    <machineKey />
    <customErrors mode="Off" />
    <anonymousIdentification enabled="true" />
    <profile>
      <properties>
        <add name="LastClientUsed" type="System.String" allowAnonymous="true" />
      </properties>
    </profile>
    <sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
      <providers>
        <add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider" />
      </providers>
    </sanitizer>
    <httpHandlers>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
    </httpModules>
    <sessionState mode="StateServer" timeout="90" stateConnectionString="" stateNetworkTimeout="50" />
    <webServices>
      <protocols>
        <add name="HttpSoap" />
        <add name="HttpPost" />
        <add name="HttpGet" />
      </protocols>
    </webServices>
    <healthMonitoring enabled="true">
      <rules>
        <add provider="EmailProvider" name="All App Events" eventName="All Errors" />
      </rules>
    </healthMonitoring>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
    </modules>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <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=" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2014.3.1024.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="" />
      </requestFiltering>
    </security>
  </system.webServer>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="v11.0" />
      </parameters>
    </defaultConnectionFactory>
  </entityFramework>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.4.6.0" newVersion="1.4.6.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.1.0.3" newVersion="2.1.0.3" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>


I have tried so meny way to fix it but it doesn't work now.
Ianko
Telerik team
 answered on 12 Dec 2014
1 answer
157 views
Setting the ImageURL, then I get an error  "0x800a139e - JavaScript runtime error: SecurityError"

On this line,
this._initialStateData=e.getImageData(0,0,this.get_width(),this.get_height());

Coming out of ScriptResource.axd.


If I select to continue when the error is thrown it will display the image.  But it throws the error again when I try to do anything like alter the brightness for instance.
Vessy
Telerik team
 answered on 12 Dec 2014
5 answers
169 views
Howdy all!

I'm doing a major update on my project, and I hope someone can assist me with a problem I'm experiencing.

My project WAS VS 2010, Framework 3.5, Telerik 2013.2.611.35.  Now I'm moving it over to VS 2013, Framework 4.0, Telerik 2014.2.618.40.  My first pages (with text boxes and buttons, simple controls) work fine.  As soon as I hit a page with a grid though - a grid with several detail tables and an initial data source of String.Empty - I am getting the below error.

Looking at the Stack Trace, I was like 'Huh, get_Caption()'?  Went to my grid and sure enough, I'd never defined Caption.  So I defined it as Caption="" on the main table and all detail tables, and ran it again.  I got ANOTHER error of the same vein, but this time it was 'get_FilterExpression', so I formally disabled filtering.  Then I got ANOTHER error of the same vein on 'get_SortToolTip'.

My entire project is mostly grids of one flavor or another - many many many grids.  Am I going to have to define EVERYTHING on EVERY grid?  Did something go awry when I converted the project over using the wizard?  Is there something I'm missing that's new in say web.config or somewhere else?

Thanks all!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Offending URL: http://localhost:12345/GridPage.aspx Source: mscorlib Message: Could not load file or assembly 'Telerik.Web.UI.resources, Version=2014.2.618.40, Culture=en-US, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.
Stack trace:
 at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
 at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stackMark)
 at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
 at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
 at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
 at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
 at Telerik.Web.LocalizationProvider.EmbeddedResourceLocator.GetString(String resourceKey, CultureInfo culture)
 at Telerik.Web.LocalizationProvider.EmbeddedResourceLocator.GetString(String resourceKey)
 at Telerik.Web.LocalizationProvider.GetString(String resourceKey)
 at Telerik.Web.UI.GridStrings.GetString(String key)
 at Telerik.Web.UI.GridStrings.get_Caption()
 at Telerik.Web.UI.GridTableView.get_Caption()
 at Telerik.Web.UI.GridGroupPanel.CreateMainTable()
 at Telerik.Web.UI.GridGroupPanel.InitializeIn(RadGrid grid, Boolean FromViewState)
 at Telerik.Web.UI.RadGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
 at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
 at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
 at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
 at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
 at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
 at Telerik.Web.UI.RadGrid.DataBind()
 at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)
 at Telerik.Web.UI.RadGrid.OnLoad(EventArgs e)
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Control.LoadRecursive()
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Viktor Tachev
Telerik team
 answered on 12 Dec 2014
1 answer
96 views
Hi,

I am developing an add-in Outlook. I created a button on the ribbon. When I click on the button I show a From. In my From I added a WebBrowser. I load a url with the method WebBrowser.Navigate("myUrl"). In this website I have a <input type=file> which use AsyncUpload for upload a file. 
My question :  Can I upload automatically a file with WebBrowser without browsing ? Giving it the source file in argument ? Is there a function for this? 

Thank you in advance.
Plamen
Telerik team
 answered on 12 Dec 2014
1 answer
420 views
My Code was working fine ....all of a sudden I am getting the following error when I tried to Build the project today .

my project has telerik.web.ui added already and everything was fine

type or namespace name 'GridBatchEditingEventArgs' could not be found (are you missing a using directive or an assembly reference?) 


The type or namespace name 'DropDownListEventArgs' could not be found (are you missing a using directive or an assembly reference


Please advise on this
Konstantin Dikov
Telerik team
 answered on 12 Dec 2014
1 answer
435 views
I keep getting this error: "Cannot read property 'get_masterTableView' of null"  every time .
I bind the Pivot grid in my C# code behind file and it displays the data just fine in the PivotGrid.

Here is my ASP code:

<script type="text/javascript">

   <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" 
        ResolvedRenderMode="Classic"  OnCellCreated = "RadPivotGrid1_CellCreated" 
        OnCellDataBound = "RadPivotGrid1_CellDataBound" ViewStateMode="Enabled"    >
        
        <PagerStyle ChangePageSizeButtonToolTip="Change Page Size" PageSizeControlType="RadComboBox">
        </PagerStyle>
  


                  
        <Fields>
            
            <telerik:PivotGridRowField DataField="ANNEX_ID" UniqueName="column2">
            </telerik:PivotGridRowField>
            
            <telerik:PivotGridRowField DataField="CLIN_ID" UniqueName="column1">
            </telerik:PivotGridRowField>
            
            <telerik:PivotGridColumnField DataField="FY_CODE" UniqueName="column">
            </telerik:PivotGridColumnField>
            
            <telerik:PivotGridColumnField DataField="MOD" UniqueName="column4" 
                SortOrder="Descending">
            </telerik:PivotGridColumnField>
            <telerik:PivotGridAggregateField  
                DataField="FUNDING_AMOUNT" GrandTotalAggregateFormatString="" DataFormatString="{0:c}" 
                UniqueName="column5" CalculationExpression="" ZoneIndex="3">
                

                
<TotalFormat Level="0" Axis="Rows" TotalFunction="NoCalculation" SortOrder="Ascending"></TotalFormat>
                

                
            </telerik:PivotGridAggregateField>
        </Fields>

      

           
        <ClientSettings>
       
        </ClientSettings>

    function GridCellSelected(sender, args) {


        var columnName = args.get_column().get_uniqueName();

        var rowheader = args.get_gridDataItem().getDataKeyValue("[---------CLINS----------]");

        var row = args.get_gridDataItem().get_cell(columnName);

        var row_data = row.innerHTML;


        var cellInfo = rowheader.substring(0, 6) + "," + columnName + "##Data=  " + row_data + "!";


        var new_amount = window.prompt("Change Dollar amount: ", row_data);

        var result = PageMethods.Change_Funding_FROM_RadGrid(cellInfo, new_amount, onSucess, onError);


        function onSucess(result) {
            
            rload();           
            //alert(result + "-Click Blue Refresh Button to view Changes" + prev_value + "to" + new_amount);
            
            return;
           
        }

        function onError(result) {
            window.alert('ERROR [' + result);
        }

        function rload() {
       
            var tbl = $find("<%= RadPivotGrid1.ClientID%>") ;
            var master = tbl.get_masterTableView();
            master.rebind();
            location.reload();
           
        }

    }


    </script>


</asp:Content>







Konstantin Dikov
Telerik team
 answered on 12 Dec 2014
6 answers
186 views
Hi team,

I'm having trouble with the media player feature as it won't work on IE10. Every other browsers are fine (Chrome, Safari, FF) but IE10 shoot me an werror message.
Same one as the one I get when I load Telerik demo page here : http://demos.telerik.com/aspnet-ajax/media-player/examples/functionality/mediatypes/defaultcs.aspx

You'll see attache the screenshots of the error messages I'm getting. How could I / you fix this ?

Cheers,

Chris
Angel Petrov
Telerik team
 answered on 12 Dec 2014
3 answers
101 views
I have two usercontrols.
usercontrol1 uses a treeview, usercontrol2 uses a grid.
usercontrol2 should show the details of the selected item of usercontrol2

I hope to achieve this by setting the ControlParameter of the Datasource of usercontrol2

 <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:Paket %>"
        SelectCommand="SELECT * FROM [tLog] WHERE pPaketID=@pPaketID">
        <SelectParameters>
<asp:ControlParameter ControlID="ctl00$MainContent$PaketListe1$RadTreeList1" Type="Int64" Name="pPaketID" DefaultValue="0" PropertyName="SelectedValue" />
        </SelectParameters>
        </asp:SqlDataSource>

I get an error, stating that

DataBinding: Telerik.Web.UI.RadTreeList does not contain a property with the name 'SelectedValue'.


Have I done the wrong thing, made a stupid mistake or am I wanting the impossible?

thx

Gerhard
Gopi
Top achievements
Rank 2
 answered on 12 Dec 2014
3 answers
171 views
Hello.

I use a RadGrid(BatchMode) and attach grid script.


<telerik:RadGrid ID="grid1" runat="server" Width="100%" Height="165px" AutoGenerateColumns="False" Culture="ko-KR"GroupPanelPosition="Top" OnNeedDataSource="grid1_NeedDataSource" AllowMultiRowSelection="True">                    <ClientSettings>                        <Selecting AllowRowSelect="True"/>                        <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true"/>                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />                    </ClientSettings>                    <MasterTableView >                        <Columns>                            <telerik:GridClientSelectColumn DataType="System.Boolean"FilterControlAltText="Filter check column" HeaderText="Selection" UniqueName="check">                                <HeaderStyle HorizontalAlign="Center" Width="35px" />                                <ItemStyle HorizontalAlign="Center" />                            </telerik:GridClientSelectColumn>                            <telerik:GridBoundColumn DataField="itemcd" FilterControlAltText="Filter itemcd column" HeaderText="code" UniqueName="itemcd" >                                <ColumnValidationSettings>                                    <ModelErrorMessage Text="" />                                </ColumnValidationSettings>                                <HeaderStyle HorizontalAlign="Center" Width="70px" />                            </telerik:GridBoundColumn>                    </Columns> <ItemStyle Wrap="False"></ItemStyle>                     <HeaderStyle Wrap="True" />                </MasterTableView>            </telerik:RadGrid>







and grid batchUpdatecommand Event



protected void gridDetail_BatchEditCommand(object sender, GridBatchEditingEventArgs e)    {         // this processing is fire database procedure and get return value        string returnmessage = (new WEAU020()).UpdateDetail;                 if (returnmessage.Length > 0)        {            RadAjaxManager1.Alert(returnmessage);            return;                           }         gridDetail.Rebind();    }

in these situation, 

try to BatchEditUpdate, but data is not validation.(Db Check and return meesage)

and i display message to using AjaxManager1.Alert().

It is normally. but happen problem.
explain why problems...

No updated data is loss in grid because not valid(Database procedure check).
but grid has been loss not updated data because occur rebind

I searched document and refernece : http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/simple-vs-advanced/defaultcs.aspx



I checked a these point.
Right after Update/Delete/Insert command event handlers finish execution. You can cancel these operations handling the ItemCommand event and assigning false value to the Canceledproperty of the e event argument

in case batcheditMode , i know way that InsertCommand Event add script : e.Canceled = false;

but case batchEditUpdate event is not work e.Canceled = false;



Conclusion : How can i display a message In BatchEditCommand Event and not rebind?
(don't get a value in client-side why data is keep changing by other user)
Yoongu
Top achievements
Rank 1
 answered on 12 Dec 2014
2 answers
1.4K+ views
All,

I have seen this issue reported by other people, but I have never had an issue. Now, it seems, I do. I've tried just about everything I know to resolve it, but while I find the gird on the page, the method get_masterTableView() always returns null.

My scenario involves my wanting to asynchronously load many grids on a page. Loading them normally has been pretty slow, so I am looking at faster ways to get the page up. As grid data populates, the grid shows up. Here is one of my Grid definitions:

<telerik:RadGrid ID="MyAnimalCategories" runat="server" AllowPaging="True" AllowSorting="True"
                   AutoGenerateColumns="False" AutoGenerateEditColumn="False" CellSpacing="0" GridLines="None"
                   OnNeedDataSource="MyAnimalCategoriesNeedDataSource" PageSize="20" OnSelectedIndexChanged="MyAnimalCategoriesSelectedIndexChanged">
                    <ClientSettings EnablePostBackOnRowClick="true">                                   
                       <Selecting AllowRowSelect="true" />
                       <ClientEvents OnRowSelected="SetDeviceText" OnCommand="function(){}" />
                   </ClientSettings>
                   <MasterTableView ShowHeadersWhenNoRecords="true" ClientDataKeyNames="AnimalCategoryId" DataKeyNames="AnimalCategoryId"  TableLayout="Fixed">
                       <Columns>
                           <telerik:GridBoundColumn DataField="AnimalCategoryName" HeaderText="Animal Species" UniqueName="Category">
                               <ItemStyle Wrap="false" />
                               <HeaderStyle Wrap="false" />
                           </telerik:GridBoundColumn>
                           <telerik:GridTemplateColumn ItemStyle-Width="50px" AllowFiltering="false" ReadOnly="true"
                               HeaderText="Status">
                               <ItemTemplate>
                                   <%# Convert.ToBoolean(Eval("IsActive").ToString())? "Active":"Inactive" %>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                       </Columns>
                   </MasterTableView>
               </telerik:RadGrid>

Here is the script
<telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">
        <script type="text/javascript">
 
            function pageLoad(src, args) {
                var trainer = $('#<%= hdnTrainer.ClientID %>');
                var trainerId = trainer.val();
 
                PageMethod("LoadMySpecies", ["trainerId", trainerId], MySpecies, AjaxFailed);
                PageMethod("LoadMySubmissions", [], MySubmissions, AjaxFailed);
            }
 
            function PageMethod(fn, paramArray, successFn, errorFn) {
                var pagePath = window.location.pathname;
                //Create list of parameters in the form : {"paramName1":"paramValue1","paramName2":"paramValue2"}
                var paramList = '';
                if (paramArray.length > 0) {
                    for (var i = 0; i < paramArray.length; i += 2) {
                        if (paramList.length > 0)
                            paramList += ',';
                        paramList += '"' + paramArray[i] + '":"' + paramArray[i + 1] + '"';
                    }
                }
                paramList = '{' + paramList + '}';
 
                //Call the page method
                $.ajax({
                    type: "POST",
                    url: pagePath + "/" + fn,
                    contentType: "application/json; charset=utf-8",
                    data: paramList,
                    dataType: "json",
                    success: successFn,
                    error: errorFn
                });
            }
 
            function MySubmissions(result) {
                var grid =  $find("<%= MySubmissions.ClientID %>");
                var masterTable = grid.get_masterTableView();
                var data = eval(result.d);
 
                masterTable.set_dataSource(data);
                masterTable.dataBind();
            }
 
            function MySpecies(result) {
                var grid = $find('<%= MyAnimalCategories.ClientID %>');
                var masterTable = grid.get_masterTableView();
                var data = eval(result.d);
                masterTable.set_dataSource(data);
                masterTable.dataBind();
            }
 
            function AjaxFailed(result) {
                alert(result.statusText);
            }
        </script>
</telerik:RadCodeBlock>


The script, as I said, finds the grid just fine, but the methods in the object do not include the get_masterTableView().

Thanks for any insight!

Sean~

Robin
Top achievements
Rank 1
 answered on 11 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?