Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
184 views
I'm encountering problems using the RadEditor in .NET 2.0 websites.  I'm running into the problem in the following 2 areas:
1)  Using the RadEditor inside a user control (created in .NET 2.0) that is being used by sitefinity community edition 3.5.
2)  Using RadEditor inside an aspx page inside a .NET 2.0 test website that was created from scratch solely to test the RadEditor

In the first scenario, the rad editor renders, loads the toolbar, etc.  Everything looks good except that you cannot type inside the content area, switch between the Design, HTML, and Preview (the buttons don't do anything), or use any of the toolbar buttons.  Clicking on the toolbar buttons just sends me to the top of the page and does nothing.  Additionally, text that is hand typed into the Content property does not show up when viewed through the Sitefinity site.  By looking at the source code, it appears that the <Content> tag is not being output at all.  As one last piece of info, there is a little blue dot in the top left of every button loaded on the toolbar.

In the second scenario, I cannot get anything more than an outline of the RadEditor to be displayed.  Typing does not work and there are no buttons at all that are visible.  I have already installed AJAX 1.0, and am sure that I am using the .20 version of the RadEditor from the \Bin directory (not \Bin35).  I have tried this using both the AJAX 1.0 Script Manager and the RadScriptManager.  I'm sure that this is just a setup problem, in either the properties, the web.config file, or something similar, but am not sure what at this point. 

FWIW, the RadEditor works properly in the sample applications and any 3.5 test sites that I build.

Unfortunately, I am a Telerik, and even AJAX noob, and am under a tight deadline so I could really use some help.
Georgi
Telerik team
 answered on 01 Apr 2010
4 answers
312 views
I have added GridBoundColumns to MasterTableView dynamically.

for (int i = 0; i < dtTable2.Columns.Count - 2; i++)  
{  
       GridBoundColumn boundColumnOthers = new GridBoundColumn();  
       boundColumnOthers.DataField = dtTable2.Columns[i].ColumnName;  
       RadGrid2.MasterTableView.Columns.Add(boundColumnOthers);  
}  
 
GridEditCommandColumn editColumn = new GridEditCommandColumn();         RadGrid2.MasterTableView.Columns.Add(editColumn); 

How to link programmatically the GridEditColumn ? What events must be generated ?
Can you give me a sample with Northwind database, in which we add "GridBoundColumns" dynamically and then make them edit programmatically ?

thanks,
RadTony
Rosen
Telerik team
 answered on 01 Apr 2010
3 answers
211 views
Hi
i see this demo to use combo for filteration in grid

but i dnt want to bind it with SQLDataSource but instead want to bind combo used for filteration programatically. i try Grid ItemDatabound event for this but it returns error. Which event of grid is used for doing this and how can i do so?






Pavlina
Telerik team
 answered on 01 Apr 2010
5 answers
251 views
Hi,

I have created a usercontrol out of RadRating and RadTooltip controls and using SmartPart with Ajax to display it on SharePoint, bow tooltip is comming up fine and other telerik controls also but it seems that RadRating is not rendering. I guess server side rendering is my problem with rating control in SharePoint so any solution to that.


Thanks
Salman
Tsvetie
Telerik team
 answered on 01 Apr 2010
1 answer
125 views
I have this problem when generating chart that has many slices.


Intelligent labels is turned on. the label is not overlapping.  my problem is with the LabelConnectors Striking through my labels. how do i prevent that. its kinda disturbing my visual.

try playing with diameter scale, start angle, label distance could not help.

please see the attached screenshot.


thanks a lot

Ves
Telerik team
 answered on 01 Apr 2010
13 answers
636 views
I've been playing with this for a week or so now with no luck.

I have a grid....

<telerik:RadGrid ID="Grid1" AutoGenerateColumns="false" runat="server" Skin="Web20" Width="90%"> 
            <MasterTableView> 
                <Columns> 
                    <telerik:GridBoundColumn HeaderText="" UniqueName="WDFields" DataField="friendlyname" /> 
                    <telerik:GridTemplateColumn UniqueName="ddHeader" HeaderText="Header"> 
                        <EditItemTemplate> 
                            <asp:DropDownList ID="HeaderDropDown" runat="server" />                         
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 

And need to populate the DropDownList (HeaderDropDown) from a seperate datasource than what populates the Grid in general.

Currently, in the code behind, I have...

private void Grid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item.IsInEditMode) 
        { 
            GridEditableItem item = e.Item as GridEditableItem; 
            Dictionary<string, string> dict = new Dictionary<string, string>(); 
            dict = ReadHeader(); 
            DropDownList list = item.FindControl("HeaderDropDown") as DropDownList; 
            list.DataSource = dict; 
            list.DataBind(); 
        } 
    } 

I have a breakpoint set at the if statement and I'm never stepping into it.

Thanks.


tim
Top achievements
Rank 1
 answered on 01 Apr 2010
0 answers
70 views
Hello,

Anyone know how to use ItemTemplate loaded by xml file.
I need a component asp LoginStatus appear at the end of the menu.

Thanks in advance!


Roberto
Top achievements
Rank 1
 asked on 01 Apr 2010
6 answers
395 views
We are writing a document management system and have encountered some odd behavior when a user hits the 'delete' key and an element is selected (such as a textbox).  What we'd like to do is do a standard confirmation when someone tries to delete a checkbox, textbox, listbox, etc...  We have code on a test page that looks like this:

function

 

OnClientLoad(editor, args)

 

{

editor.attachEventHandler(

"onkeydown", function(e)

 

{

// show the key code for now, later on we'll implement a confirmation
alert(e.keyCode);

e.returnValue =

false;

 

e.cancelBubble =

true;

 

 

return false;

 

});

}


This code is just test code to simply dismiss the keydown event and not do anything.  With this code in place however, if the users selects a textbox, and then presses the delete or backspace key, they element is still deleted.  If I select an element and press another key like 'k' or whatever, then the element is not replaced so I'm not sure what to do.

We also put this code in to trap the enter command and call the 'set_cancel' method to cancel out of an enter keypress

function

 

OnClientCommandExecuting(editor, args)

 

{

alert(args.get_commandName());

 

if (args.get_commandName() == "Enter" || args.get_commandName() == "InsertTab")

 

{

alert(

'cancelling event');

 

args.set_cancel(

true);

 

}

 

}

 
but no command appears to fire when the delete key is pressed so the OnClientCommandExecuting event handler is not hit :(

Any thoughts?

Rumen
Telerik team
 answered on 01 Apr 2010
2 answers
154 views
Hello guys.

I'd like a hint about using tooltip to show messages in some actions (buttons, grid buttons, etc, etc).

I have a page with a tabstrip, that have five tabs. I want to show the tooltip when the user insert, update, delete, etc. I'm trying this:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/webserviceandshow/defaultcs.aspx

but I can't find a way to use only 1 main tooltip in master, because it needs a TargetControlID and I dont know the Id of a button in the grid for example.

What's the best way to do it works?

Thanks in advance.

Regards.
Silvio Silva Junior
Top achievements
Rank 2
 answered on 01 Apr 2010
4 answers
151 views
I am trying to create a custom Ajax control consisting of one radcombo and about 6 text box controls. I want to populate the text boxes with details of the selected item in the rad combo. I have this working with a basic html drop down, the change event on the drop down fires off which access a web service w/ json serialization and it's very simple to update the text boxes. I've declared my control like so:

public class GlnComboPartyPicker : DataBoundControl, IPostBackDataHandler, IScriptControl, INamingContainer//, IPostBackDataHandler//, IDataSource

I later implement the GetScriptDescriptors method:
  IEnumerable<ScriptDescriptor> IScriptControl.GetScriptDescriptors() {
      EnsureChildControls();
      ScriptControlDescriptor descriptor = new ScriptControlDescriptor("MyControlNS.MyControl", this.ClientID);

The control renders, the radcompo is populated and scrolls nicely etc.. BUT, normally I would add a handler to a basic html dropdown in the javascript that initializes the client class:
MyControlNS.MyControl.prototype = {
    initialize: function() {
        GLNPartyPickerControl.PartyPicker.callBaseMethod(this, 'initialize');
        $addHandlers(this._partiesDDLElement, { "change": this._selectedPartyChangedHandler }, this);

But since the radcombo isn't a html dom object, I can't attach the event this way and every other thing I've tried has failed. How do I tell the radcombo in my custom control, on the client, what to execute when the radcombo's selected item changes? I don't seem to be able to get a reference to the client side radcombo object. Remember this is a custom control so I need to always reference a function of this, my, control. Thanks !
Keith Thorne
Top achievements
Rank 1
 answered on 01 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?