Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
605 views
I cannot seem to figure out how to do this. By default the editor is only occupying about 50% of the pane.

I have tried to follow the most recent example I could find of how to do this: http://www.telerik.com/community/forums/aspnet-ajax/editor/rad-editor-height-problem.aspx

But I am having problems when attempting to retrieve the pane height.

Here is my code for the javascript function:
function OnClientLoad(editor) {
                //sets the height of the radeditor to the height of the pane
                var paneHeight = $get("<%=paneBottom.ClientID %>").style.height;
                alert(paneHeight);
                editor.get_element().style.height = paneHeight;
            }

The alert window that pops up for the pane height has nothing in it.

And here is the pane with the radeditor inside of it:
<radspl:RadPane runat="server" ID="paneBottom" Scrolling="none" CssClass="RadEToolbar">
    <radE:RadEditor runat="server" ID="editor" Width="100%"  EnableDocking="false" Skin="Telerik"  ShowPreviewMode="false" CssFiles="~/Css/public_page.css" StripAbsoluteAnchorPaths="true" StripAbsoluteImagesPaths="true" AnchorPathToStrip="http://localhost:8080" ImagesPathToStrip="http://localhost:8080" ToolsFile="ToolsFile.xml" OnClientLoad="OnClientLoad"/>
</radspl:RadPane>



Rumen
Telerik team
 answered on 20 Feb 2013
1 answer
89 views
Does anyone know how to make the radtxtbox have the same appearance as the regular asp textbox? The regular one has more of a 3d appearance (I guess some dropped shadow stuff going on) where as the radtxtbox just looks flat.

Thanks,
Rut
Princy
Top achievements
Rank 2
 answered on 20 Feb 2013
2 answers
62 views
Dear Community,

We have been using Telerik ASP.NET AJAX controls version 2012.2.912.40. We met the issue with color picker inside image manager properties pane. It doesn't contain color palette, please see attached image.

The following configuration has been used:
            FileManagerDialogParameters imageManagerParameters = new FileManagerDialogParameters();
            imageManagerParameters.ViewPaths = BrowseMediaPaths;
            imageManagerParameters.UploadPaths = UploadMediaPaths;
            imageManagerParameters.DeletePaths = DeleteMediaPaths;
            imageManagerParameters.MaxUploadFileSize = Settings.MaxImageSize;
            DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), imageManagerParameters);
            imageManager.Parameters["ExternalDialogsPath"] = "~/EditorDialogs/";
            imageManager.ClientCallbackFunction = "sd.insertImage";
            imageManager.Width = Unit.Pixel(694);
            imageManager.Height = Unit.Pixel(440);
            DialogOpener1.Window.Modal = true;
            DialogOpener1.UseClassicDialogs = false;
            DialogOpener1.Window.Title = StringResource.Picture;
            DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager);
            DialogOpener1.Window.ReloadOnShow = true;

Thank you in advance for any information how to fix it.

Best regards,
Viktor Burdeinyi
Viktor
Top achievements
Rank 1
 answered on 20 Feb 2013
2 answers
97 views
Hello,
 I am using hierrachical grid.The hierarchical grid placed inside a radpanel .In radpanel there are two radpanes.inside grid radcombobox are there, autopostback is enabled in combobox.while radcombobox selected index changed am calling a dopostback in clientside.after that the grid is blinking and radpane is collapsed and expanded.but here am using update control and radajax settings also.can i avoid these changes
Andrey
Telerik team
 answered on 20 Feb 2013
3 answers
81 views
Hi,

I'm using rad combo box within the rad grid. The combo box is populated on the client and within the combo there's an "add new item" link.
When I insert new item, the item is inserted into the database via web service but the combo box doesn't update with the new item. I think if i'm able to some how invoke or call the combo_onload client event after I've inserted the new item that this would work. So my question is can I call the combo_onload client event from another method?

function OwnerComboBox_OnLoad(sender, eventArgs) {
 
             InvoiceWebService.GetItemsByCompanyId(sessionStorage.CompanyId, OnItemsComplete);
         }
         function OnItemsComplete(result) {
             for (var i = 0; i < result.length; i++) {
 
                 var item = new Telerik.Web.UI.RadComboBoxItem();
                 item.set_text(result[i].Items + "");
 
                 var grid = $find("ctl00_BodyContentPlaceHolder_grdInvoiceItems");
                 var masterTbl = grid.get_masterTableView();
                 var gridRow = masterTbl.get_dataItems()[0];
 
                 var comboBox = gridRow.findControl("ddlItems");
           
                 comboBox.get_items().add(item);
             }
         }
Thanks,
ron.
Hristo Valyavicharski
Telerik team
 answered on 20 Feb 2013
1 answer
137 views
I'm looking for help creating multi-line column headers for asp.net radgrid.
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2013
1 answer
184 views
Hello, how I can make a RadComboBox do postback
That each time you press the ENTER key.

When I have the same content does not postback.
Princy
Top achievements
Rank 2
 answered on 20 Feb 2013
1 answer
158 views

I have a radgrid with one coulmn as DateTime. It has a date picker.
When adding a row to the grid how to make that DateTime field required?

I have the following code in ItenCreated event

Dim calb As Telerik.Web.UI.RadDatePicker = DirectCast(editItem(ColumnName).Controls(0), Telerik.Web.UI.RadDatePicker)

calb.ID = "DateValidated"

Dim rfvDt As New RequiredFieldValidator()

rfvDt.ID = "RequiredFieldValidator2"

rfvDt.ErrorMessage = " " + firstColumnName + " is Required "

rfvDt.ControlToValidate = "DateValidated"

editItem(ColumnName).Controls.Add(rfvDt)

It errors out.

Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Feb 2013
1 answer
193 views
vb.net web application

hi i have a page with a radgrid on it and the columns are manually bound the edit/ insert mode is a auto popup form but i need to add a second radgrid to the edit form (in a column to the right preferably). Is there a way to do this with out changing the edit type to a template or userform.
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2013
2 answers
129 views
protected void Page_Load(object sender, EventArgs e)
        {
EBCRequest EBCRequest = new EBCRequest();
            var dataSource = EBCRequest.GetValidEBCRequest((int)Region.DBB);
 
            if (dataSource.Count > 0)
            {
                this.RadScheduler2.DataSource = dataSource;
                this.RadScheduler2.DataBind();
                foreach (RequestModel request in dataSource)
                {
 
                    RadScheduler2.AppointmentDataBound +=
new AppointmentDataBoundEventHandler(RadScheduler2_AppointmentDataBound);
                    
                }
                
                this.RadScheduler2.ReadOnly = true;
                this.RadScheduler2.Rebind();
 
                 
                 
            }
            if (!IsPostBack)
            {
                this.lblUserName.Text = this.LoginUser.FullName;
            }
        }
 
        void RadScheduler2_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
            if (e.Appointment.Resources.GetResourceByType("EventType") != null)
            {
 
                switch (e.Appointment.Resources.GetResourceByType("EventType").Text)
                {
                    case "Plant tour Catawba":
                        e.Appointment.BackColor = System.Drawing.Color.Blue;
                        break;
                    case "Plant tour Claremont":
                        e.Appointment.BackColor = System.Drawing.Color.Yellow;
                        break;
                    default:
                        break;
                }
            }
        }

How can i go in RadScheduler2_AppointmentDataBound while debugging?



Xue
Top achievements
Rank 1
 answered on 20 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?