Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 views
I am getting a design time error with a radgrid inside a Dockable Object saying there is an error rendering the control.

The grid does not display at run time.

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 29 Jul 2008
2 answers
90 views
Hello,

Using build 2.723.35
I am unable to created editor in codebehind, I am using in may Page object:
        RadEditor ed ;  
        protected void Page_Load(object sender, EventArgs e)
        {
            if ( !IsPostBack )
                ed.Content="x";
        }
        protected override void OnInit(EventArgs e)
        {
           
            ed    =   new RadEditor();
          ed.ID           =   "RadEditorTextBox_1";
            Controls.Add(ed);
           
            base.OnInit(e);
        }

And I get an editor displayed but its window is bad formed and it doesn't accept input.
Adding one in the same page a declarative syntaxe like
    <telerik:RadEditor ID="RadEditor1" Runat="server">
        <Content></Content>
    </telerik:RadEditor>
works ??????

Any Idea ?

CS
CSurieux
Top achievements
Rank 2
 answered on 29 Jul 2008
1 answer
130 views
Hi,

We have an aspx page where we are using frameset. In first frame we've an user control containing radtreeview (eg RadTree1) and depending on selected node we are loading another aspx page in second frame.

The aspx page we are loading in second frame has an user control "usercontrol.ascx" which contains another radtreeview (eg RadTree2). This is a load on demand tree

We need to disable certain nodes of the second radtree while they are being created, ie. on load of the radtree, some nodes should appear to be disabled. This has to be done on the client side.

My problem is that when we try to find this second radtreeview (eg RadTree2) in "usercontrol.ascx", on page load, we get null in return.

We tried to to use $find function but it is also not working.

Kindly reply asap

Regards,
SK
Atanas Korchev
Telerik team
 answered on 29 Jul 2008
1 answer
122 views
How can I resize a radeditor to fit the screen when a window is resized. I tried using the setsize property together with the windows onresize property. It works fine with IE7 but it doesnt work with IE6.
George
Telerik team
 answered on 29 Jul 2008
1 answer
179 views
Hello,

I am using a custom progress area after a process which processes a file and then allows the user to download the file.  I am able to display the progress area however it does not disappear once the file is ready for download.  I have tried using the client-side 'hide' function and 'cancelReqeust' function however they do not work.  Attached is the code to generating the file and updating the progressArea:

        public void ExportClicked(string mappedBinPath, string mappedImagePath) 
        { 
            ArrayList getFilesToProcess2 = new ArrayList(); 
            getFilesToProcess2 = GetFilesToProcess(); 
 
            if (getFilesToProcess2 == null) 
            { 
                return; 
            } 
 
            // We want the client-side to recognize the upcoming file as a zip file. 
            _view.PageResponse.ContentType = "application/exe"
            _view.PageResponse.AddHeader("Content-Disposition", "attachment; filename=CMIS.exe"); 
        
            XceedSfxPrefix sfx = new XceedSfxPrefix(new DiskFile(mappedBinPath + "xcdsfx32.bin")); 
 
            sfx.DialogStrings[DialogStrings.Title] = "Crown Managment Information System Extraction utility"; 
            sfx.DialogMessages[DialogMessages.Introduction] = "Crown Managment Information System Extraction utility. Please click 'Continue' to proceed extracting case files to your computer."; 
            sfx.DefaultDestinationFolder = @"C:\"; 
            sfx.ExistingFileBehavior = ExistingFileBehavior.OverwriteAlways; 
            Icon ico = new Icon(mappedImagePath + "ontario.ico"); 
            sfx.Icon = ico
 
            // We will zip directly in the response stream. The temporary compressed 
            // data will be written to the ZipArchive's TempFolder, thus the MemoryFolder  
            // we set in Application_Start. 
            ZipArchive destination = new ZipArchive(new StreamFile(_view.PageResponse.OutputStream)); 
            destination.BeginUpdate(); 
            getFilesToProcess2.Sort(); 
 
            ArrayList refineProcessList = RefineProcessList(getFilesToProcess2); 
            _view.Progress["SecondaryTotal"] = refineProcessList.Count.ToString(); 
 
            foreach (int file in refineProcessList) 
            { 
                _view.Progress["CurrentOperationText"] = file.ToString(); 
                AddFolderAndFiles(dmConnection.DmDocumentSecurityToken, dmConnection.DmLibraryName, file, destination, "", new ArrayList()); 
                _view.Progress["SecondaryValue"] = refineProcessList.IndexOf(file).ToString(); 
                string test2 = _view.StringClientScript; 
            } 
            _view.Progress["CurrentOperationText"] = "Completed"; 
            string test1 = _view.StringClientScript; //calls javascript hide() function 
 
            destination.SfxPrefix = sfx
            destination.DefaultCompressionMethod = Xceed.Compression.CompressionMethod.Deflated; 
            destination.EndUpdate(); 
 
            // And finally we zip in a single operation. If we had to zip more than 
            // one source, we could have used ZipArchive.BeginUpdate/EndUpdate. 
            ArrayList nameFilters = new ArrayList(); 
            _view.PageResponse.End(); 
        } 

Thanks,
David
Erjan Gavalji
Telerik team
 answered on 29 Jul 2008
1 answer
82 views

Requirements

RadControls version

Q1 2008

.NET version

3.5

Visual Studio version

vs2008

programming language

c#

browser support

all browsers supported by RadControls


 
  • I need bind data programmaticaly.
    The code that I started develop the 

    public

    void RefreshReport()

    {

    tb_reportName.Value =

    "Queue of " + this.ReportParameters["QueueTypeParam"].Value.ToString();

    LinqDSDataContext db = new LinqDSDataContext();

    db.Connection.Open();

    if (db != null && db.Connection.State == ConnectionState.Open)

    {

    #region

    Define db query by queue type

    IQueryable<hc_Scoring> Recordings = null;

    switch (this.ReportParameters["QueueTypeParam"].Value.ToString())

    {

    case "Scorer":

    Recordings = (

    from r in db.hc_Scorings.Where(r => r.Status < 250 && r.Status >= 10 && r.Status != 30 && r.Status != 31 && r.Status != 32)

    orderby r.TransferDate

    orderby r.Priority descending

    select r);

    break;

    case "Supervisor":

    Recordings = (

    from r in db.hc_Scorings.Where(r => r.Status == 30)

    orderby r.TransferDate

    orderby r.Priority descending

    select r);

    break;

    case "Tech support":

    Recordings = (

    from r in db.hc_Scorings.Where(r => r.Status == 32)

    orderby r.TransferDate

    orderby r.Priority descending

    select r);

    break;

    case "Doctor":

    Recordings = (

    from r in db.hc_Scorings.Where(r => r.Status == 31)

    orderby r.TransferDate

    orderby r.Priority descending

    select r);

    break;

    }

    #endregion

    #region

    sortting

    bool sortDescending = (bool)this.ReportParameters["DirSort"].Value;

    switch (this.ReportParameters["FieldSort"].Value.ToString())

    {

    case "1":

    if (sortDescending)

    {

    Recordings = Recordings.OrderByDescending(u => u.ScoringId)

    .ThenBy(u => u.TransferDate).ThenBy(u => u.Priority);

    }

    else

    {

    Recordings = Recordings.OrderBy(u => u.ScoringId)

    .ThenBy(u => u.TransferDate).ThenBy(u => u.Priority);

    }

    break;

    case "2":

    if (sortDescending)

    {

    Recordings = Recordings.OrderByDescending(u => u.TransferDate)

    .ThenBy(u => u.Priority);

    }

    else

    {

    Recordings = Recordings.OrderBy(u => u.TransferDate)

    .ThenBy(u => u.Priority);

    }

    break;

    case "3":

    if (sortDescending)

    {

    Recordings = Recordings.OrderByDescending(u => u.Priority)

    .ThenBy(u => u.TransferDate);

    }

    else

    {

    Recordings = Recordings.OrderBy(u => u.Priority)

    .ThenBy(u => u.TransferDate);

    }

    break;

    case "5":

    if (sortDescending)

    {

    Recordings = Recordings.OrderByDescending(u => u.Status)

    .ThenBy(u => u.Priority).ThenBy(u => u.TransferDate);

    }

    else

    {

    Recordings = Recordings.OrderBy(u => u.Status)

    .ThenBy(u => u.Priority).ThenBy(u => u.TransferDate);

    }

    break;

    }

    #endregion

    this.DataSource = Recordings;

    tb_hcid.Value = ??????????????????

    }

    }

    How I need continue?
    Thanks ahead
    Sergey R.
  • Atanas Korchev
    Telerik team
     answered on 29 Jul 2008
    4 answers
    119 views
    Hi Folks

    If I have a lot of resources on the diary the appointments become squasheda nd I can't read what they say.

    My thoughts are to make the scheduler wider and have a horizontal scroll. Unfortunatly this doesn't quite work. The appointments part shows over other parts of the scheduler.

    Can you tell me if there is a way to make this work. Also is there a way of setting the width of individual resources?

    Thanks
    Jon
    Jonathan
    Top achievements
    Rank 1
     answered on 29 Jul 2008
    5 answers
    165 views
    I am using RadControl Asp.net ajax Q1 2008


    I am using RadAjaxManager And RadAjaxLoadingPanel  and rad grid


    <telerik:RadAjaxManager ID="rdAjaxManagerHistoryGrid" runat="server" EnableAJAX="true"
              DefaultLoadingPanelID="LoadingPnlCustom" >
                    <ajaxsettings>
                    
               <telerik:AjaxSetting AjaxControlID="btnRefreshHistory">
                            <updatedcontrols>
                                <telerik:AjaxUpdatedControl ControlID="rGridHistories"
                        LoadingPanelID="LoadingPnlCustom" /></updatedcontrols></telerik:AjaxSetting>      

    </ajaxsettings>
    </<telerik:RadAjaxManager >


    When i click on refresh button  of grid it gives me following error.

    if i set allowscroll property of clientsetting to false then it not gives me a error.
    But i want allowscroll  property to be true.

    error are as follows.
    Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
    StephenWRogers
    Top achievements
    Rank 1
     answered on 29 Jul 2008
    3 answers
    80 views
    Hello,

    Do you have a component which read a RTF string or HTML string?

    thank
    Bruno
    Top achievements
    Rank 2
     answered on 29 Jul 2008
    10 answers
    283 views
    In the pre prometheus version of RadToolBar it supported causes validation property on all buttons. In the new version, it is defined at the ToolBar level.

    Why?
    Erjan Gavalji
    Telerik team
     answered on 29 Jul 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?