Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
163 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
295 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
73 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
173 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
246 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
204 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
9 answers
402 views
Hi,
I am using Rad Scheduler for booking a conference room. I have a scenario where user can book conference room for others as well. Now my question is

1. Does Telerik enables us to add control in the Appointment Insert form like a dropdown list to ask user wether he wants to get the room booked for him self or some one other ??
2. Except for Subject I would like to add some more details of the booking that are kept in separate columns in the Data Table such as Meeting Room Booked By, Booked For etc. Is it possible ??
3. The requests sent by users are then sent to the approver to approve, Deny, Or cancel requests. Is there any way to handle these administrative tasks using Scheduler UI ??


Awaiting responses.

Best Regards
Hammad Haneef Pasha



Peter
Telerik team
 answered on 02 Mar 2011
5 answers
188 views
Hi,

I need to control field values before a record is inserted or updated from a Radgrid using an EntityDataSource.

I want to do something as simple as setting the value of one field based on the value of another, and expected to see Radgrid events for OnInserting and OnUpdating (where logic could be used before the transaction is committed). With the traditional ASP GridView, this could be done on the OnUpdating event.

Thanks,
Dan
Dan
Top achievements
Rank 1
 answered on 02 Mar 2011
1 answer
65 views
Hi Experts, 

I have Rad-Scheduler component on my aspx page, i wrote the code for insert appointment and it is working fine for me. It saves the appointment into database and displays on rad-scheduler. However when I try to edit any appointment I am not getting updated values. Here is my code....

protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
string upd = e.ModifiedAppointment.Subject;
string org = e.Appointment.Subject;
}

Above both the case I am getting similar values.
Can any one tell me how to fix that.

Further more I am unable to select multiple timeslots from my mouse in rad-scheduler.

Thanks,
Mohsin
Veronica
Telerik team
 answered on 02 Mar 2011
1 answer
101 views
Hi team,
I do all the steps described in your site to create custom commands in the editor and it worked successfully, I create the editor in a user control and add this control to my page , its ok great .

I do the following scenario

  1. Add the editor in user control (say  UCtrl ) with the new custom button.
  2. Add two instance of the user control (Say UCtrl1,UCtrl2 ) in the same page.
  3. unfortunately when I click the custom command button in the editor in the first instance( UCtrl1 ) , the execution of the comand occurs in the second instance (UCtrl2)

 

Breifly the command executed in the last instance of control added to the page.

Is there any solution for this issues??

Tools and Technologies

ajax control for asp.net  version 9 Q3.
IE as web browser
windows 7 as an operating system
microsoft asp.net 3.5
sql server 2005 database
Dobromir
Telerik team
 answered on 02 Mar 2011
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?