Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
161 views
Hi,
I've added the telerki RadColor picker in my aspx file ( in sharepoint). I've given showicon = true. But in the page, when the icon is clicked the palette is not appearing at all. I've added RadScriptManager in the file.

<telerik:RadScriptManager ID = "radSccriptManager_MppCal" EnableHandlerDetection = "false" runat = "server"></telerik:RadScriptManager>

The radpicker is given as follows:

<tr>
         <td style="width:100%" valign="middle">
            <span class="cpdescriptiontext">Pick Event Color</span>
        </td>
    </tr>    
    
    <tr>
        <td>
            <telerik:RadColorPicker Skin = "WebBlue" ShowIcon = "true" PreviewColor = "true" ShowEmptyColor = "true" runat = "server" Width = "200px"  Preset = "Default" />
        </td>
    </tr>

The script manager is given in the masterpage Default.master. I've added the colorpicker in the aspx file which inherits from that master page. What could be the problem?



Tsvetie
Telerik team
 answered on 07 Aug 2009
2 answers
159 views
Hi!

I've created a composite server control which is composed by an ASP Checkbox and a RadDatePicker. The problem is that in IE8 I can visualize the RadAjaxLoadingPanel over my Composite Control ajax update only when the CheckBox and the RadDatePicker are not inline.

How can I make the RadAjaxLoadingPanel appear over my Composite Control as it happens with IE7 and FF?


Regards,

Rodrigo S.
Rodrigo Selada
Top achievements
Rank 1
 answered on 07 Aug 2009
0 answers
72 views
Hello,
I am trying the Functionality that selected text replaced by another text or symbol. But when there are more similar words at that time it replaces the first word.
here i tried the editor.GetSelection().GetRange(); but it does not support
Please provide the solution


Thanks,
Atul Deshmukh
Atul Deshmukh
Top achievements
Rank 1
 asked on 07 Aug 2009
1 answer
93 views

I have a RadGrid column on the second level hierarchy with ToolTips and it works very nice. However, as soon I filter the grid do rows then it look like the ToolTips still referenced somehow to none-filtered grid. Did anybody experience this problem?

Here is how I set the key for the ToolTips object on my second hierarchy level:

    Protected Sub grdLineGrid_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)  
        If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then  
            Dim target As Control = e.Item.FindControl("LinePayment")  
            If Not [Object].Equals(target, Nothing) Then  
                If Not [Object].Equals(Me.RadToolTipManager1, Nothing) Then  
                    Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)  
                    Me.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row("Inv_Doc_No").ToString() + "|" + currentRow.Row("Pay_Item").ToString() + "|" + currentRow.Row("Inv_Type").ToString(), True)  
                End If  
            End If  
        End If  
    End Sub 

When my OnAjaxUpdate event fires and the rows are filtered then the ToolTipUpdateEventArgs.Value is always a first row on the given page, not the one I move mouse over.

 

Svetlina Anati
Telerik team
 answered on 07 Aug 2009
3 answers
124 views
Hi,

I'm trying to customize one checkbox on a page using the FormDecorator. I've created my own css and the checkbox look good when the text is align to the right but the styles are not applied when the align is to the left (for the text)

Other infos : Single checkbox, no checkboxlist. Only one check box on the page with the text align to the left

I didn't found anything in the documentation about the customization of the formdecorator.

Many thanks in advance for your help and support.
Martin
Telerik team
 answered on 07 Aug 2009
3 answers
278 views
Dear Sir/Madam,

I am using a multipageview control with tabstrip.
when i am giving the height of pageview in %it is not being equal to content page height.
and i have 5 pageviews associated with different tabs.
I am calling a web method on a pageview's content user control's pageLoad() in javascript.
but when i am going to select another tab and page goes to postback by firing any serverside event,
this web method is again being called.

Can we stop calling this method on each and every postback.

Does anyone know how to do this ? Please tell me.....
THanks & Regards
Brijendra pandey
Mr. Plinko
Top achievements
Rank 1
 answered on 07 Aug 2009
6 answers
357 views
Hi

I have a number of cases where I have used RadAjaxPanel populated with various controls. If the panel is visible when the page opens the combobox on the panel is enabled, however if the RadAjaxPanel is not visible when the page is loaded, is made visible by the click of a button, the RadComboBox is not enabled and does not respond to a click. Textbox and button controls work fine on the panel.

Hope you can help ... deadline looming :-(

Steve
Steve Todd
Top achievements
Rank 1
 answered on 07 Aug 2009
1 answer
224 views
Hi All. Is it possible to associate a label with RadEditor? Like <label for="mycontrol"> or <asp:Label ID="Label1" runat="server" Text="Label" AssociatedControlID="mycontrol">. I noticed the final rendered HTML of RadEditor is a TextArea.

Daniel
Tervel
Telerik team
 answered on 07 Aug 2009
4 answers
155 views
Hello,

I've the following strange problem:

On a page there is button, which makes a raddock visible when clicked.
Inside the raddock there is some text and a button which closes the raddock when clicked
The controls are ajaxified using Rad Ajax Manager.

OK Scenario: I click on the "show" button, raddock appears. I click on the "close" button, raddock disappears. Only asynchronyous postbacks take place. If i click "show" button once more, raddock reappears correctly.

Fail Scenario: I click on the "show" button, raddock appears. I move raddock on the screen. After that, when I click the 'close" button, full page postback occurs before radddock disappears. If after that, I click "show" button once more, raddock reappears without  title bar and all formatting seems to be lost.

Aspx file:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
     
     
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
        &nbsp; 
    <div> 
        &nbsp;<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="rdTest"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="btnShowDock" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="btnShowDock"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="rdTest" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
    </telerik:RadAjaxManager> 
        <telerik:RadDock ID="rdTest" runat="server" Visible="False" Width="300px"> 
        <ContentTemplate> 
            Test<br /> 
            <asp:Button ID="btnCloseDock" runat="server" OnClick="btnCloseDock_Click" Text="Close" /> 
            </ContentTemplate></telerik:RadDock> 
 
    </div> 
        <asp:Button ID="btnShowDock" runat="server" OnClick="btnShowDock_Click" Text="Show" /> 
    </form> 
</body> 
</html> 
 

CS file:

using System; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
using System.Data; 
using System.Configuration; 
using System.Web.Security; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using Telerik.Web.UI; 
 
public partial class Default : System.Web.UI.Page  
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
 
 
    protected void btnShowDock_Click(object sender, EventArgs e) 
    { 
        rdTest.Visible = true; 
        btnShowDock.Enabled = false; 
    } 
 
    protected void btnCloseDock_Click(object sender, EventArgs e) 
    { 
        rdTest.Visible = false; 
        btnShowDock.Enabled = true; 
    } 
} 
 


Pero
Telerik team
 answered on 07 Aug 2009
0 answers
119 views
Hi

I want the same functionality in this demo
http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx.
My problem is how to exclude the control from Ajax here i have included this line
 _ScriptManager.RegisterPostBackControl(imgexport);
even i am geting this error
Sys.webforms.pagerequestmanager parserErrorexception The message received from server canot be parsed common cause for this error are when the response is modified by calls to Response.Write();

My hole code is here

 public class AppTemplate : ITemplate

    {
        private DataTable dtfinalResult = new DataTable();
        private ScriptManager _ScriptManager;
      
        public AppTemplate(DataTable dtResult, ScriptManager ScriptManager)
        {
            dtfinalResult = dtResult.Copy();
            _ScriptManager = ScriptManager;
        }
       
        public void InstantiateIn(Control container)
        {
            ImageButton imgexport = new ImageButton();
            imgexport.CommandName = "Export";
            imgexport.ImageUrl = "/_layouts/images/smallOutlook.gif";
            imgexport.Width = new Unit(20);
            //imgexport.ID="Export"+
            //Exclude from the Ajax
            _ScriptManager.RegisterPostBackControl(imgexport);
            //imgexport.Attributes.Add("onclick", string.Format("realPostBack(this, \"\"); return false;"));
            container.Controls.Add(imgexport);

            Literal subject = new Literal();           
            subject.DataBinding += subject_DataBinding;           
            container.Controls.Add(subject);
            CalendarPlus calendarplus = new CalendarPlus(); 
           
       
        }

        private void subject_DataBinding(object sender, EventArgs e)
        {
            Literal subject = (Literal)sender;
            IDataItemContainer aptContainer = (IDataItemContainer)subject.BindingContainer;

            //Access the appointment object and set its AllowEdit property:
            SchedulerAppointmentContainer aptCont = (SchedulerAppointmentContainer)subject.Parent;
            Appointment app = aptCont.Appointment;
            int APPID = int.Parse(app.ID.ToString());
            app.AllowEdit = false;          
            //app.CssClass = "MyCustomAppointmentStyle";
            DataView dvFinalresult = dtfinalResult.DefaultView;
            dvFinalresult.RowFilter = "FieldID=" + APPID;
            DataTable dtCurrentApp = dvFinalresult.ToTable();                      
            string strSubject = HttpUtility.HtmlEncode((string)DataBinder.Eval(aptContainer.DataItem, "Subject"));
            if (dtCurrentApp.Rows.Count > 0)
            {
               // app.BackColor =System.Drawing.Color.FromName(dtCurrentApp.Rows[0]["color"].ToString());
                string scolor = dtCurrentApp.Rows[0]["color"].ToString();
                app.CssClass = "rsCategoryYellow";
                    if (bool.Parse(dtCurrentApp.Rows[0]["IsEditListItem"].ToString()))
                        subject.Text = "<span id=\"spanID\" style=\"padding-top:4px;padding-left:1px;padding-right:1px;padding-right:3px;margin-top:2px;margin:bottom:2px;height:100%;width:100%\" curDivDate=\"" + dtCurrentApp.Rows[0]["RecurrenceID"].ToString() + "\" title='' onmouseout=\"tooltip.hide();\" onmouseover=\"wsc_showmenu(this); return false\" ><A  HREF=\"javascript:void(window.open('" + dtCurrentApp.Rows[0]["URL"].ToString().Trim() + "'))\">" + strSubject + "</a></span>";
                    else
                        subject.Text = "<span id=\"spanID\" style=\"padding-top:4px;padding-left:1px;padding-right:1px;padding-right:3px;margin-top:2px;margin:bottom:2px;height:100%;width:100%\" curDivDate=\"" + dtCurrentApp.Rows[0]["RecurrenceID"].ToString() + "\" title='' onmouseout=\"tooltip.hide();\" onmouseover=\"wsc_showmenu(this); return false\" >" + strSubject + "</span>";
               
            }
            else
            {
                subject.Text = strSubject;
            }
        }
    }

Regards
Vairamuhu

vairam
Top achievements
Rank 1
 asked on 07 Aug 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?