Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
I am using the radedit and want to give access to a folder for images.

<telerik:radeditor id="htmlView" runat="server" skin="Hay" Width="100%" Height="350px" AutoResizeHeight="true" backcolor="White" OnClientLoad="OnClientLoad"   ToolbarMode="Default" EnableResize="false" ToolsFile="~/App_Data/NewTools.xml"  EditModes="All" OnClientCommandExecuting="OnClientCommandExecuting">

And I have added the ImageManager Tag as follows:

      <ImageManager ViewPaths="c:\,c:\temp"
       </ImageManager>

When I click to add an image it gives me the following error:
'c:\' is not a valid virtual path.

Can I ONLY have virtual directories? If I want to open files in c:\ or MyDocuments directory in the local computer, how can i do it?

Please let me know.
thanks
Dobromir
Telerik team
 answered on 12 Jan 2010
1 answer
59 views
I've tried

<

 

telerik:EditorTool name="PasteOptions" />

 

 but it does not work. I'm looking to get the options there Paste, Paste From Word, Paste from Word, strip font, Paste Plain Text, Paste As Html
Thanks.
Dobromir
Telerik team
 answered on 12 Jan 2010
7 answers
131 views
I'm wondering if there is any way to customize the properties for Images within the RadEditor.

Currently if I insert an image, and then right click on it and select "Properties", there are some generic properties like description, dimensions, etc

What I'd like to be able to do is add a checkbox and a couple textboxes to the properties.

[  ] Enable Lightbox
[                 ] Lightbox Group

If the checkbox is checked, then I would change
<img src="myfile.jpg" /> 

to something like
<href="myfile.jpg" rel="lightbox[GROUPNAME]"><img src="myfile.jpg" /></a


Is this something that can be built quite easily?
Dobromir
Telerik team
 answered on 12 Jan 2010
3 answers
183 views
Hello, Telerik! I am using SlideShow mode to change showed photo. I would like that previous photo is faded before next photo will appear, and next photo also would have fade effect when showing.
But I found that fade effect is not used when previous photo disappears. I tried Pulse effect, without effect (is it useful?). Is there some solution for the case?
Fiko
Telerik team
 answered on 12 Jan 2010
3 answers
132 views
Hello,

Here is my grid.

<Telerik:RadGrid ID="gridLists" runat="server" AutoGenerateColumns="False" GridLines="None" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">  
                <MasterTableView>  
                    <Columns>  
                        .  
                        .  
                        .  
                        .  
                        .  
                        <Telerik:GridButtonColumn HeaderText="Edit" CommandName="ListEdit" Text="Edit" UniqueName="EditColumn"></telerik:GridButtonColumn>  
                        <Telerik:GridButtonColumn HeaderText="Delete" CommandName="ListDelete" Text="Delete" UniqueName="DeteleColumn"></telerik:GridButtonColumn>  
                    </Columns>  
                    <NoRecordsTemplate>You have not selected any lists.</NoRecordsTemplate>  
                      
                </MasterTableView>  
                </Telerik:RadGrid> 


As you can see i've two button columns to perform my custom operations.

First i added the event handler in the codebehind like this.

gridLists.ItemCommand +=new GridCommandEventHandler(gridLists_ItemCommand);

But the event dint get fired. So i removed the line from the code behind and added this in the aspx to the grid.

OnItemCommand="gridLists_ItemCommand" 

Now i get the following error.

"c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\MPP.CalendarPro\Pages\MPP.CalendarPro.Settings.aspx(498): error CS0117: 'ASP._layouts_mpp_calendarpro_pages_mpp_calendarpro_settings_aspx' does not contain a definition for 'gridLists_ItemCommand'   at System.Web.Compilation.AssemblyBuilder.Compile() ...."

Note : I'm working in the SharePoint environment.

So what's the problem? Any ideas?

NLV
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
121 views
I had a problem with checkbox  in a repeater under RadAjaxManager, I tried to tick a checkbox and debug to see whether checkbox has been checked however , the checkbox state always return checked = false. Anyone has same problem, please advice me a solution.

Thank you.
Iana Tsolova
Telerik team
 answered on 12 Jan 2010
3 answers
190 views
I need to dynamically create RAD Combo Boxes and databind them at runtime. I have a template which consists of a checkbox and a label that holds the "text" of the combo box. Here is the template definition:

    class GroupTopicTemplate : ITemplate 
    { 
        public void InstantiateIn(Control container) 
        { 
            HtmlGenericControl div = new HtmlGenericControl("div"); 
            CheckBox chkSelected = new CheckBox(); 
            chkSelected.ID = "chkSelected"
            int rowNumber = int.Parse(container.Parent.ClientID.Substring(container.Parent.ClientID.Length - 1)) + 1; 
            chkSelected.Attributes.Add("onclick""onCheckBoxClick(" + rowNumber.ToString() + ")"); 
            div.Controls.Add(chkSelected); 
            Label lblName = new Label(); 
            lblName.Text = "Text"
            lblName.DataBinding += new EventHandler(lblName_DataBinding); 
            lblName.ID = "lblName"
            container.Controls.Add(div); 
        } 
 
        void lblName_DataBinding(object sender, EventArgs e) 
        { 
            Label target = (Label)sender; 
            RadComboBoxItem item = (RadComboBoxItem)target.BindingContainer; 
            string itemText = (string)DataBinder.Eval(item, "Text"); 
            target.Text = itemText; 
        } 
    } 

The combo box is created in Page_Init as follows:
        RadComboBox rcGroupTopics = new RadComboBox(); 
        rcGroupTopics.ID = "rcGroupTopics" + rowString; 
        rcGroupTopics.EmptyMessage = "None"
        rcGroupTopics.HighlightTemplatedItems = true
        rcGroupTopics.AllowCustomText = true
        rcGroupTopics.Skin = "WebBlue"
        rcGroupTopics.ItemTemplate = new GroupTopicTemplate(); 
        td.Controls.Add(rcGroupTopics); 

The combo box is populated as follows:
DataView dv = new DataView(dt); 
 
dv.Sort = "name"
 
TopicDropDownList.DataSource = dv; 
TopicDropDownList.DataTextField = "name"
TopicDropDownList.DataValueField = "tagname"
TopicDropDownList.DataBind() 

I tried to put the above code in Page_Init (below the above code) and in Page_Load. The problem is, InstantiateIn() is not called until DataBind(), so the data binding event handler is attached too late and the label has no text. Is there a way around this?

Thanks in advance,
Boris Zakharin
Yana
Telerik team
 answered on 12 Jan 2010
3 answers
146 views
Hi,

I am having an issue with how the text centre tool behaves in IE. To reproduce:

1)  Paste the following text into an editor

This text should not centre
This text should centre

2) Highlight "This text should centre"

3) Click the text centre tool

In Chrome it behaves as expected and centre's "This text should centre" but not "This text should not centre". However, in IE bot lines are centered.

Any suggestions?

Rumen
Telerik team
 answered on 12 Jan 2010
2 answers
83 views
hi please find attached the grid.

please help me to sort out this grouping functionality, where june 2009 is a item in the grid and is not a grouping allias.

i seen grouping demo
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/expressions/defaultcs.aspx
i hope that doenst works here, and i didnt understand "two fields should not be the same" condition here.

please help in this
Tsvetoslav
Telerik team
 answered on 12 Jan 2010
5 answers
1.4K+ views
I want to get client-side information of OS user name , machine name , and IP address
I'm able to get IP address only
guide me how to get OS user name and machine name from client-side
Dimo
Telerik team
 answered on 12 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?