Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
116 views
Hi-

I am upgrading to RadControls AJAX from the non-AJAX version, and I find I can't display a non-selectable invitation (e.g. "Select from the following) any more for the RadComboBox.  In the previous version, I did this:

RadComboBoxItem editItem = new RadComboBoxItem("Select a Country...", "" ) {Visible = falseEnabled = false}; 

However, in the current version this doesn't work, and I see that using an "EmptyMessage" requires that I have "AllowCustomText" set to true, which I don't want in this case.

The reason I want it is because it is a control which does an autopostback---if I have one of the items preselected in it, it won't post back.

Thanks!

-Mike
Simon
Telerik team
 answered on 28 Nov 2008
1 answer
247 views
Hi Guys,

We're currently upgrading our implementation of the Classic RadComboBox to the Ajax version, however after trying to assign the combobox SelectedIndex and Text properties with the below code we get the above error message.

cmbCats.SelectedIndex = cmbCats.FindItemIndexByValue(

value.NewsCategoryID.ToString());

 

cmbCats.Text = cmbCats.SelectedItem.Text;

We're using a List as the datasource object and if the above code is omitted the error is avoided, but obviously the correct item isn't selected.

I hope this is enough information to help you diagnose the problem.

Thanks,
Gavin.

Simon
Telerik team
 answered on 28 Nov 2008
3 answers
562 views
HI,
    I am having RadGrid where column of RadGrid created dynamically(through programing in NeedDataDource Event). Also "Allow Sorting" of  RadGrid is True. I also set true to "Allow Sorting" of each "GridBoundColumn" during creation in code behaind.
I am also using "needdatasource" event to set datasource of grid. But SortCommand event is not firing when i click on the column header.

Can you please let me know if these is any constrain.
Iana Tsolova
Telerik team
 answered on 28 Nov 2008
1 answer
99 views
All

I'm using a Telerik RadWindow to pop out from my main page, add some new data, close the RadWindow and postback the main page updating a gridview I just added data to

using this code

 

function GetRadWindow()

 

{

 

var oWindow = null;

 

 

if (window.radWindow) oWindow = window.radWindow;

 

 

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;return oWindow;

 

}

 

function CloseAndReload()

 

{

 

var oWnd = GetRadWindow().BrowserWindow;

 

oWnd.location.href = oWnd.location.href;

}


simple enough

when the main page reloads, its does not render correctly, just over half the page is fine but on thre other half, the controls become unusable

It seems that 1 panel in particular is causing the problem and if I make that panel invisible, the page works fine

any ideas
Svetlina Anati
Telerik team
 answered on 28 Nov 2008
1 answer
190 views
Hi,

We are trying to implement an expand / collapse functionality for all docks at a dockzone. Using the client objects set_collapased function we are able to collapse the docks successfully but we are unable to expand back the docks. The documentation says we can use set_collapsed with a false parameter to expand docks, but it doesn't work. Pl help

Here is the client script we implemented:

 

function ExpandCollapseAllInZone(zoneId, expanded)

 

{

 

var zone = $find("<%= radDockingZone.ClientID %>");

 

 

if (zone) {

 

 

var docks = zone.get_docks();

 

 

for (var i in docks) {

 

 

if (expanded == 'true') {

 

//attempt to expand all the docks
//#####################the following statement does not work##################
docks[i].set_collapsed(

'false');

 

}

 

else {

 

//attempt to collapse all the docks
//#####################this statement works##################
docks[i].set_collapsed(

'true');

 

}

docks[dock].updateClientState();

 

}

 

 

}

}

Petko
Telerik team
 answered on 28 Nov 2008
1 answer
190 views
I have implemented the javascript to set the focus to the content area of the radeditor (latest release/build). However the cursor gets inserted at the very first position. so if there is text preloaded in the editor the cursor is before the text and the user cannot simply start typing with re-positioning the cursor. Is there a way to get the cursor to go to the end of any content when setting the focus?

Stanimir
Telerik team
 answered on 28 Nov 2008
1 answer
59 views
I'm getting the infamous "Web.config registration missing!" error. But it can't be the configuration because it runs in another place. I created a page that just had the RadEditor and got that working correctly with spell. Then I removed the design component and add it dynamically which is how its being done in the main body of the system (along with a lot of other controls). And it works fine in the standalone page (which is using the same master page as the one that fails). Yet still the main one pops up the registration missing error when you try to spell check. Any clues?

This running in VS 2008 on XP SP2

This is all the code I have to create the editor.

        Telerik.Web.UI.RadEditor newTextBoxFull = new Telerik.Web.UI.RadEditor();
        newTextBoxFull.ToolsFile = "~/config/tools.xml";
        newTextBoxFull.ID = "txtBox_TestRadEditor";
        newTextBoxFull.Content = "This is some text <b>which</b> will get displayed for editing;";
        pnlEditor.Controls.Add(newTextBoxFull);





Nikolay Raykov
Telerik team
 answered on 28 Nov 2008
6 answers
119 views
Hi,

I'm trying to build a navigation control for Sharepoint using RadMenu. It almost works, in that the menu appears on screen, but the problem I'm having is that the submenus don't open.
I looked at the HTML source and the submenus have been rendered, but the menu control just won't display them when I rollover.

I've attached my code below. Any help would be much appreciated!

<%

@ Control Language="vb" AutoEventWireup="false" CodeBehind="MOSS_InternetTopMenu.ascx.vb" Inherits="MOSS_InternetSideMenu.MOSS_InternetTopMenu" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<

telerik:RadMenu ID="topMenu" Runat="server">

 

</

telerik:RadMenu>

 



Imports

Microsoft.SharePoint

 

Imports

Microsoft.SharePoint.WebControls

 

Imports

Microsoft.SharePoint.WebPartPages

 

Imports

Microsoft.SharePoint.Publishing.Navigation

 

Imports

PublishingWeb = Microsoft.SharePoint.Publishing.PublishingWeb

 

Imports

PublishingWebCollection = Microsoft.SharePoint.Publishing.PublishingWebCollection

 

Imports

SPWebTemplate = Microsoft.SharePoint.SPWebTemplate

 

Imports

Microsoft.SharePoint.Publishing

 

Imports

Telerik.Web.UI

 

Partial

Public Class MOSS_InternetTopMenu

 

 

Inherits System.Web.UI.UserControl

 

 


Private
currentSite As SPSite

 

 

Private currentWebRoot As SPWeb

 

 


Protected
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

    If Not IsPostBack Then

 

        currentSite = SPContext.Current.Site

        currentWebRoot = SPContext.Current.Site.RootWeb

 

        If HttpContext.Current.User.Identity.IsAuthenticated = False Then

 

            SPSecurity.RunWithElevatedPrivileges(

AddressOf Me.PopulateMenu)

 

 

        End If

 

 

    End If

 

 

End Sub

 

 


Private
Sub PopulateMenu()

 

 

    Try

 

 

        Dim elevatedSiteColl As SPSite

 

 

        Dim elevatedWebRoot As SPWeb

 

        elevatedSiteColl =

New SPSite(currentSite.ID)

 

        elevatedWebRoot = elevatedSiteColl.OpenWeb(currentWebRoot.ID)

 

        Dim rootWeb = PublishingWeb.GetPublishingWeb(elevatedWebRoot)

 

 

        Dim defaultPageUrl As String = rootWeb.DefaultPage.ServerRelativeUrl

 

 

        Dim smnHome As PortalListItemSiteMapNode = DirectCast(PortalSiteMapProvider.CombinedNavSiteMapProvider.FindSiteMapNode(defaultPageUrl), PortalListItemSiteMapNode)

 

 

        
        For
Each smnTopLevelItem As SiteMapNode In smnHome.ParentNode.ChildNodes

 

 

            Dim NewMenuItem As New RadMenuItem

 

            NewMenuItem.Text = smnTopLevelItem.Title

            NewMenuItem.NavigateUrl = smnTopLevelItem.Url

            topMenu.Items.Add(NewMenuItem)

 

            If smnTopLevelItem.HasChildNodes Then

 

 

                For Each smnChildItem As SiteMapNode In smnTopLevelItem.ChildNodes

 

 

                    Dim NewChildItem As New RadMenuItem

 

                    NewChildItem.Text = smnChildItem.Title

                    NewChildItem.NavigateUrl = smnChildItem.Url

                    NewMenuItem.Items.Add(NewChildItem)

 

                Next

 

 

            End If

 

 

        Next

 

 

    Catch ex As Exception

 

 

    End Try

 

 

End Sub

 

End

Class

 

Atanas Korchev
Telerik team
 answered on 28 Nov 2008
1 answer
105 views
Good Day.

I have a very weird rendering issue that I was hoping that you could help me with. I have just updated to the newest version of the Telerik radGrid (11/25/08). The problem presents itself as a jitter on an ajax postback where the gridview becomes about 10 pixels wider and then returns to normal. This only occurs if the gridview doesn't have to render the scrollbar becuase of a small number of items returned and on pages that use nested tables for layout.  It causes the entire page to move to one side and then back again for a split second. 

I was also going through the Page Source code looking for css conflicts and noticed that the second div in the gridview had this class:

DIV class="RadGrid RadGrid_WebBlue"

I was wondering if this could cause this rendering anomaly?

Thanks.
Dimo
Telerik team
 answered on 28 Nov 2008
1 answer
55 views
Hi,

I have configured to use RAD Editor for Enhance Rich Text field in List Item in Sharepoint 2007. The Flash Manager appeared in the Toolbars. I have inserted a flash file into the field after that save this content. But unfortunately, the field just can save the text content only and can't save the Flash content i have added.

Would Telerik Experts help me to deal with this problem?

By the way, the Flash Manager works correctly in Rad Content Editor Web-part for Moss 2007.

Thanks
Cong


Lini
Telerik team
 answered on 28 Nov 2008
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?