Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
We have:     
...
<
telerik:GridDropDownColumn DataField="ID_Firma" HeaderText="Firma"
            ListTextField="Nazwa" ListValueField="ID" UniqueName="ID_Firma" DataSourceID="FirmyDataSource" HeaderStyle-Width="480px"></telerik:GridDropDownColumn>
...
...
 
       protected void Page_Load(object sender, EventArgs e)
        {
            StanowiskaDlaFirmGrid.ItemCreated += new Telerik.Web.UI.GridItemEventHandler(StanowiskaDlaFirmGrid_ItemCreated);
        }
 
 
 
 
        void StanowiskaDlaFirmGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
           if (e.Item.OwnerTableView == StanowiskaDlaFirmGrid.MasterTableView && e.Item.IsInEditMode)
            {
                RadComboBox combo = (RadComboBox)e.Item.FindControl("RCB_ID_Firma");
 
                combo.HighlightTemplatedItems = true;
                combo.AllowCustomText = true;
                combo.EnableLoadOnDemand = true;
                combo.Width = Unit.Pixel(400);
 
            }
        }
 
...


But after key was pressed (any) all items are visible, not the filtered only... Could you help me? Or should I use GridTemplateColumn?
Lukasz Kalbarczyk
Top achievements
Rank 1
 answered on 02 Mar 2011
7 answers
307 views
Hi there,
I have a RadMenu with several menu items. I want to automatically close the menu when the user clicks a menu item, regardless the level of the menu item itself.
I have seen this post http://www.telerik.com/community/forums/aspnet-ajax/menu/closing-menu-in-onclientitemclicked-re-opens.aspx but it actually doesn't work: the menu is closed and then reopened. This is a serious issue for us when accessing our application on an iPad.
Can you tell me how to achieve this?
On a side note, why should I want a menu that stays open once I click on an item??? I am not able to think any use of this, nor I can think of an application that actually does this.
Before you ask, yes, I am suggesting to at least have a property that handles this, without reverting to custom code :-)

Luca
Yana
Telerik team
 answered on 02 Mar 2011
5 answers
81 views
Hi!

I was just wondering how many hours of development you've invested in the rad editor?
Rumen
Telerik team
 answered on 02 Mar 2011
3 answers
59 views

<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title>MS CRM SPLA Provisioning</title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>


Here is what I get.

As I have problems with compression, I need to understand why Telerik has chosen this setting.
Also trying to understand CDN and ASP.NET 4 new features....poor Telerik doc....
When I speak of this in the compression forum, nobody was knowing the effect and reason why ???
Could you expect the Pro/Cons ?
I suppose the team is the same for this forum so.....

Thanks.

CS


Erjan Gavalji
Telerik team
 answered on 02 Mar 2011
2 answers
185 views
Is there a property that I can set to show an alternative image when I hover over a GridButtonColumn control item when the ButtonType is set to ImageButton?

I guess I could add an ItemCreated handler in the code behind to handle this but I would have thought this functionality would be quite widely desired and hence built in to the control by now?

How about it Telerik? If it's not a feature yet, can this be considered a feature request?
Karl
Top achievements
Rank 1
 answered on 02 Mar 2011
1 answer
322 views
I do not want to use "CommandItemTemplate".
I want to add a only button on CommandItem.

My code:

<CommandItemSettings ShowExportToExcelButton=true  ExportToExcelImageUrl="~/App_Themes/SETheme/SESkin/Grid/MyImage.gif" />

<script type="text/javascript">
//<![CDATA[
function MyFunction() {
}
//]]>
</script>


protected void radGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
       {
           if (e.Item is GridCommandItem)
           {
               e.Item.FindControl("InitInsertButton").Visible = false;
                 
               LinkButton Export = e.Item.FindControl("ExportToExcelButton") as LinkButton;
               Export.OnClientClick = "javascript:ExportTxt(); return false;";
           }
       



My code is Ok ...but It's a workaround.
Is there a cleaner way?
Pavlina
Telerik team
 answered on 02 Mar 2011
1 answer
88 views
As I am new to Telerik controls I am hoping that you might be able to help me avoid some common missteps.  I have a web page which upon user selection dynamically loads 1 to "n" tabs.  Each tab may have a child set of tabs.  At the final level of tabs the pageview control has a grid control along with several other controls.

So far things appear to be working.  I have a page full of tabs and on each tab I have the required number of tabs and grids each populated with data.  As each of these controls are dynamic in nature I understand that I must recreate the child controls (not the tabs) on each post back.  I am currently doing this and things appears to survive postbacks now.

In my testing I notice that I seem to be repopulating each grid on each tab on every postback.  It would seem more efficient to only populate the currently selected tab.  How to do this eludes me.

Given the dynamic nature of my controls, I do not necessarily know the "ClientID" of the controls at design time.  This makes it rather hard to use $find to find a given grid control.  I am going to have to run some Client side events which given the selected tab, traverses the control collection on the associated PageView control, and finds the Grid Control located on the pageview.  If I knew the Control ID I know how to do this.  Given that I do not know the ID of the control, how to do this eludes me.  Pointers would be appreciated.

Finally I suspect I need to hookup my dynamic grids into the Ajax system.  How do I do this given their dynamic nature?

Thank you for any suggestions you might have.
Veronica
Telerik team
 answered on 02 Mar 2011
12 answers
194 views
Hello,

In my website the radupload button doesn't work in IE 6 and IE 7.
In IE 8, firefox, google chrome, etc.. is it working perfectly.

Can this be a security setting in IE 6 or IE 7 or is it something else?

Thanks in advance.

Greetz,
Joris
Trustteam
Top achievements
Rank 2
 answered on 02 Mar 2011
3 answers
285 views
Hi,

I am getting this error about 75% of the time when running my project in VS 2010.  This seems to be since upgrading to version 2010.2.929.40.  This is now getting in the way of speedy development and debugging.

The full error is:

[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() +585
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +76
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +1256
   Telerik.Web.UI.RadComboBox.PerformSelect() +37
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadComboBox.DataBind() +70
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
   Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +36
   Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +46
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   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.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

This could be an Entity Framework error, but seems to have started happening around the time of the upgrade.  Can you confirm for me whether it is EF or the RadComboBox?

Thanks.

Dan
Top achievements
Rank 1
 answered on 02 Mar 2011
2 answers
243 views
I am using Entity Framework 4.0 + EntityDataSource + RadGrid on my pages and I got
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() +75
   System.Data.Metadata.Edm.ObjectItemAssemblyLoader.Load() +42
   System.Data.Metadata.Edm.AssemblyCache.LoadAssembly(Assembly assembly, Boolean loadReferencedAssemblies, ObjectItemLoadingSessionData loadingData) +233
   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) +162
   System.Data.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(ObjectItemCollection objectItemCollection, Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +648
   System.Data.Metadata.Edm.ObjectItemCollection.ExplicitLoadFromAssembly(Assembly assembly, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +78
   System.Data.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +119
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +124
   System.Data.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) +39
   System.Web.UI.WebControls.EntityDataSourceView.ConstructContext() +1109
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +164
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +96
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +212
   Telerik.Web.UI.GridTableView.PerformSelect() +38
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +127
   Telerik.Web.UI.GridTableView.DataBind() +364
   Telerik.Web.UI.RadGrid.DataBind() +173
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +108
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +130
   System.Web.UI.Control.EnsureChildControls() +162
   Telerik.Web.UI.GridBaseDataList.get_Controls() +33
   Telerik.Web.UI.RadAjaxControl.PopulatePlainPanels(Control parent, List`1 list, Control root) +119
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1808
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +124
   System.Web.UI.Control.PreRenderRecursiveInternal() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4771
    
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

I spend a lot of time on google and I found this issue happens same time and no solution for that. But pages where I do not use EntityDataSource work fine. What is an alternative for EntityDataSource if I need to edit data in RadGrid?
Dan
Top achievements
Rank 1
 answered on 02 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?