Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
I have an RadAsyncUpload on a page which works fine. One of our customers have decided to have a page with jQuery Tools tab (demo here) and then have the RadAsyncUpload in the content of one of the tabs (which actually is plain divs). I tried this, but no matter what I do the RadAsyncUpload does not show. If I put it outside the jQuery tabs, it works as normal. Any one have a workaround for this?
Genady Sergeev
Telerik team
 answered on 22 Feb 2012
1 answer
98 views
I am using the latest versions of the Telerik controls.

I have an aspx page (customers) on which I have a data grid which has an edit form setup tied to a user control. This works fine and I can edit individual customer items in the grid using the usercontrol and I can also add new customer items using the command item event.

On that customer item user control I have another radgrid which shows products that custom bought and I want to add new products and edit existing products again using a user control.

I setup the grid and user controls but when I try and add a new product to the inner grid nothing happens.

Any ideas?
Andrey
Telerik team
 answered on 22 Feb 2012
3 answers
144 views
hi

I am not able to get the select value when settting for new appointment while your demo is able to do so. How should i go about it? Thanks

I have attach 2 screenshot.

Capture.jpg is my screenshot
Capture2.jpg is your working demo
Plamen
Telerik team
 answered on 22 Feb 2012
2 answers
60 views
HI,

I have been asked to upgrade a web application to RadControls ASP.NET AJAX Q3 2011 from Telerik ASP.NET Q3 2007  ( I know !!!!) . I am using a master page, dev language is c# and am targetting .net 4 framework.

I have ran the upgrade wizard and emoved all reference to previous Telerik versions,

Problem is I get the following error when launching master page "Using themed css files requires a header control on the page." ( I'm not using a themed css as far as I can see )....
When I add runat="server" to the master page I get the following error when I launch a page containing RadGrid "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."

so I am in a vicious circle !!!

I searched all forum but the answers always relate to .NET 2.0...

Any suggestions on this?

Thanks so much in advance,
John
John McNamara
Top achievements
Rank 1
 answered on 22 Feb 2012
0 answers
122 views
Hi all,
I am using the Entity Framework and everything is working fine. (According to this Demo)
Now I want to expand my application,  I want to change the radgrid's datasource when I click on a button I set in my form.
And of course it should be possible to edit/update the radgrid with the other datasource. (This should all be made in the codebehind)

Can somebody help me please?
Thanks,
esmyy
esmyy
Top achievements
Rank 1
 asked on 22 Feb 2012
12 answers
339 views

I was wondering if anyone has figured out the following

I have 4 items that have to be able to be refreshed from the Ajax manager control itself. 

 

<

telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

 

 

    <UpdatedControls>

 

 

        <telerik:AjaxUpdatedControl ControlID="pnlOrganizationMeta" />

 

 

        <telerik:AjaxUpdatedControl ControlID="pnlOrganizationList" />

 

 

        <telerik:AjaxUpdatedControl ControlID="pnlProjectList" />

 

 

        <telerik:AjaxUpdatedControl ControlID="pnlStakeholderList" />

 

 

     </UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

 

<

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

    <script type="text/javascript">

 

 

        function refreshGrid(arg) {

 

 

        if (arg != null) {

 

            $find(

"<%= RadAjaxManager1.ClientID %>").ajaxRequest(arg);

 

            }

        }

 

 

    </script>

 

 

</telerik:RadCodeBlock>

 

 


 I am using Javascript to get the results of a radwindow close event.  currently all of the items show the loading panel even though only one of them is actually being updated.  Is there any way I could dynamically choose which one is updated or at least only show the loading panel for that one.   With the older versions of the Telerik suite we would have multiple Ajax Managers on the page and control which one was updated depending on the argument passed to the Javascript.  With the new version you can only have one AjaxManager on the page.

Thanks

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

    <script type="text/javascript">

 

 

        function refreshGrid(arg) {

 

 

        if (arg != 'pnlOrganizationMeta') {

 

            $find(

"<%= RadAjaxManager1.ClientID %>").ajaxRequest(arg);

 

            }
        if (arg != 'pnlProjectList') {

 

            $find(

"<%= RadAjaxManager2.ClientID %>").ajaxRequest(arg);

 

            }

 

 

        }

 

 

    </script>

 

 

</telerik:RadCodeBlock>

 

 

 

Maria Ilieva
Telerik team
 answered on 22 Feb 2012
3 answers
99 views
Hi,

In our application we use the treeview to show parent/child records. Sometimes the trees will be filled with more than 1000 records and multiple levels. At one page the trees are loaded and hidden by a panel, when a button is pressed (or somewhat), the trees will be visible. The trees will switch between hidden/visible within one second without AJAX, but with AJAX about 20-30 seconds (no joke!!).

I can't reproduce this when run locally but it happens at our production servers (also tested at other servers). Users with very fast internet connection have this problems too.

We're using RadCompression, GZip and RadSessionState compression (10x smaller pages).

We've tried:
- Turning off all compressions (no effects)
- Hide panels with display: none instead of visible = false (no effects, bigger pagesize)
- Turning off AJAX (not bad performance)
- Tree load when requested (after button press)

We don't like to use Load On Demand because the most trees have many levels and heavy used.
All trees are bound with cached data, so not connected to databases.

It seems the most time are spent in AJAX call.

I hope you know this issue?
Bozhidar
Telerik team
 answered on 22 Feb 2012
1 answer
62 views
I just switched from 2011 Q3 to 2012 Q1 (2012.1.215.40) and the datapager on my main search page instantly became visible in both firefox and chrome. It used to be invisible, as I've done this:

<telerik:RadDataPager ID="uiDataPager1" runat="server" PagedControlID="uiSearchResults"
                                PageSize="10"
                                Visible='<%# Container.PageCount != 1%>'
                                >

The control is intended to be hidden when no results are found, i.e. PageCount != 1. This used to work. Now, the datapager is rendered as a gray box with this HTML

<div id="ctl00_MainContent_uiSearchResults_uiDataPager1" class="RadDataPager RadDataPager_Default">
                <input type="hidden" name="ctl00_MainContent_uiSearchResults_uiDataPager1_ClientState" id="ctl00_MainContent_uiSearchResults_uiDataPager1_ClientState" autocomplete="off">
            </div>

I would consider this to be a bug.

Any idea for a workaround until a fix is ready?


Best regards

Jan

Antonio Stoilkov
Telerik team
 answered on 22 Feb 2012
0 answers
95 views
Hi again,

I have 2 RadGrids - RadGrid1 and RadGrid2.
For RadGrid1 I have EnablePostbackOnRowClick = true and have handler functions for OnSelectedIndexChanged event and the OnRowSelect event. The first one is a function in CodeBehind file that gets datakey values of RadGrid1 -> Executes a parameterized SP -> Equates RadGrid2.DataSource to the DataTable returned -> calls RadGrid2.Rebind().

The setup works fine and I am able to populate RadGrid2 based on the row selection in RadGrid1. But, when I debug the application and check for the value of Page.IsPostBack, I get confused.

First time when application loads, Page.IsPostBack is false. When I select a row, value of Page.IsPostBack becomes true. But, when I keep on selecting rows again and again, then after 2-3 times, Page.IsPostBack value becomes false again. And this keeps happening periodically. Due to this inconsistency, the OnNeedDataSource handler function of both the grids are called. Due to this, I am not able to restrict my logic using IsPostback attribute.

Please help.

Regards,
Anup

Anup
Top achievements
Rank 1
 asked on 22 Feb 2012
1 answer
50 views
Hello,

I have the scheduler in one of my pages. It works great on my machine, I am able to add appointments to it with out a problem. After I publish it the first time I load the page it will usually display correctly. The second time it throws an error. Then the next day it seems fine for a while but eventually throws the error again just for loading the page. I am not sure what the problem is or why it is so temperamental. The base type of the page had to be changed to Telerik.Web.UI.RadAjaxPage because it is hosted on godaddy and runs in medium trust.

I thank you in advance for any insight you may have.

Below is the error:

Server Error in '/' Application.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
   System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
   System.Reflection.RuntimeModule.GetTypes() +4
   System.Reflection.Assembly.GetTypes() +78
   System.Data.Metadata.Edm.ObjectItemConventionAssemblyLoader.LoadTypesFromAssembly() +32
   System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +25
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +160
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, KnownAssembliesSet knownAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage, Object& loaderCookie, Dictionary`2& typesInLoading, List`1& errors) +166
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +316
   System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +53
   System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +93
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +130
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +572
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +77
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +160
   Telerik.Web.UI.SchedulerProviderBase.GetAppointments(ISchedulerInfo schedulerInfo) +27
   Telerik.Web.UI.RadScheduler.BindAppointments() +113
   Telerik.Web.UI.RadScheduler.PerformSelect() +97
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   Telerik.Web.UI.RadScheduler.EnsureDataBound() +12
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
   Telerik.Web.UI.RadScheduler.CreateChildControls() +10
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

Plamen
Telerik team
 answered on 22 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?