Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
474 views
RadEditor Changes HTML Element markup and Style attributes when using Text-Align

I've been beating my head against the wall for days only to find a potential bug in the editor.

Put simply - loading certain formatted html elements into the RadEditor content area...and then using any of the Built in Text-Alignment buttons on the RadEditor toolbar wipes out the formatting and/or changes your html markup.

And then the more you use the Text-Align feature the more div's get inserted each with a seperate style tag

I've only outlined what it does in FF, darn thing is...if you let FF change the markup from <p> to <div> then save the data and load into an instance of RadEditor ContentAreaMode="Div" in IE..the modifed markup changes breaks the interface.

I have a test project I can send that shows this behavior.

Please advise

Dan Thompson

Rambo the Dog
Top achievements
Rank 1
 answered on 05 Jul 2011
4 answers
118 views
My telerik gridview has 3 image button itemtemplates, when grid is loading with huge records it is taking much time to load but when those 3 buttons are made visible false there is no much time to load the grid with any number of records.

Suggest me how to overcome above one.

Advance Thanks.

   
Steve
Top achievements
Rank 1
 answered on 05 Jul 2011
0 answers
66 views
Hello!

You can use a format for the RadDateInput total hours to receive? For example: 124:30.

Below is the code I am currently using:

<telerik: RadDateInput ID = "RadDateInputHours" Width = "34px" runat = "server" MaxLength = "5" DateFormat = "HH:mm"
                                         DisplayDateFormat = "HH:mm">
</ telerik: RadDateInput>

Is it possible?
Raul
Top achievements
Rank 1
 asked on 05 Jul 2011
2 answers
104 views
I've created a class library for various custom controls that we use a lot, and it works great. I've gotten pretty comfortable designing the UI and all of that in pure code-behind. My latest control is an image rotator that grabs various information about each image from the EXIF data and displays it. I want to take it to the next level, so that the user can right-click on an image and click a menu item that pops up an edit window and change the EXIF data. I have each individual piece working, but I can't seem to get it to all go together. I have two thoughts on how I could accomplish this.

  1. Use a separate "page" for the edit window (use the NavigateUrl on the RadWindow) and pass the image name on the URL. This is how I would normally do it - use the image name from the querystring to populate the current data, let the user change it, refresh the control on close. The problem with this approach is that I'm completely stuck figuring out how to generate a complete ASP.NET web form entirely in a class - in other words, create a page with the .aspx.cs file and no .aspx file. I can't even seem to get any guidance from Google on this one! I tried to create a class called EditForm.cs that inherits from System.Web.UI.Page and generating the form dynamically, then adding an httpHandler to my web.config to map "editForm.axd" to that class. It all works, but the "page" comes up empty when you to go it. Even if you just go directly to the page (http://localhost/MyNamespace.EditForm.axd), it's completely empty.
  2. Use a ContentTemplate for the edit window instead. Unfortunately, this approach is nearly undocumented. When I click the RadMenu item, I can get the image name that the user clicked from javascript (by using OnClientItemClicked), but then there's no way to get that back to the RadWindow on the server side. So I tried setting a session variable in the ItemClick server-side event. I'd rather not have to post-back just to get the image name, but it is what it is. The problem with this approach is that I have no idea when to populate my RadWindow based on the data I have. The OnLoad event fires on the main page's Page_Load, so that's not an option. And there doesn't seem to be any kind of an OnShow type event server-side.

Is there an option I'm missing? Remember that all of this is getting compiled into a single class-library dll, so there are no designer files, no aspx files, etc. Pure code. Any guidance would be greatly appreciated!
ATS
Top achievements
Rank 1
 answered on 05 Jul 2011
1 answer
79 views
I'm testing demo version.
I need do this...

          menuString = null;

          menuString = menuString +
                       "<telerik:RadRibbonBar ID=\"RadRibbonBar1\" runat=\"server\" Style=\"width: 100%\" Skin=\"Vista\"" +
                       " SelectedTabIndex=\"0\">" +
                       "<telerik:RibbonBarGroup Text=\"Search\">" +
                       "<telerik:RibbonBarGroup EnableLauncher=\"true\" Width=\"100%\" Text=\"Document navigation\">" +
                       "<Items>" +
                       "<telerik:RibbonBarButton Size=\"Large\" Text=\"First\" ToolTip=\"First Document\" Width=\"50px\"" +
                       "ImageUrlLarge=\"Images/resultset_first.png\" />" +
                       "<telerik:RibbonBarButton Size=\"Large\" Text=\"Previous\" ToolTip=\"Previous Document\"" +
                       "Width=\"50px\" ImageUrlLarge=\"Images/resultset_previous.png\" />" +
                       "<telerik:RibbonBarButton Size=\"Large\" Text=\"Next\" ToolTip=\"Next Document\" Width=\"50px\"" +
                       "ImageUrlLarge=\"Images/resultset_next.png\" />" +
                       "</Items>" +
                       "</telerik:RibbonBarGroup>" +
                       "</telerik:RibbonBarGroup>" +
                       "</telerik:RadRibbonBar>";

    myDiv.innerHTML = menuString ;

MyDiv is a Div in page.aspx.

The problem is that RadRibbonBar doesn't show in page, but exist in code behind when see generate code of aspx.

What is the problem?
July
Top achievements
Rank 2
 answered on 05 Jul 2011
1 answer
99 views
Hi,

I'm currently developing a quite complex web application utilizing the Telerik RadControls ASP.NET AJAX (build 2010.3.1317.35) .

Everything is fine while I run my application on my Visual Studio 2010 Development Server or on a Windows Server 2003, but when migrating to a Windows Server 2008 R2 machine performance drops DRAMATICALLY. More precise: Whenever a postback is triggered there is a 4-5 second delay until the server responds, indepently on the complexity of the triggered code behind. I have already tried different machines, reinstalled the OS multiple times and still...

The OS installation is clean, nothing running except IIS. The Database runs on a independent server - connectivity to the database server isn't an issue here too.

Sebastian Kubsch
Top achievements
Rank 1
 answered on 05 Jul 2011
1 answer
125 views
Hi,

I am using Telerik RadRotator version 2009.3.1208.20.
I am using ScrollDirection property in user control like below code

<

 

telerik:RadRotator PauseOnMouseOver="false" ScrollDirection="Left"

 

 

ID="BannerRotator" runat="server" OnItemDataBound="BannerRotator_ItemDataBound"

 

 

OnClientLoad="onRotatorLoadHandler" >

 


but i want to set rotator's ScrollDirection inside javascript function client side.

Please provide solution for that.I have checked lot of forum post but did not get any proper example to set it.

Thanks,

Divya
Slav
Telerik team
 answered on 05 Jul 2011
1 answer
38 views
How to get rid of unnecessary space on the chart?
Giuseppe
Telerik team
 answered on 05 Jul 2011
1 answer
52 views
Hi All,

I've got a RadGrid inside a formview.  In the DataBound event of the formview I need to add the ItemDataBound event handler for the RadGrid.  I can find the grid just fine using the formview.FindControl method but once done I cannot see the event in the list of properties and methods for a RadGrid.  I was thinking that the below should work:

Dim uxRadGrid As Telerik.Web.UI.RadGrid = DirectCast(uxFormView.FindControl("uxRadGrid"), RadGrid)
uxRadGrid.ItemDataBound += New GridItemEventHandler(uxRadGrid_ItemDataBound)

From c# examples it appears to work but in VB.Net you can't access the event view uxRadGrid.ItemDataBound.  How do I work around this?  You can't even access the event when trying this outside of a formview.  

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 05 Jul 2011
9 answers
214 views
I have a NestedViewTemplate within a RadGrid.  Within the NestedViewTemplate I have two other Rad-grids showing data to the parent RadGrid.   I'm using a sqldatasource with storedprocedures to populate the data - both on the parent and the embedded grids.  The data is populating just fine for all grids.  However, when attempting to update the embedded grid, I get the error message:

Procedure or function 'x' has too many arguments specified.

I was already able to debug the parent sqldatasource becuase I received the same error.  I did so following another thread on the forum describing how to identify the sql parameters using the sqldatasource updating event to identify the parameters being passed to the data source as well as the names.  However, the Visual Studio 2005 code-behind page doesn't recognize the embedded sqldatasource events.  If I manually create it, I get a compile error.  How can I set up one to view the parameters being passed?
Pavlina
Telerik team
 answered on 05 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?