Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
65 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
101 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
86 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
142 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
191 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
167 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
199 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
130 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
1 answer
145 views
Hi,

Are there any way to get the Cell Double Click event on client-side ?
I need to get which cell did the user click on the grid.

Regards,
Daniel
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2013
2 answers
548 views
I've tried doing this many different ways with no success.

I just want to open a RadWindow from code behind (the initiating action is from a RadDock command).

Here is the aspx:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"  >
    <AjaxSettings >
        <telerik:AjaxSetting AjaxControlID="RadDockLayout1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadDockZone1" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" />
                <telerik:AjaxUpdatedControl ControlID="rwinProperties" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rwinProperties">
            <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadDockZone1" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" />           
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Black" />
 
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Default" OnSaveDockLayout="RadDockLayout1_SaveDockLayout"
        OnLoadDockLayout="RadDockLayout1_LoadDockLayout" StoreLayoutInViewState="True">
        <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="1400px" Width="1100px" Skin="Black" Orientation="Horizontal">
 
        </telerik:RadDockZone>
    </telerik:RadDockLayout>
 
    <asp:Label id="lbCurrentProperty" runat="server" visible="false" />
 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="rwinProperties" runat="server" Title="Select Properties" Height="550px"
                Width="450px" Left="150px" ReloadOnShow="false" VisibleOnPageLoad="false" ShowContentDuringLoad="false" CssClass="RadWindow"
                Modal="true">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

In the RadWindow I want to display a web page (SelectProperties.aspx) which as three parameters in the query string.

Here's one attempt:
Dim URL As String = "SelectProperties.aspx?SectionID=" + SectionID + "&SectionCount=" + SectionCount + "&SectionName=" + SectionName
Dim script As String = "function f(){radopen(""" + URL + """,""rwinProperties"").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
 
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", Script, True)

When I use this approach I get the following error: Microsoft JScript runtime error: Unable to get value of the property 'parentNode': object is null or undefined.  In researching this error I got now help in trying to figure out why I got this error.  So I tried another approach and got the same error:

Sub DisplayProperties(ByVal SectionID As String, SectionCount As String, ByVal SectionName As String)
        Dim script As String = "Sys.Application.add_load(ShowSelectProperties(""" & SectionID & """,""" & SectionCount & """,""" & SectionName & """));"
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", Script, True)
End Sub

function ShowSelectProperties(SectionID, SectionCount, SectionName)
{
    radopen("SelectProperties.aspx?SectionID=" + SectionID + "&SectionCount=" + SectionCount + "&SectionName=" + SectionName, "rwinProperties");
 
}


Any help is greatly appreciated. 


Hunter
Top achievements
Rank 1
 answered on 19 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?