Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 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
209 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
199 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
211 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
133 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
166 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
580 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
4 answers
240 views
We are using the Rad Menu control (ASP.NET AJAX Controls ver 2008.2 1001) in a web interface. When viewing the interface with IE7 (ver 7.0.5730.12) there is a z-index error, even though the RadMenu has been set to have a z-index lower that other page items, it appears on top. We double checked and tried multiple z-index orders to no avail.

The attached screen shot shows the problem. We are using the Superfish javascript library for a top level drop down menu and we have several RadMenu controls (and other Rad Controls) on the page as well. One of which is used for a "Getting Started" menu (illustrated in the attachement). When the top level navigation menu drops down, it appears behind the RadMenu, even though the RadMenu has a lower z-index.

The other Rad Controls i.e Tree View do not misbehave. They seem to honor their z-index.

It is most urgent that we have a immediate solution for the problem. We are less than a week away from a production delivery date for a system used by the USG with over 350K users.

Please donot bother asking for the code, it is part of a huge proprietary website with tight back-end integration, so it is not possible to do so.

A quick solution would be most appreciated.

Keith E.


Michael
Top achievements
Rank 1
 answered on 19 Feb 2013
7 answers
783 views
Running the August 2012 build - which is currently the latest - this seems to have been introduced in 2012-Q2

I have some code that allows for Excel style updating in a RadGrid, by sending some information through the onblur event of my RadNumbericTextbox controls.  Until recently this worked great - but now .get_value() returns the old value for the Textbox.  

I have confirmed that .get_textBoxValue() does give me the correct New value - BUT this will mean quite a bit or rewriting and testing on several pages for me - which I am trying to avoid.

Before I do that - is this a bug?  Or am I doing something wrong now?

Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim nActualQty As RadNumericTextBox = TryCast(item.FindControl("nActualQty"), RadNumericTextBox)
        Dim nActualAmount As RadNumericTextBox = TryCast(item.FindControl("nActualAmount"), RadNumericTextBox)
 
        ' This injects a javascript function to do the automatic line calculations
        nActualQty.Attributes.Add("onblur", "calculateLine('" & DataBinder.Eval(e.Item.DataItem, "Is_CPM") & "','" & DataBinder.Eval(e.Item.DataItem, "Rate") & "','" & nActualQty.ClientID & "','" & nActualAmount.ClientID & "')")
 
    End If
 
End Sub

function calculateLine(cpm, rate, quantity, totalAmount) {
    var q = parseFloat($find(quantity).get_value()); // This is the WRONG / OLD value
    var q = parseFloat($find(quantity).get_textBoxValue()); // This is now the right value ?!
    var t = $find(totalAmount);
    if (cpm == 'Y') {
        rate = parseFloat(rate) / 1000;
    }
    console.log('rate(' + rate + ') * q(' + q + ')');
    t.set_value(rate * q);
}

Dan
Top achievements
Rank 1
 answered on 19 Feb 2013
1 answer
101 views

I probably miss some fundamentals. 
1.On delete event the flow goes to AppointmentCreated event and then twice hit AppointmentDelete Event
On AppointmentInsert event the flow hits twice too and this create 2 records in the database

2. I show the same timeslotcontext menu on right and left mouse click.  On the right mouse click

OnClientAppointmentInserting is working properly.  On the left mouse click

OnClientAppointmentInserting gives me the error message right after

timeSlotClick event before timeSlotContextMenuItemClicking and OnClientAppointmentInserting
event, so , please advise how to handle this.

3. I have CSS issues in the AdvanceInsert or Edit form:  all my dropdowns do not show the arrow and scrolls, Recurrence editor does not show spin images

I created 3 support tickets 658678, 659352, 659845.  I am doing proof project for the Radscheduler
Thank you for your help 

My attachments in the ticket  659352

Thank you for your help

 

 

 

 

 

 

 

 

 

 

 

 

Plamen
Telerik team
 answered on 19 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?