Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
297 views
Hi all,
I'm pretty terrible with css and it really drives me crazy. So I was wondering if anyone has adapted the Prometheus Outlook example to a fullscreen version?

I basically something performs almost identically to that example, but in fullscreen - ie, header along the top and the rest is functional area. I don't want the screen itself to have scrollbars when the content exceeds available real-estate... I want scrollbars in the individual panels.

Anyone successfully achieved this??

Cheers,
Daron
Dimo
Telerik team
 answered on 20 Oct 2009
2 answers
387 views
Hello,

I've got a problem with the viewstate object, when for example using a textbox within the xmlhttppanel.
I've read the following in the help documentation.

"Callback - When a client callback is used, the server Page does not go through its whole lifecycle, but only a small part of it. The client state is not updated, and it is not sent back to the client-side. When Callbacks are used, a POST request is made from the client to the server, and the values of all FORM fields, such as hidden fields (!including the view state field!) are sent to the server. When the view state is large, this could mean increased overhead. On the other hand, no extra files are needed to use this mode (unlike when using a WebService). "

However when the callback gets executed my pageload gets triggered, but I do not get the viewstate data.

What should I do to retrieve the data from the viewstate field?

kind regards,
Wim
Wim van der Linden
Top achievements
Rank 1
 answered on 20 Oct 2009
1 answer
93 views

Hello,
I posted a message in an existing thread but the thread is noticed as "Answered". I don't no if you check all threads or only the opened ones.

I try to personalize the point mark images of my Chart (server-side) but the modifications are not applied correctly (the default point mark icons are not replaced).
My code is based on a sample code that I found in another Thread:

protected void Page_Load(object sender, EventArgs e)       
{       
    RadChart2.BeforeLayout += new EventHandler<EventArgs>(RadChart2_BeforeLayout);       
}       
   
void RadChart2_BeforeLayout(object sender, EventArgs e)       
{       
    foreach (ChartSeriesItem item in RadChart2.Series[0].Items)       
    {       
        string imageUrl = "MyImage.jpg";       
   
        if(item.XValue > 5)       
            imageUrl = "MyImage2.jpg";       
   
        item.PointAppearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Image;       
        item.PointAppearance.FillStyle.FillSettings.BackgroundImage = imageUrl;       
    }       
}      

I try with different image format : PNG, JPG... but my point marks stay with the default images. I am sure that my URL is well-formed because I use it on other pages of my website without problems.

Thank you for your help.

Best regards,
Joël

Ves
Telerik team
 answered on 20 Oct 2009
0 answers
146 views
Hi,

        I have Telerik RadTabStrip control defined on UserControl. One of the tabs in RadTabStrip contains Ajax:ReorderList control. When i ran my application in IE 8, i was not able to reorder the items in ReorderList control. After searching for the issue in asp.net ajax forum, i got the solution to update my AjaxControlToolKit library to latest verion. Hence i updated my AjaxControlToolKit version to latest one (3.0.30930.28736) & now i am able to reorder the items in ReorderList control.

        Now the issue is, on updating AjaxControlToolKit to latest version, RadTabStrip does not work properly. On navigating between the tabs, it gives me html error of which the screen shot has been attached. This error occurs in both IE 7 & IE 8. All the tabs contain nothing except asp.net controls, ajax controls & telerik controls.

        Please help me with the solution ASAP as it is urgent fix required by the client.

Thanks,
Krishna Samaga B.
Krishna Samaga
Top achievements
Rank 1
 asked on 20 Oct 2009
1 answer
130 views
Hi,

I have a very strange problem with a nested splitter.
First I use a splitter to create a topPane and a contentPane.
Then the contentPane is split into a leftPane and rightPane.
The leftPane has a MinWidth of 300 and a MaxWidth of 800.
Scrolling of the parent pane is set to none.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SplitterTest.aspx.cs" Inherits="TestSite.SplitterTest" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
    <style type="text/css">  
        html, body, form   
        {  
            height: 100%;  
            margin: 0;  
            padding: 0;  
            overflow: hidden;  
            font: normal 14px/1.5em "Segoe UI", Arial, sans-serif;  
        }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" Orientation="Horizontal">  
            <telerik:RadPane ID="topPane" runat="server" Height="48px">  
                Header pane  
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" EnableResize="false" /> 
            <telerik:RadPane ID="contentPane" runat="server" Scrolling="None">  
                <telerik:RadSplitter ID="RadSplitter2" runat="server">  
                    <telerik:RadPane ID="leftPane" runat="server" Scrolling="None" 
                        MinWidth="300" MaxWidth="800" Width="500">  
                        Left pane  
                    </telerik:RadPane> 
                    <telerik:RadSplitBar ID="RadSplitBar2" runat="server" /> 
                    <telerik:RadPane ID="rightPane" runat="server" Scrolling="None">  
                        Right pane<br /> 
                        1a 1b 1c 1d 1e 1f 1g 1h 1i 1j 1k 1l 1m 1n 1o 1p 1q 1r 1s 1t 1u 1v 1w 1x 1y 1z   
                        2a 2b 2c 2d 2e 2f 2g 2h 2i 2j 2k 2l 2m 2n 2o 2p 2q 2r 2s 2t 2u 2v 2w 2x 2y 2z   
                        3a 3b 3c 3d 3e 3f 3g 3h 3i 3j 3k 3l 3m 3n 3o 3p 3q 3r 3s 3t 3u 3v 3w 3x 3y 3z   
                        4a 4b 4c 4d 4e 4f 4g 4h 4i 4j 4k 4l 4m 4n 4o 4p 4q 4r 4s 4t 4u 4v 4w 4x 4y 4z   
                        5a 5b 5c 5d 5e 5f 5g 5h 5i 5j 5k 5l 5m 5n 5o 5p 5q 5r 5s 5t 5u 5v 5w 5x 5y 5z   
                        6a 6b 6c 6d 6e 6f 6g 6h 6i 6j 6k 6l 6m 6n 6o 6p 6q 6r 6s 6t 6u 6v 6w 6x 6y 6z   
                        7a 7b 7c 7d 7e 7f 7g 7h 7i 7j 7k 7l 7m 7n 7o 7p 7q 7r 7s 7t 7u 7v 7w 7x 7y 7z  
                        8a 8b 8c 8d 8e 8f 8g 8h 8i 8j 8k 8l 8m 8n 8o 8p 8q 8r 8s 8t 8u 8v 8w 8x 8y 8z  
                        9a 9b 9c 9d 9e 9f 9g 9h 9i 9j 9k 9l 9m 9n 9o 9p 9q 9r 9s 9t 9u 9v 9w 9x 9y 9z  
                    </telerik:RadPane> 
                </telerik:RadSplitter> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
    </form> 
</body> 
</html> 
 

The strange behavior happens when I set the Width for the leftPane to 500. The text of the rightPane will extent outside visible range (some items of the sequence in the rightPane are not visible).
If I remove the Width property, or make the Width equal to MinWidth (300) all text is visible.
We want the left pane to have a initial Width of 500. How can this be done?

Using version 2009.2.701.35

Thanks,
Mark
Tsvetie
Telerik team
 answered on 20 Oct 2009
1 answer
88 views
In the current AJAX build (2009.2.826)

When using DateFormat if you only want the Month / Year after you make your first selection all others do not for an update.

Example
<telerik:RadDatePicker ID="rPubDate" runat="server" DateInput-DateFormat="MM/yyyy" />

The control only allows me to select the current month / year in this case "10/2009" any other date will not work. If I change the dateformat to MM/d/yyyy or MMM/yyyy it works fine.

 

Pavlina
Telerik team
 answered on 20 Oct 2009
1 answer
164 views
I've attached a (poorly) draw drawing to help explain what I'm asking in this post.

I'd like to have a RadGrid in the center of the page that dynamically shrinks and grows with the page in the container that it's it. So, if you look at the image, you can see the section where the RadGrid is in. It should own 100% of that container.

When the container shrinks, the RadGrid should just sprout scrollbars as needed, but the "Tasks" section and the header need to be fixed in size. So - as the width of the window changes, the RadGrid needs to get narrowed so that the Tasks section remains fixed in size. If it ever gets smaller that the columns it needs to show, a scrollbar should be shown.

 And, as the the window gets less tall (height descreases), the RadGrid needs to get smaller and similiarly show a scrollbar if neccessay.

Any ideas on how to accomplish this? An iframe?

Dimo
Telerik team
 answered on 20 Oct 2009
1 answer
143 views
I followed your example from the ASP.NET MVC upload page http://www.telerik.com/help/aspnet-ajax/mvc-using-upload.html, and while the upload works, I don't see any progress bar.  I tested a file almost 2 MB.

Is this capable in ASP.NET MVC?

Thanks.
Atanas Korchev
Telerik team
 answered on 20 Oct 2009
8 answers
268 views
Hi,

I've got a gridview with a couple of templated columns where I use the radcombobox at edit mode. Other columns are text boxes at edit time. The problem I have is that when in edit mode and I open the combo box to change a value (or even re click the same one), and then I click away to one of the text box columns in the grid then I get a script error in  the auto generated ScriptResource file.
I don't get the error if I click away to a non-edited cell and then click into the edit text box.

Error section in script file:

return

 

true;

 

},_applySelection:

function(){

 

if

 

(!this._isInVisibleContainer(this._textBoxElement)){

 

return

 

;

 

}

if

 

((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){

 

this

 

._textBoxElement.selectionStart=this._selectionStart;

 

this

 

._textBoxElement.selectionEnd=this._selectionEnd;

 

return

 

;

 

}

this

 

._textBoxElement.select();

 

sel=document.selection.createRange();  //ERROR IS ON THIS LINE

sel.collapse();

sel.moveStart(

"character",this._selectionStart);

 

sel.collapse();

sel.moveEnd(

"character",this._selectionEnd-this._selectionStart);

 

sel.select();

},_clearHiddenValue:

function(){

 

this

 

._hiddenElement.value="";

 

},_handleWheel:

function(_58){

 

},_setHiddenValue:

function(_59){

 

if

 

(this._hiddenElement.value!=_59.toString()){

 

this

 

._hiddenElement.value=_59;

 

}

this

 

._setValidationField(_59);

 

return

 

true;

 

},_setValidationField:

function(_5a){

 

},_updateHiddenValueOnKeyPress:

function(){

 

this

 

._updateHiddenValue();

 

},_updateHiddenValue:

function(){

 

if

 

(!this._textBoxElement.readOnly){

 

return

 

this._setHiddenValue(this._textBoxElement.value);

 

}

},_escapeNewLineChars:

function(_5b,_5c){

 

_5b=escape(_5b);

while

 

(_5b.indexOf("%0D%0A")!=-1){

 

_5b=_5b.replace(

"%0D%0A",_5c);


The Error : "Microsoft JScript runtime error: Unknown runtime error"

The dropdowns are using load on demand and virtual scrolling and all of that works fine providing I click away to a non editing cell before clicking to another editing control. The problem does not occur when the dropdowns are not opened and values are changed through using the keyboard up and down keys.
I've got no client side scripts running - all controls are created in code.

If I click away to another dropdown control (or even to the same one) the error is similar and it appears here:

 

function

 

(_f9,_fa){

 

 

 

if

 

(!this.get_enableTextSelection()){

 

 

 

return

 

;

 

}

 

 

if

 

((!this.get_enableLoadOnDemand())&&(this.get_readOnly())){

 

 

 

return

 

;

 

}

 

 

if

 

(this.get_inputDomElement().createTextRange){

 

 

 

var

 

_fb=this.get_inputDomElement().createTextRange();

 

 

 

if

 

(_f9==0&&_fa==0){

 

_fb.collapse(

true);

 

 

 

return

 

;

 

}

_fb.moveStart(

"character",_f9);

 

_fb.moveEnd(

"character",_fa);

 

_fb.select();                    //ERROR IS ON THIS LINE

}

else{

 

 

 

this

 

.get_inputDomElement().setSelectionRange(_f9,_f9+_fa);

 

}

},_childRemoving:

function(_fc){

 

 

 

var

 

_fd=_fc.get_index();

 

 

 

if

 

(this._itemData){

 

Array.remove(

this._itemData,this._itemData[_fd]);

 

}

Telerik.Web.UI.RadComboBox.callBaseMethod(

this,"_childRemoving",[_fc]);

 

},_childRemoved:

function(_fe,_ff){

 

 

 

var

 

_100=_fe.get_element();

 

 

 

if

 

(_fe==this.get_selectedItem()){

 

 

 

this

 

.set_selectedItem(null);

 

 

 

this

 

.set_highlightedItem(null);

 

 

 

this

 

.set_text("");

 

 


The Error: "htmlfile: Could not complete the operation due to error 800a025e"

I'm running Ie8 and I've tried running it in the compatibility mode but results were the same.
I'm using Visual Studio 2008 to create the web app.

Thanks for your help,

Jo

Taburetka Kekc
Top achievements
Rank 1
 answered on 20 Oct 2009
1 answer
107 views
Georgi Tunev
Telerik team
 answered on 20 Oct 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?