Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
131 views
Hi :)

The scenario I have is this:

A Page containing
  • AjaxManager
  • A user control to be shown a little like a dialog
  • A main form user control
A Main form user control
  • An initiating user control

So I add a setting to the ajaxmanager that the initiating user control updates the control to be shown

but the initiating user control also updates the Main Form user control

I really want the initiating control to only update the user control to be shown like a dialog.

Does this make sense?
Any ideas?

Cheers Martin
Martin Sarosi
Top achievements
Rank 2
 answered on 10 Feb 2009
4 answers
134 views
Hello all!

THe problem isthat the tooltip show is content in FF, but in IE i just see the tooltip but it not containts anything. I have this probleme form 3 days, please help me. (I use 2 tooltipmanager for two different action), this is why i have 2). Please help me.

------------ aspx code ----------------
 <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" OnAjaxUpdate="OnAjaxUpdate"
        ShowEvent="OnClick" RelativeTo="Element" Skin="Web20" ManualClose="true">
    </telerik:RadToolTipManager>
    <telerik:RadToolTipManager ID="RadToolTipManagerAdaugare" runat="server"  OnAjaxUpdate="OnAjaxUpdateAdaugare"
        ShowEvent="OnClick" RelativeTo="Element" Skin="Web20" ManualClose="true" OffsetX="-150"  Width="200px"
        Height="80px">       
    </telerik:RadToolTipManager>

------------ cs code ----------------
    public void ButtonAdaugare_Click(object sender, EventArgs e)
    {
        this.RadToolTipManagerAdaugare.TargetControls.Add(((Button)sender).ClientID, true);
    }
    public void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
    {
        this.UpdateToolTip(args.Value, args.UpdatePanel);
        Session["rol_sters"] = args.Value;
        Session["pagina_back"] = "Vizualizare_Roluri.aspx";
    }
    public void UpdateToolTip(string elementID, UpdatePanel panel)
    {
        Control ctrl = Page.LoadControl("RolStergereDaNu.ascx");
        panel.ContentTemplateContainer.Controls.Add(ctrl);      
        
    }
    public void OnAjaxUpdateAdaugare(object sender, ToolTipUpdateEventArgs args)
    {
        this.UpdateToolTipAdaugare(args.Value, args.UpdatePanel);
        Session["pagina_back"] = "Vizualizare_Roluri.aspx";
    }
    public void UpdateToolTipAdaugare(string elementID, UpdatePanel panel)
    {
        Control ctrl = Page.LoadControl("RolAdaugare.ascx");
        panel.ContentTemplateContainer.Controls.Add(ctrl);

    }

----------- one of the controlers-----------
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RolAdaugare.ascx.cs" Inherits="Pages_RolAdaugare" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div style="width:200px; text-align:center" >
    <asp:Label ID="Label1" runat="server" Text="Nume rol:"></asp:Label>
    <telerik:RadTextBox ID="RadTextBoxNumeRol" runat="server">
    </telerik:RadTextBox><br />
    <asp:Button ID="ButtonAdaugare" runat="server" Text="Adaugare"
        onclick="ButtonAdaugare_Click" />
    <asp:Button ID="ButtonCancel" runat="server" Text="Cancel"
        onclick="ButtonCancel_Click" />
</div>




Vunvulea
Top achievements
Rank 1
 answered on 10 Feb 2009
4 answers
132 views
Hi,
when the combox is disabled from serverside (editable=false), it gives an js-error when it is clicked:
Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
In line 11811, 

this

 

.get_inputDomElement().focus();.

Are we disabling it wrong, or is this just a bug?

 

Simon
Telerik team
 answered on 10 Feb 2009
2 answers
185 views
Hello!

I want to add a hoover effect to the text of the tabs in a radTabStrip. Is that possible and if so how?

Regards Markus
Markus
Top achievements
Rank 1
 answered on 10 Feb 2009
1 answer
104 views
I have a Master table with 2 details table in the RAD Grid. The grid is in a table whose style has the property "table-layout:fixed" (Code below).

However, whenever I expand the master table or details table, their width seems to increase by about 20px.

Has anyone come across this? Any ideas on how to solve it?

Thanks for your help.

Amit

<table style="width:1003px; table-layout:fixed">  
            <tr> 
                <td> 
                     <telerik:RadGrid ID="dgCategoriesView" runat="server"   
                        EnableAJAX="True" Width="1003px" Skin="Ims" AutoGenerateColumns="false"   
                        EnableEmbeddedSkins="false" ImagesPath="~\Skins\Grid\Skins\Ims\Img" 
                        GridLines="None">  
 
                        <MasterTableView DataKeyNames="CTID" ShowHeader="false">  
                              
                            <DetailTables > 
                                <telerik:GridTableView runat="server" DataKeyNames="DID" HierarchyLoadMode="ServerOnDemand" Name="DTable" Width="963px" ShowHeader="false">  
                          
                                    <Columns> 
                                        <telerik:GridBoundColumn DataField="DID" UniqueName="CDID" Visible="False"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="CID" UniqueName="CID" Visible="False"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="Name" UniqueName="CName" HeaderText="C Name">  
                                            <ItemStyle Width="963px" HorizontalAlign="left" /> 
                                            <HeaderStyle Width="963px" HorizontalAlign="left" /> 
                                        </telerik:GridBoundColumn> 
                                    </Columns> 
                                      
                                    <DetailTables> 
                                        <telerik:GridTableView runat="server" DataKeyNames="C1ID" HierarchyLoadMode="ServerOnDemand" Name="Level1Tbl" Width="923px">  
                                              
                                            <Columns> 
                                                <telerik:GridBoundColumn DataField="C1ID" UniqueName="C1ID" Visible="False"></telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn DataField="CID" UniqueName="CID" Visible="False"></telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn DataField="Name" HeaderText="C L 1" UniqueName="Name">  
                                                    <ItemStyle Width="473px" HorizontalAlign="Left" /> 
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn DataField="Current" DataFormatString="{0:F4}" DataType="System.Double" HeaderText="Current" UniqueName="Current">  
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridTemplateColumn UniqueName="M0" HeaderText="M0">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxM0Sub" runat="server" Text='<%# Container.DataItem("M0") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Container.DataItem("M0Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridTemplateColumn UniqueName="M1" HeaderText="M1">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxM1Sub" runat="server" Text='<%# Container.DataItem("M1") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TxtBxM1Red" runat="server" Text='<%# Container.DataItem("M1Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridTemplateColumn UniqueName="M2" HeaderText="M2">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxM2Sub" runat="server" Text='<%# Container.DataItem("M2") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TxtBxM2Red" runat="server" Text='<%# Container.DataItem("M2Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridTemplateColumn UniqueName="M3" HeaderText="M3">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxM3Sub" runat="server" Text='<%# Container.DataItem("M3") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TxtBxM3Red" runat="server" Text='<%# Container.DataItem("M3Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridTemplateColumn UniqueName="M4" HeaderText="M4">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxM4Sub" runat="server" Text='<%# Container.DataItem("M4") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TxtBxM4Red" runat="server" Text='<%# Container.DataItem("M4Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridTemplateColumn UniqueName="M5" HeaderText="M5">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxM5Sub" runat="server" Text='<%# Container.DataItem("M5") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TxtBxM5Red" runat="server" Text='<%# Container.DataItem("M5Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridTemplateColumn UniqueName="Q3" HeaderText="Q3">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxQ3Sub" runat="server" Text='<%# Container.DataItem("Q3") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TxtBxQ3Red" runat="server" Text='<%# Container.DataItem("Q3Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridTemplateColumn UniqueName="Q4" HeaderText="Q4">                                          
                                                    <ItemTemplate> 
                                                        <asp:TextBox ID="TxtBxQ4Sub" runat="server" Text='<%# Container.DataItem("Q4") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                        <asp:TextBox ID="TxtBxQ4Red" runat="server" Text='<%# Container.DataItem("Q4Red") %>' ReadOnly="true" Width="45px"></asp:TextBox> 
                                                    </ItemTemplate> 
                                                    <ItemStyle Width="50px" /> 
                                                </telerik:GridTemplateColumn> 
                                            </Columns> 
                                              
                                            <DetailTables> 
                                                <telerik:GridTableView runat="server" DataKeyNames="SDID" HierarchyLoadMode="ServerOnDemand" Width="1003px">  
                                                    <Columns> 
                                                        <telerik:GridBoundColumn DataField="SDID" UniqueName="SDID" Visible="false"></telerik:GridBoundColumn> 
                                                        <telerik:GridBoundColumn UniqueName="FName" DataField="FName" HeaderText="F Name">  
                                                            <ItemStyle Width="250px" /> 
                                                        </telerik:GridBoundColumn> 
                                                    </Columns> 
                                                </telerik:GridTableView> 
                                            </DetailTables> 
                                              
                                              
                                        </telerik:GridTableView> 
                                    </DetailTables> 
                                </telerik:GridTableView> 
                            </DetailTables> 
 
                            <Columns> 
                                <telerik:GridBoundColumn Visible="false" DataField="CTID" UniqueName="CID"></telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="CTName" UniqueName="CTName" HeaderText="C Type">  
                                    <HeaderStyle Width="533px" HorizontalAlign="Left" /> 
                                    <ItemStyle Width="533px" HorizontalAlign="Left" /> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        Current  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        M0  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        M1  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        M2  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        M3  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        M4  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        M5  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        Q3  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                                <telerik:GridTemplateColumn> 
                                    <HeaderTemplate> 
                                        Q4  
                                    </HeaderTemplate> 
                                    <HeaderStyle Width="50px" /> 
                                </telerik:GridTemplateColumn> 
                           </Columns> 
                              
                        </MasterTableView> 
 
                    </telerik:RadGrid> 
                </td> 
            </tr> 
        </table> 
Amit
Top achievements
Rank 1
 answered on 10 Feb 2009
3 answers
303 views
Hello Sir
    
        I working on 3 level Hierarchycal Grid but i want to change the caption style. for that there is no any properties or method to do that.
        so i am requesting to you for solve this issue. send me code or properties to change grid caption style or format.

        pls reply quickly

regards 
    swapnil
Princy
Top achievements
Rank 2
 answered on 10 Feb 2009
1 answer
123 views
Hi -

I have started to use the headercontextmenu so my clients can dynamically add/remove columns.  It has been a great feature, btw - especially for their ability to export just what they want.

In any event, we have a number of columns exposed to the client now (43 to be exact) - only 5 columns are displayed by default- and the right-click context menu takes a few seconds to load and render - which is a bit annoying to the user community.  Short of shortening the list, is there anyway to speed this up?  How are the menu items generated?  On the fly each time? Is it possible to cache the list after first generation?

Thanks!
Rich
Rosen
Telerik team
 answered on 10 Feb 2009
1 answer
123 views
Hi,
I want to implement RadSpell to work with the RadEditor, inside a user control.
I cut and paste the code from a previous thread, as follows:

<telerik:radspell id="spell1" runat="server" buttontype="none" />
<telerik:radeditor runat="server" id="RadEditor1" EditModes="All" Height="400px" Skin="Default" StripFormattingOnPaste="None" StripFormattingOptions="None" ToolbarMode="Default" Width="680px">
 <tools>
  <telerik:editortoolgroup>
   <telerik:editortool name="SpellCheck" />
  </telerik:editortoolgroup>
 </tools>
 <content>

  There are somee miztakes in this text
 </content>
    <SpellCheckSettings SpellCheckProvider="PhoneticProvider" WordIgnoreOptions="RepeatedWords" />
</telerik:radeditor>
<script type="text/javascript">
Telerik.Web.UI.Editor.CommandList.SpellCheck = function(commandName, editor)
{
 var spell = GetRadSpell('<%= spell1.ClientID %>');
 spell.spellCheck(new PrometheusTextSource(editor));
 return false;
}
var PrometheusTextSource = function(editor)
{
 this._editor = editor;
 this.get_text = function() { return this._editor.get_html(); };
 this.set_text = function(value) { this._editor.set_html(value); };
}
</script> 

However, when when I click on the spell check button, I get the error 'The command SpellCheck is not implemented yet.'. When I view the source, I can't find any reference to the javascript function.
If I implement the same code outside the user control, everything works fine.

Can you suggest what I'm doing wrong, and how to put it right?

Thanks.

Richard
Rumen
Telerik team
 answered on 10 Feb 2009
1 answer
150 views
Hi,

I have a chart with approximately 3000 points loaded from a Database. While the chart looks 'ok', I am attempting to complete the following transactions:

1. The points on my scatter plot look too big. How can I shrink the size of those points to make them really look more like points rather than bubbles?

2. The X-Axis and Y-Axis increment values are currently shown at the very left and very bottom of the chart when I want to show them right within the axis (thats how normal charts display the incrementing values). How can I accomplish this?

3. Apparently I have this table with the series shown at the bottom of my chart. How can I get rid of it? I've made sure its not visible in the chart wizard.

Let me know your thoughts.
Ves
Telerik team
 answered on 10 Feb 2009
8 answers
427 views
Hi..
I'm using a grid with the built in editing - how do I modify the fonts and sizes of the edit 'form'?
thanks
Sebastian
Telerik team
 answered on 10 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?