Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
85 views
code here:
<telerik:PanelBar ID="PanelBar1" runat="server" ExpandMode="SingleExpandedItem">
    <Items>
        <telerik:RadPanelItem runat="server" Text="Root1" ID="Root1">
            <Items>
                <telerik:RadPanelItem runat="server" Text="Child1OfRoot1"></telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child2OfRoot1"></telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child3OfRoot1"></telerik:RadPanelItem>
            </items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem runat="server" Text="Root2" ID="Root2">
            <Items>
                <telerik:RadPanelItem runat="server" Text="Child1OfRoot2"></telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child2OfRoot2"></telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child3OfRoot2"></telerik:RadPanelItem>
            </items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem runat="server" ID="Root3" Text="ExternalLink" NavigateUrl=http://www.google.com" Target="_blank">
        </telerik:RadPanelItem>
    </items>
</telerik:PanelBar>

1, clicking on header item of Root1, child items of Root1 expanded, ok.
2, clicking on header item of "Root3", a new window opens, that's ok.
3, clicking on header item of "Root2", child items of Root2 expaned, ok
but  wait...
do you noticed that Root1 not collapsed?
how can I do ? help.
 
Paul
Telerik team
 answered on 13 Jan 2009
5 answers
132 views
Hello,
I have 3 RadDocks, each has a RadEditor.
After I drag any of the docks to the middle of the page. Or after I make a font change. The editor goes blank.
Here's the actual page: http://67.199.68.133/vista.aspx

<telerik:RadDockLayout ID="RadDockLayout1" runat="server"
        StoreLayoutInViewState="True">
        <div  style="width:100%">
            <div class="dleft">
                <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="600px"
                    Width="300px" BackColor="#FFFFCC" BorderColor="#00CC66" BorderWidth="1px"
                    BorderStyle="Solid" Skin="Hay">
                    <telerik:RadDock ID="RadDock1" runat="server" Width="300px" Height="90px"  Resizable="true"
                        Text="Gone with the wind"  Title="Event Name" DockHandle="Grip">
                                 <ContentTemplate>
                         <telerik:RadEditor ID="RadEditor1" ToolsFile="BasicTools.xml" Height="99%" Width="99%"
                            runat="server" EditModes="Design" ToolbarMode="PageTop" >
                            </telerik:RadEditor>
                                 </ContentTemplate>
                    </telerik:RadDock>
                    <telerik:RadDock ID="RadDock2" runat="server" Width="300px" Height="90px" Resizable="true"
                        Text="March 17, 2009" Title="Event Date" DockHandle="Grip">
                        <ContentTemplate>
                            <telerik:RadEditor ID="RadEditor2" ToolsFile="BasicTools.xml" Height="99%" Width="99%"
                            runat="server" EditModes="Design" ToolbarMode="PageTop" >
                            </telerik:RadEditor>
                        </ContentTemplate>
                    </telerik:RadDock>
                     <telerik:RadDock ID="RadDock3" runat="server" Width="300px" Height="90px"  Resizable="true"  
                       Title="Event Time" dockhandle="Grip">
                                 <ContentTemplate>
                                 <telerik:RadEditor ID="RadEditor3" ToolsFile="BasicTools.xml" Height="99%" Width="99%"
                            runat="server" EditModes="Design" ToolbarMode="PageTop" >
                            </telerik:RadEditor>
                                 </ContentTemplate>
                    </telerik:RadDock>
                </telerik:RadDockZone>
            </div>
            <div class="dright" >
              
                <br style="clear:both" />
                <div class="dropArea">
                
                </div>
            </div>
        </div>
    </telerik:RadDockLayout>
Nikolay Raykov
Telerik team
 answered on 13 Jan 2009
1 answer
131 views
If I'm on a page and using the RADeditor and writing a text which takes me longer than let's say 6 minutes, and I then try to post the Form, I get following error.

Can anyone help me out?


 

Server Error in '/' Application.

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

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.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

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.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
   System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +289
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +140

[ViewStateException: Invalid viewstate. 
	Client IP: 78.20.176.47
	Port: 53967
	User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2; .NET CLR 3.5.21022)
	ViewState: /wEPDwUKLTYyMTI1NjE2Mw9kFgJmD2QWAmYPZBYCAgMPZBYEAgkPD2QWAh4Jb25rZXlkb3duBbEBaWYoZXZlbnQud2hpY2ggfHwgZXZlbnQua2V5Q29kZSl7aWYgKChldmVudC53aGljaCA9PSAxMykgfHwgKGV2ZW50LmtleUNvZGUgPT0gMTMpKSB7ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2N0bDAwX2N0bDAwX2J0blNlYXJjaCcpLmNsaWNrKCk7cmV0dXJuIGZhbHNlO319IGVsc2Uge3JldHVybiB0cnVlfTsgZAIRD2QWAgIBD2QWAgIDDzwrAAoBAA8WBB4LXyFEYXRhQm91bmRnHgtfIUl0ZW1Db3VudAIBZBYCZg9kFgZmDw8WAh4HVmlzaWJsZWhkZAIBD2QWAmYPZBYCAhUPPCsAFgQADxYEHgdDb250ZW50BeQCPGgyPkhpc3RvcmllayB2YW4gaGV0IFN0ZXVucHVudDwvaDI+DQo8cD5IZXQgU3RldW5wdW50IE9uZGVybmVtZW4gZW4gSW50ZXJuYXRpb25hYWwgT25kZXJuZW1lbiBpcyBkZSB2b29ydHpldHRpbmcgdmFuIFNUT09JLCBTdGV1bnB1bnQgdm9vciBPbmRlcm5lbWVyc2NoYXAsIE9uZGVybmVtaW5nZW4gZW4gSW5ub3ZhdGllIGRhdCBhY3RpZWYgd2FzIHZhbiAyMDAxIHRvdCAyMDA2LiBBbGxlIHN0dWRpZXMsIHdvcmtpbmcgcGFwZXJzIGVuIGJvZWtlbiBkaWUgdGlqZGVucyB...]

[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
   System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +242
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
   System.Web.UI.HiddenFieldPageStatePersister.Load() +207
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
   System.Web.UI.Page.LoadAllState() +43
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.content_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Nikolay Raykov
Telerik team
 answered on 13 Jan 2009
2 answers
102 views
hi ,
       how can i do  mouse over pop up in my tree view  like this demo ....(  http://demos.telerik.com/crmsample/  )   ...its very urgent help  any one ........thank you
Ravi
Top achievements
Rank 2
 answered on 13 Jan 2009
1 answer
149 views
I was wondering if it is possible to instantiate and instance of the RadEditor within the browser.  We have a very client-centric AJAX application that doesn't rely on the web server to generate the html that will be rendered in the client.  All the web server does is sends\retrieves raw data as well as serves up JS and XSLT files.  It is within these XSLT files that the html is defined.  Within some of these html layouts, we are using textarea tags to capture content and now would like to convert these to use a rich text editor.  I was wondering if it is possible to use the RadEditor in this situation since the server would not be able to render the html for the declarative syntax.

Thanks in advance,
Eric
Nikolay Raykov
Telerik team
 answered on 13 Jan 2009
8 answers
263 views
I have a class implementing ITemplate for the rad rotator (inside a user control).  The InstantiateIn method is called and all of the controls are created fine.  However, the Databinding events in the implemented ITemplate class don't fire:

[code]

<

telerik:RadRotator ID="radRotateNews" runat="server"

 

 

Skin="Vista"

 

 

ScrollDuration="3000" FrameDuration="2000" RotatorType="FromCode"

 

 

Width="470px" Height="312px" CssClass="RadRotator_Default"

 

 

AppendDataBoundItems="true" >

 

</

telerik:RadRotator>

 



protected

void Page_Load(object sender, EventArgs e)

 

{

 

 

if (!IsPostBack)

 

{

 

DataTable dt = GetScreens();

 

radRotateNews.DataSource = dt;

CreateNewsScreens(dt);

radRotateNews.DataBind();

}

}


protected

void CreateScreens(DataTable dt)

 

{

 

if (dt.Rows.Count > 0)

 

{

 

for (int i = 0; i < dt.Rows.Count; i++)

 

{

 

string screenType = dt.Rows[i]["ScreenTypeDesc"].ToString();
RadRotatorItem newsScreen = new RadRotatorItem();

 

newsScreen.ItemTemplate =

new NewsRotatorTemplate(screenType, dt.Rows.Count);

 

radRotateNews.Items.Add(newsScreen);

}

}

 

else

 

{

 

//show a default screen/image

 

}

}



public

class NewsRotatorTemplate : ITemplate

 

{

 

private string templateType;

 

 

private int numberScreens;

 

 


public
NewsRotatorTemplate(string screenType, int noScreens)

 

{

 

//

 

 

// TODO: Add constructor logic here

 

 

//

 

 

this.templateType = screenType;

 

 

this.numberScreens = noScreens;
}

 

 

public void InstantiateIn(Control container)

 

{

....
Label

lblScreenNo = new Label();

 

lblScreenNo.ID =

"lblScreenNo" + screenNo;

 

lblScreenNo.DataBinding +=

new EventHandler(lblScreenNo_DataBinding);

 

container.Controls.Add(lblScreenNo);

....
}

 

void

lblScreenNo_DataBinding(object sender, EventArgs e)

 

{

 

Label lblScreenNo = (Label)sender;

 

 

RadRotatorItem container = (RadRotatorItem)lblScreenNo.NamingContainer;

 

 

string fieldValue = DataBinder.Eval(container.DataItem, "ScreenNo").ToString();

 

lblScreenNo.Text = fieldValue;

}


[/code]

Any ideas?

Georgi Tunev
Telerik team
 answered on 13 Jan 2009
13 answers
534 views
Using the new Q1 2008 release of radControls for ASP.NET AJAX, I've installed the "standard" version of the Telerik.Web.UI.dll in the toolbox, and it's fine.

But I'd like to try the ASP.NET 3.5 version of radControls, especially radGrid, and the question is do I need to uninstall the toolbox items in VS2008, and reinstall using the dll in the Bin35 directory?

Thanks for any help, Steve
Pavel
Telerik team
 answered on 13 Jan 2009
4 answers
328 views
Hi,
    How to export tree view data to an excel sheet ?

Regards
Manoj
Atanas Korchev
Telerik team
 answered on 13 Jan 2009
1 answer
137 views
Hi All,

I have taken a RadDateTimePicker control. I want to select time for evry minute.
But it was showing 1 hr interval.

How i will be able to select.


Regards
Brijendra Pandey
Daniel
Telerik team
 answered on 13 Jan 2009
1 answer
127 views
HI
   I'd like have DetailTable(s) of  others  Collapse  when i Expand a new DetailTable,then i wonder if there is any property to control this.
thanks

Shinu
Top achievements
Rank 2
 answered on 13 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?