Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views
Hi forum!

I would like some brief explanation how can i work with the css sprite for the radmenu button images. Currently im doing an image for each button (main and sub) and each one ias abou 2 kb witch is very bad i think. I know how css prite works (basic) and i would like to grab a 1px width image and fill the background of the items (radmenuitems) since i cant call the background-image and back-ground-repeat.

Also, i would like to know what is better in terms of performance to a website, use background-image with background-repeat and put the text as image or use background-image with background-repeat and use the normal radmenu text property (my problem here is that i can't find the font i want that is Microsoft Sans Serif that i use in photoshop)

Many thanks,
FEST
FEST
Top achievements
Rank 1
 answered on 05 Aug 2011
6 answers
62 views
Hi,

When I ajaxify a control, the original background color of white becomes pale brownish color after it returns the result.

Is this normal?
STEVEN
Top achievements
Rank 1
 answered on 05 Aug 2011
2 answers
65 views
I have this working:
<
telerik:GridDropDownColumn 
DataField="epp_clientsid" 
DataSourceID="sdseppclients" 
HeaderText="EPP Client" 
ListValueField="epp_clientsid" 
ListTextField="name" 
DropDownControlType="RadComboBox" 
EmptyListItemText="&nbsp;" 
EnableEmptyListItem="true" 
EditFormColumnIndex="0" />

if i remove this line:
EmptyListItemText="&nbsp;"
or set the value to en empty string
the displayed text in the list is
&nbsp;
(or &amp;nbsp; in codeview)
i have this after update to "Telerik.Web.UI, v.2011.2.712.40 (Dev) [InstallFolder]"
any ideas, anyone?

Marcel



Marcel Härry
Top achievements
Rank 1
 answered on 05 Aug 2011
4 answers
106 views
Hi,

I'm using a radxmlhttppanel and I would like to know if there is a way to get the selected row index or selected row column value from the service request event?

Thanks,
Ron
Top achievements
Rank 1
 answered on 05 Aug 2011
4 answers
158 views
Hi All,

We are using the aspdotnetstorefront system which has a rad editor as part of its admin system for the saving content.

We have been supplied some javascript when we paste this into the editor and save it to the system, on it's return the javascript block has a lot of the line breaks and some white space removed.

When this is used on the front end of the site it doesn't work because of the new formatting given to the javascript.

I have added contentfilters, stripformattingonpaste and stripformattingoptions.

<tcontrol:RadEditor runat="server" AllowScripts="true" ContentFilters="None" StripFormattingOnPaste="NoneSupressCleanMessage" StripFormattingOptions="NoneSupressCleanMessage" RadControlsDir="rad" id="radDescription">

However these still allow the javascript to be condensed and on some of the settings it even goes as far as allowing the javascript to render dynamic content to the radeditor box.

Does anybody have any advice which they can share?

Many thanks,

Mark
Mark
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
83 views
Hai,

I am using Windows 7. Your support website is showing only black screens. Demos, Documentation and Knowledge Base are not working. It shows a javascript with blank screen.  I tried it in IE 8, Mozilla, Google Chrome, Opera. Its not working in any of these browsers. There is no firewall or any such security issues as no other websites have this issue. There is no javascript issues as javascripts in all other websites are working correctly. Also it is my development computer, I am sure that, there is no issue with javascripts in browsers as my own javascripts works properly.  It is the problem with telerik website itself. Please solve it at the earliest.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Tue, 2 Aug 2011 05:14:40 UTC

Message: 'Telerik.Web.UI.RadTreeView' is null or not an object
Line: 524
Char: 202
Code: 0
URI: http://www.telerik.com/help/aspnet/tabstrip/radtabstrip-telerik.webcontrols.radtabstrip-tabclick_ev.html

Message: 'null' is null or not an object
Line: 127
Char: 34
Code: 0
URI: http://www.telerik.com/help/aspnet/tabstrip/radtabstrip-telerik.webcontrols.radtabstrip-tabclick_ev.html

 

Yordan
Telerik team
 answered on 05 Aug 2011
1 answer
280 views
Hi Telerik,

I have a radfilter pointed to a radgrid, the columns of radgrid gets created dynamically.
i get error when i click on AddExpression

[ArgumentException: Parameter cannot be null or empty. Parameter name: fieldName] Telerik.Web.UI.RadFilterDataFieldEditorCollection.FindEditorForFieldName(String fieldName) +242 Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container) +61 Telerik.Web.UI.RadFilter.CreateFilterItems() +420 Telerik.Web.UI.RadFilter.CreateControlHierarchy() +65 System.Web.UI.Control.EnsureChildControls() +146 Telerik.Web.UI.RadFilter.AddChildExpression(RadFilterGroupExpressionItem groupItem, Boolean isGroup) +338 Telerik.Web.UI.RadFilterCommandEventArgs.ExecuteCommand(Object source) +173 Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args) +186 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70 Telerik.Web.UI.RadFilterExpressionItem.OnBubbleEvent(Object source, EventArgs args) +131 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981


 

<telerik:RadFilter runat="server" ID="RadFilter" 
                            ShowApplyButton="true" Visible="false" FilterContainerID="RadGrid"/>


<telerik:RadGrid ID="RadGrid" runat="server" GridLines="None" AllowAutomaticUpdates="True" OnColumnCreated="RadGrid_ColumnCreated"
                             ViewStateMode="Enabled" OnItemCommand="RadGrid_ItemCommand" OnItemDataBound="RadGrid_ItemDataBound" >             
                            <ExportSettings HideStructureColumns="true" />
                            <MasterTableView TableLayout="Fixed" RetrieveDataTypeFromFirstItem="true"
                                CommandItemDisplay="Top" >
                                <Columns>
                                    <telerik:GridTemplateColumn UniqueName="ImageFile" HeaderText="" Visible="false" >
                                        <ItemTemplate>
                                            <asp:Image ID="StatusImage" BorderWidth="0px" AlternateText="Status" runat="server"
                                                Visible="true" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" />
                                </Columns>
                                <CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>
                            </MasterTableView>
                            <ClientSettings>
                                <Selecting AllowRowSelect="True"></Selecting>
                                <Scrolling AllowScroll="false"></Scrolling>
                                <ClientMessages DragToGroupOrReorder="Drag to group" />
                            </ClientSettings>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            </HeaderContextMenu>
                        </telerik:RadGrid>

 

Princy
Top achievements
Rank 2
 answered on 05 Aug 2011
1 answer
73 views
I am using the RadTreeView in a asp.net form. I am trying to implement the ContextMenu on each node. The problem that I am having is that the ContextMenu does not display on right click

In my .ascx I define my RadTreeView and menu like this:
<telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True" OnNodeDrop="RadTreeView1_NodeDrop"
    OnNodeClick="RadTreeView1_NodeClick" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" AllowNodeEditing="true"
    OnNodeDataBound="RadTreeView1_NodeDataBound">
        <ContextMenus>
        <telerik:RadTreeViewContextMenu runat="server" ID="AssetMenu" ClickToOpen="True" Skin="Vista">
            <Items>
                <telerik:RadMenuItem Text="Select Asset" Value="Select">
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="View Hierarchy" Value="View">
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadTreeViewContextMenu>
    </ContextMenus>
</telerik:RadTreeView>

In my code behind, after I dynamically populate the RadtreeView, I try to attach the ContextMenu as follows. This is the last thing done in my Code behind:


            foreach (RadTreeNode node in RadTreeView1.GetAllNodes())
            {
                node.ContextMenuID = "AssetMenu";
                node.EnableContextMenu = true;
            }


Everything works except that the ContextMenu does not display when I right click an item.





Shinu
Top achievements
Rank 2
 answered on 05 Aug 2011
5 answers
159 views
Hi,

in appSettings my web.config has
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

which files should I include in page to make ImageEditor appear fully styled?
I have in head:

<telerik:RadStyleSheetManager ID="RadStyleSheetManager2" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.ImageEditor.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.ImageEditor.Default.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.ToolBar.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.ToolBar.Default.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Dock.css" Assembly="Telerik.Web.UI" />
            <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Default.Dock.Default.css" Assembly="Telerik.Web.UI" />
        </StyleSheets>
    </telerik:RadStyleSheetManager>

I don't see tool bar button images, no dialog button images, also some dialogs look a bit "unfinished".

Thank you!
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
183 views

Currently when I call ExtractValues it does not return the values for GridTemplateColumns.
The OnInsertCommand Event handler below shows the code I use to get values from a row in the grid.

Public Sub InsertTimesheetItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)
    Dim editableItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)
    Dim values As New Hashtable()
    editableItem.ExtractValues(values) 
End Sub

Below is one of the GridTemplateColumns that does not have its value returned.

<telerik:GridTemplateColumn HeaderText="Job" UniqueName="JobColumn" DataField="JOB_ID" ItemStyle-Width="50px"
    <ItemTemplate
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("Job_Description") %>' /> 
    </ItemTemplate
    <EditItemTemplate
        <telerik:RadComboBox runat="server" ID="JobList" DataTextField="Description" DataValueField="Value" Text="Job"
        </telerik:RadComboBox
    </EditItemTemplate
</telerik:GridTemplateColumn>

Note for this example I want to get the selected value from the combo box displayed in the Hashtable from the extract values method with a key of JOB_ID.

Any help would be much appreciated

Princy
Top achievements
Rank 2
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?