Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hello,

I'm trying to bind a treeview to a list(of CustomClass) where the custom class has "StartTime" and "Group" properties.

Is there some way I could group (into a node hierarchy) by the date parts of the start time? So, at the top level would be "StartTime.Date", that would expand to show all values of "StartTime.Time" for that Date, then those would expand to show all values of "Group" for that start date and time - that kind of thing?

Thanks,

Mike
Bozhidar
Telerik team
 answered on 06 Mar 2012
4 answers
89 views
Hi, here's the situation:

I have an asp:FormView w/ its corresponding ObjectDataSource and a bunch of fields. One of these fields is a usercontrol which contains a RadGrid and an associated ObjectDataSource. On the backend, I'm using entity framework 4.1.

Let's say I'm display a project in the formview. This project has several clients. The RadGrid is displaying the clients associated to the project and their information.

I have a save button at the top of the page to save all the information when I am in edit mode on the formview. In addition, when the formview is in edit mode, the RadGrid is also in edit mode.

When I click on save, I call the FormView.UpdateItem method. This calls the updatemethod of the ObjectDataSource associated with the FormView, allowing me to save the data specified in the regular fields.

Now this does not allow me to save the information that is specified in the RadGrid.

I tried manually firing the Update command of the radgird, thinking it will call the UpdateMethod of the ObjectDataSource associated to it, but that didn't work.
I thought that a possible solution would be to add a Parameter of type "Object" to the Formview's ObjectDataSource, and then sending a datatable or similar in the ObjectDataSource_Updating event, but I'm not sure how efficient that is, or if it's the best solution (or if it's even possible).

So my question: Does anyone know how I can save the information in the RadGrid which is within the formview when I press the Save button?

Thank you.
Marin
Telerik team
 answered on 06 Mar 2012
4 answers
393 views
Hi,

Is it possible to open a RadContextMenu on RadButton left click only? I was only able to open the context menu with right click but not with left click.

Thanks in advance,
Michael Pinheiro
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 06 Mar 2012
3 answers
198 views
hi there,

i have a problem with radgrid pageIndexChanged. i have a combobox where allow user to select state. when user select state, the radgrid will display all the data of selected state. but, when user want to go to next page, the data on grid was not based on the previous selected. i'll try to do PageIndexChanged event but error appear which is
'RadGrid1_PageIndexChanged' is not a member of 'ASP.default_aspx'."

my code is like below:

aspx

<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" 
        DataSourceID="SqlDataSource1" GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" PageSize="15"
            ShowFooter="True" AllowPaging="True" OnPageIndexChanged = "RadGrid1_PageIndexChanged" >

vb.net

Private Sub RadGrid1_PageIndexChanged(sender As Object, e As Telerik.Web.UI.GridPageChangedEventArgs) Handles RadGrid1.PageIndexChanged
        RadGrid1.CurrentPageIndex = e.NewPageIndex

'bind data based on selected state
        Dim str As String = "select username, name, levelAccess, description, status from [user] inner join par_branch on par_branch.id =         [user].branchNo where id = '" & RadComboBox2.SelectedItem.Value & "'"
        SqlDataSource1.SelectCommand = str
        SqlDataSource1.DataBind()
        RadGrid1.DataBind()
        RadGrid1.Visible = True

actually i always faced the same error for others telerik components. what it is about? anyone can help me?  


thanks in advanced.. 
Tsvetina
Telerik team
 answered on 06 Mar 2012
1 answer
58 views
Hi,

We were asked to perform functional test using QTP on an internally developed application. Currently, we are facing difficult time with the content type for return page. QTP consultant told us the issue we are facing was due to the wrong content type in the return page from the Telerik controller used in the code.

We are using the AJAX controls and Telerik always return content type of text/javascript for page with mixture of html and javascript. Someone told us the the correct content type should be text/html for this scenario.  

Is this a bug of Telerik? What we should do in order to get the correct content type?

By
Frustrated QA
Rumen
Telerik team
 answered on 06 Mar 2012
1 answer
195 views
I remember a few releases ago I was able to get an "SQL" where clause from the filter criteria. Has this functionality been moved? I see the save settings option but I don't think my users will understand base64. I would love to be able to use the filter do generate custom reports.
Tsvetina
Telerik team
 answered on 06 Mar 2012
3 answers
277 views
Hi,
When trying to access my site I am getting the error below.
From what I can find it seems to be related to a Telerik version mismatch.

Following previous examples, they suggested I look for <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2007.2.1107.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
        validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2007.2.1107.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
        validate="false" />
in my web.config file although these two entries do not exist.
I tried adding them into my web.config file but it didn't make any difference.

Could someone please point me in the right direction?
I really need to get this site back up and running.

Thanks!
Shaun

Server Error in '/' Application.

Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2011.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190

[ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.UI, Version=2011.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11224200
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +76
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +11213378
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +185
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +551

[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI, Version=2011.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025

[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI, Version=2011.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11318198
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4348404
Shaun
Top achievements
Rank 1
 answered on 06 Mar 2012
11 answers
1.1K+ views
We upgraded to 4.0 and now none of our filtering works correctly.  I've set EnableLinqExpressions="false" on one page and solved the problems on that page/grid.  Will we have to through our whole app and add & set this tag to every grid or is there a work around????  Additionally, there now seems to be issues with Grid formatting and conflicts with css???  Any clues?  Thank you.
Tsvetina
Telerik team
 answered on 06 Mar 2012
1 answer
41 views
I have some buttons that update a database and I have them in an ajax panel. When a user clicks the button it inserts a value in the database and then returns to change the command argument from the button as well as the style associated with the button. Basically an on off button but the style is not changing after the update on a mobile device.

Are there any issues with the ajax panel being able to update the style on a mobile device?
Radoslav
Telerik team
 answered on 06 Mar 2012
1 answer
134 views
G'Day Guys,

When I try to type a field into the DataNavigateURLfields in the Configuration Manager it does not persist, yet it adds it to the source code. Makes it difficult to rely upon the Configuration Manager when values that it puts in the source code are not reflected in the Configuration Manager itself.  Even happens on a fresh project with one page and one RadGrid.

Here is a short YouTube clip to show what the problem is.

http://www.youtube.com/watch?v=H7i3Q2ckF-U&feature=youtu.be

Expand video to full size and it is viewable.

Cheers

Ian.
Marin
Telerik team
 answered on 06 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?