Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views
Is it possible to access the area where the group by columns are placed?  I'd like to add a button in there.
Neil
Top achievements
Rank 1
 answered on 05 Apr 2010
0 answers
125 views
Hi,


this is shanker am doing one project by using telirik controls .In my project am using Scheduler with raddock. it's fine but am face one problem in Scheduler / External Edit in RadDock .my problem is in edit mode am getting problem that is when ever am edit it's show edit values .But am again  edit next one it's shows same values any time am change edit am getting same values. How to solve that please give me any solutions .it's very argent please how to fine that

this is my code 

 public void Getclassrefresh()
        {
            RadScheduler1.DataSource = Calendermanager.sch_view_calendar(Radcomclass.SelectedValue.GetInteger());
            RadScheduler1.DataBind();
        }
        protected void classRefresh_Click(object sender, EventArgs e)
        {
            Getclassrefresh();
          
        }

 protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
        {
            if (e.Mode == SchedulerFormMode.Insert || e.Mode == SchedulerFormMode.Edit)
            {
                EditedAppointmentID = e.Appointment.ID;
                e.Cancel = true;

                ScriptManager.RegisterStartupScript(Page, GetType(), "formScript", "Sys.Application.add_load(openForm);", true);
                PopulateEditForm(e.Appointment);
            }
            
    }
        protected void PopulateEditForm(Appointment editedAppointment)
        {
            Appointment appointmentToEdit = RadScheduler1.PrepareToEdit(editedAppointment, RadScheduler1.EditingRecurringSeries);
            //DescriptionText.Text = appointmentToEdit.Subject;
            if (appointmentToEdit != null)
            {
                if (appointmentToEdit.ID != null)
                {
                    StartTime.SelectedDate = RadScheduler1.UtcToDisplay(appointmentToEdit.Start);
                    EndTime.SelectedDate = RadScheduler1.UtcToDisplay(appointmentToEdit.End);
                    int s = int.Parse(appointmentToEdit.ID.ToString());
                    var det = Calendermanager.sch_view_calendar_popup(s);
               
                if (det != null)
                {
                    if (det.class1 != null)
                    {
                        formRadclass.SelectedIndex = formRadclass.Items.IndexOf(formRadclass.Items.FindItemByText(det.class1.ToString()));
                    }
                    if (det.subject != null)
                    {
                        RadComboBoxItem item1 = new RadComboBoxItem();
                        item1.Text = det.subject.ToString();
                        item1.Value = det.subject_id.ToString();
                        formRadSubject.Items.Add(item1);
                        
                    }
                    if(det.room!=null)
                    {
                        RadComboBoxItem item1 = new RadComboBoxItem();
                        item1.Text = det.room.ToString();
                        item1.Value = det.room_id.ToString();
                        formRadroom.Items.Add(item1);
                    }
                    if (det.teacher != null)
                    {
                        RadComboBoxItem item1 = new RadComboBoxItem();
                        item1.Text = det.teacher.ToString();
                        item1.Value = det.teacher_person_id.ToString();
                        formRadTeacher.Items.Add(item1);
                    }
                    if (det.session_name != null)
                    {
                        formRadsession.SelectedIndex = formRadclass.Items.IndexOf(formRadsession.Items.FindItemByText(det.session_name.ToString()));
                    }
                 
                }
                }
            }
            Resource user = appointmentToEdit.Resources.GetResourceByType("User");
            if (user != null)
            {
                //UserDropDown.SelectedValue = user.Key.ToString();
            }
        }

please how to solve this problem .

thanks and regrads
shanker.B
shanker bangari
Top achievements
Rank 1
 asked on 05 Apr 2010
1 answer
155 views
Good Day to All

I Have a grid with a Column Resize Property = true
My grid works fine.....until i used the scrolling with static header to true.
When static header is true, if i resize my column the grid resizes even if i set the resize grid on column resize =  false

I really like to combine this features

I would like to know if they really do not work together and is there a backdoor code to make them work?

Thank You
Dimo
Telerik team
 answered on 05 Apr 2010
4 answers
109 views
Hi,
I am working with a project which is developed using telerik controls (version: 1.6.2.0). But I do not get any kind of tutorial and example over that version. Is there any way get those..


Animesh Chandra Dey
Animesh Dey
Top achievements
Rank 2
 answered on 05 Apr 2010
3 answers
129 views
Hi,

I have a very simple Editor included on my page.  It displays correctly for most users, but in a few instances the editor renders with toolbar layout broken (see attached image).  This seems to happen only on IE7 (works fine with Firefox) and it's across all different resolutions/screen settings.  Any idea what could be causing this?

Thank you,

Marek

Rumen
Telerik team
 answered on 05 Apr 2010
4 answers
110 views
editor.setfocus() function works fine in IE.. but it doesn't work in FireFox....
cursor doesn't place within the content area of the radeditor in firefox....
please help me...


function ClientLoad(editor, args)
{              
   var editorObject = editor;
   //set the focus in the editor
   setTimeout(function()
   {
         editorObject.SetFocus();
   }, 10);
}

 <telerik:RadEditor ID="RdEditor1" Runat="server" Height="100px" Width="450px" EditModes="Design" OnClientCommandExecuting="OnClientCommandExecuting" ContentFilters="MakeUrlsAbsolute"  OnClientLoad="ClientLoad">
                <Tools>
                <telerik:EditorToolGroup Tag="bold">
                    <telerik:EditorTool Text="B" Name="Bold" />
                    <telerik:EditorTool Text="i" Name="Italic"/>
                    <telerik:EditorTool Text="U" Name="Underline"/>
                     </telerik:EditorToolGroup>
   </Tools>
  <Content></Content>
  </telerik:RadEditor>  
thanks & regards,
priya.
              
priya nallaperumal
Top achievements
Rank 1
 answered on 05 Apr 2010
2 answers
127 views
I am having an issue with the filter of a grid.  I have page with a splitter divided into 2 panes. A top and bottom with the bottom pane being a grid. If a user has a lower resolution or I change the size of my browser it prevents all of the filter options from being displayed.  Looking through the documentation it should enable an 'Auto-Scroll' but it is not working for me.  The options just get pushed up into the top pane and are not visible.

Is there a way maybe to set the height of the filter options dropdown, maybe forcing the autoscroll on the screen based on height?

Anyone have another suggestion?
Pavlina
Telerik team
 answered on 05 Apr 2010
1 answer
85 views
Hello,
how can i localize the PageSiteLabelText and the PagerTextFormat via ASP.NET Resources?
The following doesn't work PageSizeLabelText="<%$ Resources:MyResources, numberOfItems %>: "

with best regards
Meik Napierski


 

 

Daniel
Telerik team
 answered on 05 Apr 2010
3 answers
127 views
Hello,

I did an update to the newest Q1 2009 release and all of the png's in the default telerik skins r missing. Is this a known issue? I am missing the following

BottomLine.png
FirstNodeSpan.png
MiddleLine.png
NodeSpan.png
PlusMinus.png
SingleLine.png
TopLine.png
Veselin Vasilev
Telerik team
 answered on 05 Apr 2010
8 answers
288 views
I have a page with a search button that is ajaxified for a user control and a radgrid. When the user clicks the button the page post back does some error checking.  If it finds errors it displays them using the user control, otherwise it runs the query in the onneeddatasource and the Grid results display.  If the user clicks the button and there are not any errors the grid displays correctly using the "Outlook" skin.  If the  user clicks the button and there are errors the the page uses a user control to send the error messages and they are displayed. However, if the user corrects the errors and clickson the button the errors are cleared as expected, the query runs and the grid is displayed but without using the "Outlook skin.  So the grid is not formatted. 

What's the issue???

ASCX:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PageMessage.ascx.cs" Inherits="AARatesWeb.PageMessage" %> 
<div runat="server" id="MessageContainer">  
 
</div> 
 
 
CodeBehind:  
    public void DisplayMessage(MessageType MsgType, String MsgText, String UserID)  
    {  
        string sOutput;  
 
        // Begin Table Construction  
        sOutput = "<table border='0' cellpadding='0' cellspacing='0' >";  
        sOutputsOutput = sOutput + "<tr>";  
 
        switch (MsgType)  
        {  
            case MessageType.Information:  
                sOutputsOutput = sOutput + "<td class='redtext'>";  
                break;  
            case MessageType.Warning:  
                sOutputsOutput = sOutput + "<td class='redtext'>";  
                break;  
            case MessageType.Critical:  
                sOutputsOutput = sOutput + "<td class='redtext'>";  
                break;  
        }  
 
         //Finish Table Construction  
        sOutputsOutput = sOutput + MsgText;  
        sOutputsOutput = sOutput + "</td></tr></table>";  
 
         //Write message to Div  
        MessageContainerMessageContainer.InnerHtml = MessageContainer.InnerHtml + sOutput;  
    } 

Aspx:
<asp:Content ID="arMain" ContentPlaceHolderID="MainPH" runat="server">  
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">    
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="rcbCodeList">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rcbListType"   
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="rtbCode" /> 
                    <telerik:AjaxUpdatedControl ControlID="btnAddCode" /> 
                    <telerik:AjaxUpdatedControl ControlID="rlbCodes"   
                        LoadingPanelID="RadAjaxLoadingPanel1" />                     
                </UpdatedControls> 
            </telerik:AjaxSetting>          
            <telerik:AjaxSetting AjaxControlID="rcbListType">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rtbCode" /> 
                    <telerik:AjaxUpdatedControl ControlID="btnAddCode" /> 
                    <telerik:AjaxUpdatedControl ControlID="rlbCodes"   
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="btnAddCode">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rtbCode"   
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="rlbCodes"   
                        LoadingPanelID="RadAjaxLoadingPanel1" />                              
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="btnSearch">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ARGrid1"   
                        LoadingPanelID="RadAjaxLoadingPanel1" />   
                    <telerik:AjaxUpdatedControl ControlID="lnkbtnSave"   
                        LoadingPanelID="" />    
                    <telerik:AjaxUpdatedControl ControlID="lnkbtnSaveAs"   
                        LoadingPanelID="" />                                                                                                                 
                </UpdatedControls>                  
            </telerik:AjaxSetting>              
            <telerik:AjaxSetting AjaxControlID="ARGrid1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ARGrid1"   
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls>                  
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Outlook">  
    </telerik:RadAjaxLoadingPanel> 
 
 
...  
<pm:PgMsg ID="PgMessage" runat="server" /> 
 

Code Behind:
        protected void Page_Load(object sender, EventArgs e)  
        {  
            //Set up client side calls for AjaxProxyManager  
            RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);  
            manager.ClientEvents.OnRequestStart = "onRequestStart";  
            manager.AjaxSettingCreated += new RadAjaxControl.AjaxSettingCreatedDelegate(manager_AjaxSettingCreated);  
            manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);  
 
 
            //Add user control to Ajaxify for search and add buttons             
            Control mainPlaceHolder = Master.FindControl("MainPH");  
            Control pgMsg = mainPlaceHolder.FindControl("pgMessage");  
 
 
            RadAjaxLoadingPanel ajaxLoadingPanel = Master.FindControl("RadAjaxLoadingPanel1") as RadAjaxLoadingPanel;  
            manager.AjaxSettings.AddAjaxSetting(btnSearch, pgMsg, ajaxLoadingPanel); 

Dimo
Telerik team
 answered on 05 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?