Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
131 views
I'm trying to get a ContextMenu to display the root items horizontally. Here's the code:
                           
<telerik:RadContextMenu ID="pageSelectMenu" runat="server" ClickToOpen="false" Flow="Horizontal" > 
    <Items> 
         <telerik:RadMenuItem Text="page1" ></telerik:RadMenuItem> 
         <telerik:RadMenuItem Text="page1b"></telerik:RadMenuItem> 
    </Items> 
</telerik:RadContextMenu>

When this gets displayed, the menu items are vertical. When I look at the rendered output, the ul for the menu has
class="rmActive rmVertical rmGroup rmLevel1"

What am I missing? The control version is 2008.3.1314.35
Princy
Top achievements
Rank 2
 answered on 16 Apr 2009
7 answers
296 views
I'm trying to use the RadDatePicker, but just after drag and drop the component I got a javascript error message (on Firefox's Errors Console):

Erro: missing : after property id
Arquivo-fonte: http://localhost:2279/DevelopmentWebsite/Modulos/Default.aspx#
Linha: 8, Coluna: 252
Código-fonte:
' de \'MMMM","ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","d/M/yyyy","H:mm","yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","MMMM\' de \'yyyy",,,"/",":",0],"_ViewRepeatableDays":{},"_ViewsHash":{ctl00_DefaultContent_~/M

Sorry for some non-english texts on the error.

My scenario is a little complex:

An Ajaxified RadTabStrip (with RadAjaxManager) loads controls into dinamically created PageViews . The DatePicker is in a form inside one of these Controls. The form has a RadAjaxPanel.

Notes:
  • EnablePageHeadUpdate="false doesn't solve the problem as said at the thread (http://www.telerik.com/community/forums/thread/b311D-begbae.aspx)
  • I'm using RadControls  for ASPNET AJAX Q1 2008
Is there any alternative solution for this issue?
Louis Meijer
Top achievements
Rank 1
 answered on 16 Apr 2009
1 answer
96 views
Hi all,

I have a display issue in IE when I add meta tag IE Page Transition
In fact, the tools like "BackColor" and "ForeColor" and other like them aren't correctly rendered.

Sample:
My page with those transitions :

 

<

 

meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Slide(Duration=.5, slideStyle=PUSH)" visible="false"/>

 

<

 

meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Slide(Duration=.5, slideStyle=PUSH)" visible="false"/>

 

 

 

and my RadEditor :

 

<

 

telerik:RadEditor ID="RadEditor1" runat="server" Width="100%" EditModes="Design" Height="180px" Skin="Telerik">

 

 

<Tools>

 

 

<telerik:EditorToolGroup>

 

 

<telerik:EditorTool Name="Cut" />

 

 

<telerik:EditorTool Name="Copy" />

 

 

<telerik:EditorTool Name="Paste" />

 

 

<telerik:EditorSeparator />

 

 

<telerik:EditorTool Name="ForeColor" />

 

 

<telerik:EditorTool Name="BackColor" />
<
telerik:EditorSeparator />

 

 

<telerik:EditorTool Name="FontName" />

 

 

<telerik:EditorTool Name="FontSize" />

 

 

</telerik:EditorToolGroup>

 

 

</Tools>

 

 

<Content>

 

 

</Content>

 

 

</telerik:RadEditor>

With this, I have 3 line of tools
first contain : 

 

<telerik:EditorTool Name="Cut" />

 

 

<telerik:EditorTool Name="Copy" />

 

 

<telerik:EditorTool Name="Paste" />

 

 

<telerik:EditorSeparator />

 

 

<telerik:EditorTool Name="ForeColor" />

second contain :
<telerik:EditorTool Name="BackColor" />

third contain :
<telerik:EditorSeparator />

 

 

<telerik:EditorTool Name="FontName" />

 

 

<telerik:EditorTool Name="FontSize" />

And if I remove the meta tag, all was correctly displayed.
How can I fix it, because i need page transitions for my project ?

Regards,
Gaël

PS : Sorry for my bad english ;)

Gaël
Top achievements
Rank 1
 answered on 16 Apr 2009
9 answers
394 views
Using RadControls for ASPNET AJAX Q1 2009, I have created a dynamic grid as per your examples.  It works fine, including grouping, except that clicking "Collapse Group" doesn't do anything.

TIA
Rob
Sebastian
Telerik team
 answered on 16 Apr 2009
1 answer
143 views

Using RAD EDITOR (RadControls_Q2_2007_SP1_dev):

When I paste this text into my rad editor:
目睹了中国在全球市场的日趋重要的地位,我们也通过协助美国企业建立和扩展在中国的业务紧紧地跟进这一进程。如今,通过与中国顶级律所及其知识产权公司结成战略联盟,Bullivant具备了更好地协助中国商业企业开拓美国市场的实力。

It displays the chinese text fine within my rad editor window after pasting. However when the content gets written out to SQL:

When I save the content to the SQL database, and retrieve the content, it becomes:
??????????????????????????????????????????????????????????????????...

I am using IIS/ASP.net 1.1
My web.config file begins with:
<?xml version="1.0" encoding="utf-8" ?>

I have made the following change to my web.config file:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"

 

 

 

responseHeaderEncoding="utf-8" enableBestFitResponseEncoding="false" />

 

 

 

I also set the following tags on my page which has the rad editor in use or inputting the field:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
and
<head>
...
<meta http-equiv="content-type" content="text/html; charset=utf-8">
...
</head>

The database column bieng used to store the rad editor value is of type NTEXT.

Please let me know how I can solve this problem.

Thank you.

Rumen
Telerik team
 answered on 16 Apr 2009
1 answer
98 views
Does a tool exist to convert declarative code into programmatic code for a RadGrid?

Declarative code is useful for quick prototyping, but then programmatic code is useful for creating assemblies and longer term maintenance of the code.

If such a conversion tool does not exist, then does Telerik have any plans to make such a tool available in the future? If so, any timeline for availability?

If not, then where is best collection of guidance on conversion?

I have found the following doc page:

http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html

Is there any other documentation that would be helpful in general, that would provide additional guidance, and that would speed conversion of declarative code to programmatic code for controls other than the RadGrid? 

Thanks!
Yavor
Telerik team
 answered on 16 Apr 2009
1 answer
235 views
I have a grid where I delete an Item through a callback.

Reason: I am using a custom confirmation box and if the user selects YES from the radwindow,

Method : I use a javascript function to do an ajaxrequest.

Issue: The item gets deleted however the grid doesn't rebind

Code:

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

        <script type="text/javascript" language="javascript">
            function 'confirmDelete() {
                try {
//opening a confirm box
         var oWnd = radopen("Confirm.aspx?prompt=Do you want to delete the selected item?", "ConfirmDelete");
                }
                catch (err) {
                }
                return false;
            }
            function ConfirmResponse(tag, value) {
                try {
//User selected YES
                    if (value == "Yes") {
                        confirmHandler(value);
                    }
                }
                catch (err) {
                }
            }
            function confirmHandler(arg) {
                try {
                    if (arg) {
                            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Delete");
                                                  }
                    }

                catch (err) {
                }
            }
        </script>

    </telerik: >


<SomeRadGrid>
<CommandItemTemplate>
<asp:LinkButton CssClass="CommandItemButton" ID="DeleteButton" OnClientClick='confirmDelete();'
                                    runat="server" Text="Delete" ></asp:LinkButton>
</CommandItemTemplate>
</SomeRadGrid>


    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager_OnAjaxRequest">
        <AjaxSettings>

//update....
          </AjaxSettings>
    </telerik:RadAjaxManager>



///////////////////////////////////////////
CODE BEHIND

/////////////////////////////////////////////

protected

void RadAjaxManager_OnAjaxRequest(object sender, AjaxRequestEventArgs e)

 

{

 

if (e.Argument.Equals("Delete"))

 

{

// Delete Item from SomeRadGrid

SomeRadGrid.Rebind(); // This looks like it is rebinding , it goes in to the need datasource and the item seems to be removed however Untill I hit refresh from the Grid It doesn't update the view

 

 

 

}

 

}

It looks like rebind doesn't update the view on 

I also tried this .......
            function RefreshGrid(ID) {

  setTimeout("RefreshGrid('<%= SomeRadGrid.ClientID %>')", 200);

                    var masterTable = $find(ID).get_masterTableView();
                    masterTable.rebind();
            }

This does rebind but I had to use a settimeout to slow it down so it doesn't rebind before the item is deleted. THis seems very unsafe and doesn't work in all cases like with more that 10 items.

Could you share a better approach.

AS a summary:

All I need is an ability to rebind after an ajaxrequest. I have to use a custom confirm box that will have to do an ajax request to delete an Item on the parent page, then i need to rebind.

Doing a radgrid.Rebind(); on the server in the onajaxrequestevent does rebind but the view does not change.

Thanx for the help!
Tsvetoslav
Telerik team
 answered on 16 Apr 2009
4 answers
1.0K+ views
Hi,

How can i set transparent modal window background color? I mean it will be modal but not gray background, it will be transparent as like before open radwindow.

Thanks in advance.

Fakhrul
Georgi Tunev
Telerik team
 answered on 16 Apr 2009
1 answer
197 views

I have a question regarding the Asp.Net Grid. 

* I do not use an ObjectDataSource.
* I return a List<entityObject> from the web service using the underlying database to do my paging.  I.e., I request pages one at a time, say 25 rows, each row populates an entityObject.
* As part of each query, I add an int column/property on the entityObject called TotalListCount that is populated immediately following the query and returned to the web page as an ordinary property (I know, its redundant, but simple.).
*  Here is the question:  Can I set a Grid property so that the Pager "thinks" the total row count in the datasource is TotalListCount (not 25)?

FYI, to do this with the built-in grid, I had to subclass the GridView and override the InitializePager() event handler to set the pagedDataSource.VirtualCount to my custom count (i.e. TotalListCount).  This works fine, but I am looking to the Telerik Grid to help with upcoming in-grid editing scenarios.

Thanks, dstelow

Shinu
Top achievements
Rank 2
 answered on 16 Apr 2009
1 answer
179 views
Hi guys,

I have two questions regarding the editor.

1. The "Apply Css class" dropdown has endless css classes from various css files used in the project it seems. They aren't useful for the regular user who is using the editor, so I want to get rid of them.

Something like this has no effect: editor.CssFiles.Clear()

2. I have specified a ContentAreaCssFile for the editor. It has the background property of the body set to white. Which works fine, until you enter preview mode. Then the editor defaults back to the body colour of the page instead, in this case, not the same colour. How would I go about overriding this behaviour?

Regards,
-DJ-
Rumen
Telerik team
 answered on 16 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?