Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
hi support,

i am facing a very strange problem which is not reproducable in demos. when i double click on any apointment item in  rad schedular, the particular word in the text string that is double clicked goes to invisble mode (hide).

we are using 2008.3.1125.35.
thanks and best regards,
Dimitar Milushev
Telerik team
 answered on 26 May 2010
1 answer
229 views

I know this has been posted with even replies from Mods 

http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-lost-focus-after-autosave.aspx

But I dont have my Telerik Control inside the Update panel but it still refresh the conrol and loses its focus. Is there a way to do a AutoSave without refreshing directly from ClientSide?




<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Control_RichEdit.ascx.cs" Inherits="Common_Control_RichEdit" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
 
<telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="../TelerikRichEditControl/ToolsFile.xml" Skin="Web20" EditModes="Design" > 
   
 
</telerik:RadEditor> 
<asp:Timer ID="Timer1" runat="server" Interval="500000" OnTick="Timer1_Tick">  
        </asp:Timer> 
                <br /> 
        <br /> 
        <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">  
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="Timer1" /> 
            </Triggers> 
        </asp:UpdatePanel> 
          
          
<script type="text/javascript">   
        function OnClientLoad(sender, args)  
        {  
            var timer = $find("<%=Timer1.ClientID %>");  
              
              
            startCounter();  
          
            //Attach to the spellCheckLoaded event as the spell itself is loaded with AJAX  
            sender.add_spellCheckLoaded(function()  
                {  
                    var spell = sender.get_ajaxSpellCheck();  
                                              
                    spell.add_spellCheckStart(function(sender, args)  
                    {   
                        timer._stopTimer();  
                          
                        //Stop counter  
                        stopCounter();  
                    });  
                                  
                    spell.add_spellCheckEnd(function(sender, args)  
                    {  
                        //Restart the timer;   
                        timer._startTimer();  
                          
                        //Restart counter  
                        startCounter();  
                    });  
                }   
            );  
        }  
 
        var strText = document.getElementById('RadEditor1');  
 
        alert(strText);  
        //======================================== UI update for the remaining seconds =======================================//  
        var initialSeconds = 15;  
        var currentSeconds = initialSeconds;  
        var interval = null;  
        function startCounter()  
        {  
            if (!interval)  
            {  
                 currentSeconds = initialSeconds;  
                 interval = window.setInterval(function()  
                 {   
                    if (currentSeconds > 0)  
                    {  
                        currentSeconds--;  
                    }  
                    else  
                    {  
                        currentSeconds = initialSeconds;  
                    }  
                      
                    var span = document.getElementById("remainingSeconds");   
                    span.innerHTML = currentSeconds;  
                      
                 }, 1000);  
            }   
        }  
                          
        function stopCounter()  
        {  
            if (interval) window.clearInterval(interval);  
            interval = null;  
        }  
          
        //===============================================================================================================//  
    </script> 
 
     
Server side
using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
public partial class Common_Control_RichEdit : System.Web.UI.UserControl  
{  
    public string Text  
    {  
        get { return RadEditor1.Text; }  
        set { RadEditor1.Text = value; }  
    }  
    protected void Page_Load(object sender, EventArgs e)  
    {  
 
    }  
    protected void Timer1_Tick(object sender, EventArgs e)  
    {  
        //lbl1.Text = RadEditor1.Content;  
        this.RadEditor1.Focus();  
    }  
 
}  
 

Could you please explain me about the ClientSide Save? without refreshing the control ( Like Gmail, Yahoo Mail does?)

Thanks
Roomi
Rumen
Telerik team
 answered on 26 May 2010
3 answers
69 views
Hi,
Please refer to the demo below. When I try to copy a table from Word 2010, and do some formatting, the OK button cannot be clicked. If click cancel, the formatting will be lose.
 http://www.ximnet.com.my/upload/copy_from_word_2010.swf

Thanks.
Rumen
Telerik team
 answered on 26 May 2010
1 answer
459 views
Hi,

I have a grid that shows the columns at runtime and it's not connected to object data source. I want to modify these columns like changing the header text or making some columns hidden but I can't. Also in some columns I want to show other data than the shown, for example if it was showing numbers under country column i want it to bring the name of the country instead.
How to modify run time generated columns?? Please Help :(!

_Hamda
Pavlina
Telerik team
 answered on 26 May 2010
7 answers
81 views
I'm running into this very strange problem with RadEditor whereas before we were able to use it without any issue.  The toolbar, dropdowns, popups, editor mode buttons etc all show ***Missing, while there are no other issues with other controls.  I've attached a screenshot of the toolbar.  We are using 2009.2.701.35.

Does anyone know what's going on?




Rumen
Telerik team
 answered on 26 May 2010
1 answer
122 views
Hi,

i want to change the Provider because the current provider get the document library but i want to get document library and sub site.
I want to get the sub site in form folder in File Explorer.

Please help me :)

Thanks for your help.

Best Regards
Fiko
Telerik team
 answered on 26 May 2010
2 answers
125 views
I was wondering if someone could tell me what exactly "'get_selecteditem()' is null or not an object" means? 
Thanks
Jojo Patino
Top achievements
Rank 1
 answered on 26 May 2010
1 answer
163 views
hey i hope some one can help me in this roblem
i have grid with with template columns that have  text boxes with its required field validation controls
there is a button outside the grid on the page which save all the values on those text box

what i want when some text box is empty the page never post back ,
i've set validation groups to all button , grid(Validation-setting, text box , validators
but still the validation text show but the page post back


so hope any one can help thanks



<table width="100%">  
<tr><td>Clinical Group:</td><td><telerik:RadComboBox id="cmbClinicalGroups"   
        runat="server" AutoPostBack="True"   
        onselectedindexchanged="cmbClinicalGroups_SelectedIndexChanged"></telerik:RadComboBox></td></tr> 
<tr><td>Services:</td><td><telerik:RadComboBox id="cmbServices" runat="server"></telerik:RadComboBox></td></tr> 
<tr><td></td><td><asp:Button ID="btnLoad" runat="server" onclick="btnLoad_Click"   
        Text="Load" /></td></tr> 
<tr><td colspan="2">  
    <telerik:RadGrid ID="grdServiceFees" runat="server" ValidationSettings-ValidationGroup="save" ValidationSettings-EnableValidation="true"   
        AllowAutomaticDeletes="True" AllowAutomaticInserts="True"   
        AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowPaging="True"   
        AllowSorting="True" AutoGenerateColumns="False"   
          
        ShowFooter="True"   
        ShowGroupPanel="True" Width="100%">  
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="true"   
            AllowRowsDragDrop="false" Resizing-AllowColumnResize="true"   
            Resizing-AllowRowResize="false">  
            <Selecting AllowRowSelect="True" /> 
            <Scrolling AllowScroll="false" UseStaticHeaders="True" /> 
        </ClientSettings> 
        <MasterTableView AllowAutomaticInserts="false" AllowAutomaticUpdates="false"   
            AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false"   
            CommandItemDisplay="TopAndBottom" DataKeyNames="Id" PageSize="10"   
            RetrieveAllDataFields="false">  
            <CommandItemSettings ShowExportToExcelButton="true"   
                ShowExportToPdfButton="false" ShowExportToWordButton="true" /> 
            <Columns> 
                <telerik:GridTemplateColumn AllowFiltering="true" AutoPostBackOnFilter="true"   
                    DataField="Active" GroupByExpression="Active Group By Active"   
                    HeaderStyle-Width="60px" HeaderText="Active" SortExpression="Active"   
                    UniqueName="Active">  
                    <ItemTemplate> 
                        <asp:Image ID="ImgActive" runat="server" AlternateText="active"   
                            ImageUrl="~/Images/Enabled.png" Visible='<%# bool.Parse(Eval("Active").ToString()) %>' /> 
                        <asp:Image ID="ImgInactive" runat="server" AlternateText="inactive"   
                            ImageUrl="~/Images/Disabled.png" Visible='<%# ! bool.Parse(Eval("Active").ToString()) %>' /> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:CheckBox ID="chkActive" runat="server" Checked="true" /> 
                    </EditItemTemplate> 
                    <HeaderStyle Width="60px" /> 
                </telerik:GridTemplateColumn> 
 
                <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="ContractName"   
                    HeaderText="ContractName" UniqueName="ContractName"></telerik:GridBoundColumn> 
 
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="PayerName"   
                    HeaderText="PayerName" UniqueName="PayerName">  
                </telerik:GridBoundColumn> 
 
                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" DataField="PatientFee"   
                    HeaderText="PatientFee" UniqueName="PatientFee">  
                    <ItemTemplate> 
                    <asp:TextBox ID="txtPatientFee" runat="server" Value='<%# float.Parse(Eval("PatientFee").ToString()) %>' ValidationGroup="save"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="patientFeesValidator" runat="server" ControlToValidate="txtPatientFee" ErrorMessage="no" ValidationGroup="save"></asp:RequiredFieldValidator> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
 
                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" DataField="InsuranceFees"   
                    HeaderText="InsuranceFees" UniqueName="InsuranceFees">  
                    <ItemTemplate> 
                    <asp:TextBox ID="txtinsuranceFee" runat="server" Value='<%# float.Parse(Eval("InsuranceFee").ToString()) %>' ValidationGroup="save"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="insuranceFeesValidator" runat="server" ControlToValidate="txtPatientFee" ErrorMessage="no" ValidationGroup="save"></asp:RequiredFieldValidator> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
            </Columns> 
       
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
        </MasterTableView> 
        <HeaderContextMenu EnableAutoScroll="True">  
        </HeaderContextMenu> 
    </telerik:RadGrid> 
    </td></tr>  
<tr><td></td><td align="right"><asp:Button id="btnSave" Text="Save" runat="server"   
        ValidationGroup="Save" CausesValidation="false" onclick="btnSave_Click" /></td></tr> 
</table> 

Radoslav
Telerik team
 answered on 26 May 2010
6 answers
207 views
Hello,

When editing an image such that its align property is set to align="left", such as <img src="myimage.gid" align="left"/> and then switching to design view and then back to html view, the source is altered to:

<img src="myimage.gid" style="float:left"/>

Why is this happening?  I understand a float may be better, but in this case this is for HTML that will appear in an Email Newsletter, and many email clients do not support the float attribute.

Thanks
Christian
Rumen
Telerik team
 answered on 26 May 2010
3 answers
249 views
Hi,

I have a dynamic pivot SQL query in a stored procedure, which returns a table. I used auto-generated columns, because that's the only way forward (number of columns and even column names changes). The first 2 columns are always the same, so i have the column name fixed. The rest are dynamic. Every cell has this format aaa|123. I need to split the string, put the first value in the cell and create an event on mouse click with the second value as parameter.

I saw i can get the value with ItemDataBound event, but it requires column name, not index. For example:
If TypeOf e.Item Is GridDataItem Then
            Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
            dataItem.Item("ColumnX").Text = "Custom text"
        End If

What i need is something like

If TypeOf e.Item Is GridDataItem Then
            Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
            dataItem.Item(3).Text = "Custom text"
        End If

And also i need to add a mouse click event in every cell

Please help!

Thank you!
Veli
Telerik team
 answered on 26 May 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?