Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
168 views
hi when i am working rad menu the child items not appeared. only paren items are appeared. i am using rad menu trail version.i ant diplay child items for that wat i have to do........ plz reply me
Paul
Telerik team
 answered on 01 Aug 2008
1 answer
279 views
Hi
I have two grids. when you select a row from the first grid, using the values from the selected row I need to populate the second grid.

The first grid has two datakeynames="one,two"

Now I need to 

<

asp:SqlDataSource ID="dsStudentGradeHistory" runat="server"
<SelectParameters>
<asp:ControlParameter ControlID="firstgrid" Type="Int32" DefaultValue="-1" Name="one" PropertyName="SelectedValue" />
<asp:ControlParameter ControlID="firstgrid" Type="Int32" DefaultValue="-1" Name="two" PropertyName="SelectedValue" />
</SelectParameters>
</asp:SqlDataSource>

and then bind the data to the second grid.

But what happens is that the second parameter gets one value as you could expected.
How to assign with correct values for the parameters?

Thanks

Toby

Vlad
Telerik team
 answered on 01 Aug 2008
2 answers
162 views
I'm trying to load a RadEditor at runtime from a custom control, i managed to get the RadEditor to render but the Editor does not seem to render correctly. Please see attached.

    [DefaultProperty("Text")]  
    [ToolboxData("<{0}:Content runat=server></{0}:Content>")]  
    public class Content : WebControl  
    {  
        RadEditor contentEditor;  
 
        public Content()  
        {  
 
        }  
 
        /// <summary>   
        /// Load the UserControl   
        /// </summary>   
        protected override void CreateChildControls()  
        {  
            base.CreateChildControls();  
 
            contentEditor = new RadEditor();  
 
            contentEditor.ToolsFile = "App_Data/Editor.xml";  
 
            contentEditor.ID = "radEditor";  
 
            contentEditor.Skin = "Black";  
 
            contentEditor.Content = TemplateHelper.PageContent;  
 
            this.Controls.Add(contentEditor);  
        }  
 
 
        /// <summary>   
        /// Render this Web Part to the output parameter specified.   
        /// </summary>   
        /// <param name="output"> The HTML writer to write out to </param>   
        protected override void Render(HtmlTextWriter output)  
        {  
            EnsureChildControls();  
            if (contentEditor != null)  
            {  
                contentEditor.RenderControl(output);  
            }  
        }   
 
    } 

I can't seem to upload images but take a look at http://www.carlfretwell.co.uk/Images/Editor.JPG to see what I mean.

Carl
Martin
Telerik team
 answered on 01 Aug 2008
3 answers
163 views
Hi,
    I seem to be a little lost with this, I have returned a collection of data from a data base and wish to manually bind this to the RADChart.
The data I collect binds okay to the chart but only shows 8 values when the collection returns 16, also the date does not show across the bottom.

The data row consists of 3 values and a date per row
i.e 20/07/2008, 354, 45, 32

I would like to have the data values show as line date and the coresponding date across the bottom of the chart. I have included my data collection and assignment code below.

DateTime eDate = DateTime.Today;

DateTime sDate = Convert.ToDateTime("01/" + eDate.AddMonths(-1).Month + "/" + eDate.AddMonths(-1).Year);

JobsOpenCollection JColl = new JobsOpenCollection();

JColl.Query.Select

(JColl.Query.CaOpen, JColl.Query.ChOpen, JColl.Query.TskOpen, JColl.Query.Date)

.Where(JColl.Query.Date.Between(sDate, eDate));

JColl.Query.Load();

JColl.Sort =

"Date";

rchWork.DataSource = JColl;

rchWork.DataBind();


Can you please advise..

Regards..
Peter
Giuseppe
Telerik team
 answered on 01 Aug 2008
1 answer
96 views
Ok, this should be simple but why isn't this working???? I've gotten version one to work, then i tried version two. Can you tell me why it's not working?

Version #1
<href="#" id="tip"><img src="../../Images/Buttons/tipimage.gif" /></a
 
<telerik:RadToolTip runat="server" ID="RadToolTip1"  
          Height="200px"  
          Width="200px"  
          TargetControlID="tip"  
          IsClientID="true"  
          Sticky="true"  
          Animation="Fade"  
          Position="BottomCenter"  
          RelativeTo="Element"  
          Skin="DWDS"  
          EnableEmbeddedSkins="false"
     <div> 
          <span style="color:Maroon; font-weight:bold;"
               <asp:Label ID="lblParticipantName2" runat="server" /> 
          </span> 
     </div> 
</telerik:RadToolTip> 

Version #2
<asp:Image ID="tip" runat="server" ImageUrl="../../Images/Buttons/tipimage.gif" /> 
                             
<telerik:RadToolTip runat="server" ID="RadToolTip1"  
          Height="200px"  
          Width="200px"  
          TargetControlID="tip"  
          IsClientID="true"  
          Sticky="true"  
          Animation="Fade"  
          Position="BottomCenter"  
          RelativeTo="Element"  
          Skin="DWDS"  
          EnableEmbeddedSkins="false"
     <div> 
          <span style="color:Maroon; font-weight:bold;"
               <asp:Label ID="lblParticipantName2" runat="server" /> 
          </span> 
     </div> 
</telerik:RadToolTip> 

Tervel
Telerik team
 answered on 01 Aug 2008
2 answers
112 views
Here is the situation: I wrote a Clientside control, that is composed of the RadTabStrip control, using the ASP.NET AJAX client libraries .

I want my client-side control class to be able to handle events from the client-side TabStrip, like tabSelected.

This is easily done like this:

initialize: function()   
    {  
        MyControls.WizardTabStrip.callBaseMethod(this'initialize');  
          
        // Add custom initialization here  
        this._tabSelectedHandler                =   Function.createDelegate(thisthis._onTabSelected);  
          
        // The next line fails, because the client-side TabStrip object is not yet created: it will be created after our custom client-side control is created  
        this.get_tabStrip().add_tabSelected(this._tabSelectedHandler);  
    },  
 
get_tabStripID: function()  
    {  
        return this._tabStripID;  
    },  
    set_tabStripID: function(value)  
    {  
        this._tabStripID = value;  
    },  
 
get_tabStrip: function()  
    {  
        return $find(this.get_tabStripID());  
    },  
 
_onTabSelected : function(sender, args)  
    {  
        // Do things when a tab is selected  
    } 

However, line 9 fails, because the RadTabStrip is a child control of my Composite Control (which implements IScriptControl) and my custom clientside control is $created before the RadTabStrip client-side control is $created.

The easiest solution would be to attach the tabSelected eventhandler for the custom client control instance in the pageLoad() event, but isn't there are smarter way?


Thanks.
Atanas Korchev
Telerik team
 answered on 01 Aug 2008
1 answer
199 views
I recently purchased Q2 2008.  I don't see a built in control for emoticons.  I've been looking around on the forums for an example of how to do this, but haven't been successful.  Does anybody have a working example for this version?

Thanks.
Tervel
Telerik team
 answered on 01 Aug 2008
1 answer
65 views
Hi,

I have multiple grids on a page and one button i use to export them. But I'm only able to export the last grid in my code. I don't care if all the grids go into one file or multiple files for each grid. If it helps at all, i've stepped through the code and the save/open dialog box only appears after the function has completed.

Any ideas why this is?

--Mike
Princy
Top achievements
Rank 2
 answered on 01 Aug 2008
3 answers
135 views
when using output caching in webcontrols, the radmenu control is losing it's skin.
all the items are generated as text after the first request initially displays correctly.
Seem to recall this happening in Q1 pre SP1 as well but worked fine with Q1 SP1.

not doing anything fancy with the menu, just a basic setup and database bind.


<%

@ OutputCache Duration="120" Shared="false" VaryByParam="none" %>

<

telerik:RadMenu ID="RadMenu1" runat="server" Skin="Telerik" Width="100%"

OnItemDataBound="RadMenu1_ItemDataBound"

ExpandDelay="50" ExpandAnimation-Duration="100"

CollapseAnimation-Duration="100">

</

telerik:RadMenu>

any ideas?

Yana
Telerik team
 answered on 01 Aug 2008
5 answers
153 views
How do I get a postback after an Alt+AccessKey keyboard shortcut?  The toolbar button becomes highlighted, but no postback is performed.  If I press Enter after the button is highlighted, a postback is performed.  I need this shortcut key to call OnClientButtonClicking, as I'm performing form validation within that method.
Erjan Gavalji
Telerik team
 answered on 01 Aug 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?