Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
125 views
Hello,

The FormDecorator control is currently styling the CheckBox and CheckBoxList controls I have in a form (I actually have the style setting to all).  For some reason, for checkboxes, the text appears overtop the checkbox itself.  Don't know why this is happening, but it's consistent in the application.

Any ideas how to fix this?

Brian
Brian Mains
Top achievements
Rank 1
 answered on 05 Dec 2008
1 answer
81 views
Hi

I want to be able to change the code that is created when a user inserts a flash or media file but I am not too sure where to do this.  At the moment, it is only adding the <embed> tag and I wish to add the <object> tag and a flash player for the flash files.  The code behind for MediaManager.ascx/FlashManager.ascx is the .cs file but I can't find this on my computer.  Does anyone know where abouts it should be stored?  There are no .cs files for any of the .ascx files at all (which are stored in Controls and Dialog).

Thanks, Jo
Rumen
Telerik team
 answered on 05 Dec 2008
1 answer
160 views
Hi, I've been searching on the internet a solution for my problem but everything I found it seems that is not working. I have a radgrid that shows data from a database and I want to show a message with some of the data that is shown in the radgrid when I select a row from it.

Any help is welcome.

Thank you.
Veronica
Daniel
Telerik team
 answered on 05 Dec 2008
4 answers
181 views
Hi

I have a problem whereby I am applying a certain style to different rows on the RadGrid depending on a condition. (It's like outlook where an unread item is bold). I apply the style just after databinding like this (where I crossreference a couple of datatables)...

 

'bold unread items
For Each gd As Telerik.Web.UI.GridDataItem In gvDocumentListing.MasterTableView.Items
gd.Font.Bold =
True
For Each dr As DataRow In dtRead.Rows
If gd.Item("DocID").Text = dr.Item("DocID") Then
gd.Font.Bold = False
Exit For
End If
Next
Next

The problem is that it only works on the original page load, but if I sort the grid or move to a different page all the items appear with normal styling. I checked that it is running the formatting code but it's just not applying it after postback.

Any help would be appreciated.

Thanks
AndyL

AndyL
Top achievements
Rank 1
 answered on 05 Dec 2008
1 answer
149 views
Hi Everyone,

I got a problem in Rad Grid - 

Scenario: I have got a grid that displays 5-10 columns. In the same page I have provided user with checkboxes so that they can either hide or display the columns based on whether the checkboxes are selected or not. There is no problem hiding column but when displaying back the hidden column, I have to call rebind() method of radGrid to display the column back. Due to this, collasping feature is not working. All this is performed in PreRender method which is called everytime when the checkbox is ticked or unticked (auto postback = true for checkbox)

Please any sort of help is appreciated. 


Code snippet:
Protected Sub gridExpenditure_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gridExpenditure.PreRender
        Dim availalbleCols As New List(Of String)
        availalbleCols.Add("Business")
        availalbleCols.Add("Brand")
        availalbleCols.Add("ConsumerActivityName")
        availalbleCols.Add("ConsumerActivityID")
        availalbleCols.Add("Vendor")
        availalbleCols.Add("Supplier")
        availalbleCols.Add("Media")
        availalbleCols.Add("MarketingPlanName")
        availalbleCols.Add("Material")
        availalbleCols.Add("CostElement")

        Dim selectedCols As New List(Of String)
        Dim unSelectedCols As New List(Of String)
        Dim i As Integer
        For i = 0 To cbAvailableCols.Items.Count - 1
            If cbAvailableCols.Items(i).Selected = False Then
                unSelectedCols.Add(cbAvailableCols.Items(i).Value)
            Else
                selectedCols.Add(cbAvailableCols.Items(i).Value)
            End If
        Next
        'Set visible to false for missing Columns only
        If Not unSelectedCols.Count = 0 Then
            Dim gridCol As GridColumn
            For Each gridCol In gridExpenditure.MasterTableView.RenderColumns
                Dim colName As String
                For Each colName In unSelectedCols
                    If gridCol.UniqueName = colName Then
                        gridCol.Visible = False
                    End If
                Next
            Next
        End If

        'Set visible to true for rest of the columns
        If Not selectedCols.Count = 0 Then
            Dim gridCol As GridColumn
            For Each gridCol In gridExpenditure.MasterTableView.RenderColumns
                Dim colName As String
                For Each colName In selectedCols
                    If gridCol.UniqueName = colName Then
                        gridCol.Visible = True
                        'Calling rebind avoids collapse feature but it is needed when user wants to add column :(
                        'Need to fix this somehow...
                        gridExpenditure.Rebind()
                    End If
                Next
            Next
        End If

    End Sub



Thanks a lot.

Sincerely,
Milan G
Daniel
Telerik team
 answered on 05 Dec 2008
3 answers
187 views
Here is my code:
 Protected Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.InsertCommand
        Dim insertItem As GridEditableItem = e.Item
        Dim dic As New System.Collections.Hashtable()
        insertItem.ExtractValues(dic)

        'Data Stuff goes here

        RadGrid1.Rebind()
    End Sub

But when looking at dic("SerialNo") (defined as a string) it has a value of Nothing, and when I look at the other two values (DropDown Columns, bound to int fields) they are set to 1

What would cause this to come back with the null value? And no matter what options I select in the dropdowns, the values always come in as 1.  What am I missing?

Thanks,

Steve




Daniel
Telerik team
 answered on 05 Dec 2008
2 answers
188 views
I have installed the Radeditor Lite to my site,
It is now working fine in a webpart and as the enhanced rte for multiple line list items.

The site is a publishing site and I have followed the instuctions to replace the built in rich text editor but it does not work.

Here is my Layout aspx -->
<%@ Page language="C#"   Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,
Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePointWebControls" Namespace="Microsoft.SharePoint.WebControls"
Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls"
Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="PublishingNavigation" Namespace="Microsoft.SharePoint.Publishing.Navigation"
Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="radE" Namespace="Telerik.SharePoint.FieldEditor" Assembly="RadEditorSharePoint,
Version=4.5.3.0, culture=neutral, PublicKeyToken=1f131a624888eeed" %>
<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
 <SharePointWebControls:FieldValue id="PageTitle" FieldName="Title" runat="server"/>
</asp:Content>
<asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
<radE:RadHtmlField id="Content" FieldName="HTML_1" runat="server"></radE:RadHtmlField>
</asp:Content>

The preview pane shows an error saying:
Error Rendering Control - Content
Could not load file or assemply 'RadEditorSharePoint,
 Version=4.5.3.0, culture=neutral, PublicKeyToken=1f131a624888eeed' or one of its dependencies.
The system cannot find the file specified.

Can anyone help?
Stanimir
Telerik team
 answered on 05 Dec 2008
1 answer
199 views
Hi,

We are using version 4.5.4.0 for MOSS and just activated rad editor for list items. Now few list(not all) are giving error message:

Value cannot be null.
Parameter name: value

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.ArgumentNullException: Value cannot be null.
Parameter name: value

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:

 

[ArgumentNullException: Value cannot be null.

Parameter name: value]

   System.Collections.CollectionBase.OnValidate(Object value) +3635966

   Telerik.WebControls.RadEditorUtils.ToolbarCollection.OnValidate(Object value) +17

   System.Collections.CollectionBase.System.Collections.IList.Remove(Object value) +54

   Telerik.WebControls.RadEditorUtils.ToolbarCollection.Remove(Toolbar toolbar) +29

   Telerik.SharePoint.ListFieldEditor.RadHtmlListField.OnLoad(EventArgs e) +535

   System.Web.UI.Control.LoadRecursive() +66

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Control.LoadRecursive() +191

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604

 


If I change back to normal editor, everything works fine.

Br,

Simo
Stanimir
Telerik team
 answered on 05 Dec 2008
1 answer
85 views
Hello, We have a MOSS 2007 install and when we insert an image and submit when we review or edit the page all reference to the image is gone. Links work just fine. Ideas?
Stanimir
Telerik team
 answered on 05 Dec 2008
1 answer
100 views
Hi,

I have a section on my page, that is inside a panel.  I would like to pop this up inside a radwindow instead of opening a completley new page.

I know i could put the content in a new page and set the NavigateURL property but i want to avoid this if possible.

Does Radwindow not allow this behaviour?  i could possibly use Dock, but it doesnt exhibit same behaviour as radwindow.

The behaviour i am looking for is the same as ModalPopupExtender in AjaxControlToolkit, but i want to use RadWindow to keep styling consistent and minimize code changes to existing page.

Thanks.
Georgi Tunev
Telerik team
 answered on 05 Dec 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?