Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 views
Hi,

I am trying to resize my chart when the page load. Here is the code I have right now:

JavaScript:
$(document).ready(ResizeChart());
 
 
function ResizeChart()
{
    var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
    var arg1 = $(document).width();
    var arg2 = 305;
    ajaxManager.ajaxRequest(arg1 + "," + arg2);
}

VB:
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
    Dim argument As String = e.Argument
    Dim sArray As String() = argument.Split(",".ToCharArray())
    chartLabos.Width = CInt(sArray(0))
    chartLabos.Height = CInt(sArray(1))
End Sub

ResizeChart() is called on the onresize event on the Body and it works! But when it's called with the jQuery "$(document).ready" my variable ajaxManager is null, so I understand that the RadAjaxManager is not loaded at this time. How can I call ResizeChart() on the load of the RadChart? I can't find any ClientEvent for the RadChart.

Thanks.
Jocelyn
Top achievements
Rank 1
 answered on 16 Mar 2012
3 answers
63 views
Hi,

I have a radgrid inside a radwindow. And in my case, i need to set the width of the radwindow after the page loads.
Problem with this is, when the radwindow resizes, the grid also resizes. This is all fine except for the grid header.
It appears shrinked to the left and a white gap appears on the right. How do i solve this?

Regards,
Dexter

PS:This only happens in IE
Pavlina
Telerik team
 answered on 16 Mar 2012
1 answer
113 views
Dear sir,

Can I get Asp.net sample code for Scheduler control with data binding in cs file?
and Add new appointment, edit appointment and move appointment events in cs file.

I try to sortout the sample code, but not succeed.

If I need only Scheduler control still I have to purchase all telerik controls?
If I can purchase only Scheduler control then what will be charges?

Thanks
Rupesh
Plamen
Telerik team
 answered on 16 Mar 2012
1 answer
116 views
Hi, I'm having a problem with RadListView.
In my EditTemplate i have some validation Controls. When i submit data with invalid fields the validation occurs so everything is ok. The problem is when the fields are all validated and the data is submited. I get an error: Invalid JSON Primitive. Any clue?

Some extra info:
  - the ListView is in an UserControl loaded dynamically.
  - It works ok without the validation controls.

thanks in advance.
Fred
Top achievements
Rank 1
 answered on 16 Mar 2012
2 answers
144 views
I am using the RadSpell with an MVC web application. The buttons at the side and bottom are cut off in both IE and Firefox.  How can I change the width and height of the rad spell window?

Jillian
Top achievements
Rank 1
 answered on 16 Mar 2012
3 answers
222 views
Hi,
      I am getting the follwing error while exporting PDF file. I used the following formatted text in grid "Workers Compensation Information[binary]"  in one of the column.I assume the error mainly comes due to using non unicode character. So i would like to know how to avoid the following error and also how to replace the appropriate character symbols with matching text. Since i am using lot of symbol related characters it would be more helpful to me to track error.

My error message is:

Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
Reference to undeclared entity 'W'. Line 2004, position 75.
at line:
Louisiana Workers' Compensation Notice (B&W; English)<i>[binary]</i>

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: Telerik.Web.UI.Grid.Export.GridPdfExportException: Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
Reference to undeclared entity 'W'. Line 2004, position 75.
at line:
Louisiana Workers' Compensation Notice (B&W; English)<i>[binary]</i>


-Thanks

Daniel
Telerik team
 answered on 16 Mar 2012
1 answer
170 views

Team

I am using radcombobox in my application.

I am using it to implement search functionality. whenever we type something in combobox the resulting items is getting displayed in the combo list properly

& when result is not there it should display “no result found” & should give a link to a page which is used to add the items in that combobox.This I have added in the list of items .It is working.(attached is the screenshot for this requirement img.)

For this I am using OnItemsRequested event.

I have a requirement to show text of items in bold which I am typing in combobox. (attached is the screenshot for this requirement1 img.)
This feature is working when I set Filter ="Contains" but for displaying “no result found” & should give a link to a page which is used to add the items in that combobox requirement I can’t set this property. If I set this property it won’t show “no result found” & link .

I have tried to set it by <b> tab but it shows <b> tag as it is in item text.

Is there another way to show the combobox typed text part of items in bold?

Ivana
Telerik team
 answered on 16 Mar 2012
6 answers
130 views
Hello,

For some reason, in IE 7 and IE 9's version of IE 7 both cutoff the select button for the file upload.  Does anybody know why, or what I can do to identify the problem?  I've attached a picture.  It is the standard theme ( believe Office 2007).

Thanks.
Becky
Top achievements
Rank 1
 answered on 16 Mar 2012
11 answers
256 views
When my user opts to send Plain Text mail, I want to disable all of the toolbar buttons on the ribbonbar with the exception of the Spell Check and Help buttons.

My Tools file is defined like this ...
<?xml version="1.0" encoding="utf-8" ?>
<root>
    <tools name="Clipboard">
        <tool name="PasteStrip" size="large"/>
        <tool name="Cut" shortcut="CTRL+X" />
        <tool name="Copy" shortcut="CTRL+C"/>
    </tools>
    <tools name="Basic Text">
        <tool name="FontName" shortcut="CTRL+SHIFT+F"/>
        <tool name="RealFontSize" shortcut="CTRL+SHIFT+P" width="80px"/>
        <tool name="ConvertToLower" strip="FontDropDowns" />
        <tool name="ConvertToUpper" strip="FontDropDowns" />
        <tool name="Bold" strip="FontBasicTools" shortcut="CTRL+B"/>
        <tool name="Italic" strip="FontBasicTools" shortcut="CTRL+I"/>
        <tool name="Underline" strip="FontBasicTools" shortcut="CTRL+U"/>
        <tool name="ForeColor" strip="FontBasicTools"/>
        <tool name="BackColor" strip="FontBasicTools"/>
        <tool name="Indent" strip="Indention"/>
        <tool name="Outdent" strip="Indention"/>
        <tool name="JustifyLeft" strip="Align"/>
        <tool name="JustifyCenter" strip="Align"/>
        <tool name="JustifyRight" strip="Align"/>
        <tool name="InsertParagraph" shortcut="CTRL+M" strip="other"/>
        <tool name="ToggleTableBorder" strip="other"/>
    </tools>
    <tools name="Include">
        <tool name="LinkManager" shortcut="CTRL+K" strip="EditingTools3"/>
        <tool name="Unlink" shortcut="CTRL+SHIFT+K" strip="EditingTools3"/>
        <tool name="InsertUnorderedList" strip="Lists"/>
        <tool name="InsertOrderedList" strip="Lists"/>
        <tool name="InsertDate" />
        <tool name="InsertTime" />
        <tool name="InsertHorizontalRule" />
        <tool name="InsertTable" />
        <tool name="InsertSymbol"  />
    </tools>
    <tools name="Proofing">
        <tool name="AjaxSpellCheck" size="large" showtext="false"/>
    </tools>
    <tools name="Help">
        <tool name="Help" showtext="false" size="large"/>
    </tools>
</root>

So, I'm doing this ...
foreach (EditorToolGroup toolGroup in Editor.Tools)
{
    if (new List<string> { "Clipboard", "Basic Text", "Include" }.Contains(toolGroup.Tag))
    {
        foreach (EditorToolBase tool in toolGroup.Tools)
        {
            if (tool is EditorTool)
            {
                (tool as EditorTool).Enabled = isHtmlMail;
            }
        }
    }
}
This doesn't work.

Well, none of the tools are disabled except RealFontSize and InsertSymbol and event then, the highligh still appears when you haver over InsertSymbol, it just does nothing when you click on it.

--
Stuart



Rumen
Telerik team
 answered on 16 Mar 2012
1 answer
47 views

we are using hierarchical grid of two level and having one details table and one master table and  master table  have less number of column compare to column of details table grid ..and i have face formatting problem when try to export record from nested grid..you can see screen shot of problem..please help me ????????????????????????????????

Daniel
Telerik team
 answered on 16 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?