Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
484 views
When using RadWindows we always have KeepInScreenBounds = "True".

I work on a desktop machine with 2 monitors. If I set the browser to fullscreen mode, then open a RadWindow in my app and move it off to the far right of the screen, then take the browser out of fullscreen mode the RadWindow is completely off the screen and inaccessible.

I'm not sure if you can do anything about this, but it would be nice to ensure that, at least when KeepInScreenBounds=true, that the RadWindow moves  when this happens.

--
Stuart
Marin Bratanov
Telerik team
 answered on 17 Apr 2012
1 answer
133 views
I have a RadComboBox which is setup as follows

 

 

 

<telerik:RadComboBox ID="radcombo_1" AutoPostBack="true" runat="server" 
    onselectedindexchanged="radcombo_1_SelectedIndexChanged" OnClientSelectedIndexChanging="SelectionChange" >
</telerik:RadComboBox>

My goal is to prevent a selection change in certain scenarios.  Currently, I enforce this using good ole'
js window.confirm as follows

function SelectionChange(sender, eventArgs) {
    try {                
        var text = "";                
        text = sender.get_text();
        if (text != "Select") {
            var allow = false;
            allow = TheConfirm();
            if (allow == true) {
                eventArgs.set_cancel(false);
            }
            else {
                eventArgs.set_cancel(true);
            }
        }
    }
    catch (errA) {
                    }
}

function TheConfirm() {
     return confirm("Change?");                     
}

However, I would like to change this to utilize radconfirm with a <ConfirmTemplate>.  Yet, radconfirm does not appear to be a blocking call...

Can anyone provide an example of how to prevent the RadComboBox selection change with a blocking radconfirm that uses a custom <ConfirmTemplate>???

Any help would be greatly appreciated. 

Marin Bratanov
Telerik team
 answered on 17 Apr 2012
1 answer
359 views

Hello,

I'm experiencing weird behavior from the RadComboBoxSelectedIndexChangedEventArgs EventArgs. When loading my aspx page and checking one item in the RadComboBox, the SelectedIndexChanged event fires. So far all good, but when I take a look at the OldValue, Value, OldText and Text properties, I noticed something strange. The OldText property is empty but the OldValue is set? I've attached a screenshot showing the properties and values ("oldvalue oldtext.jpg")

This becomes a problem when having two RadComboBoxes with both having the SelectedIndexChanged event set. In this example I check an item in the first RadComboBox and the SelectedIndexChanged event fires. After it has been fired the SelectedIndexChanged event from the cblEmployees RadComboBox also fires! It believes the SelectedIndex has changed while it hasn't. I've attached a screenshot ("two radcbb.jpg")

Here is the code I have:

One RadComboBox:

<asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadComboBox ID="cblFases" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" AutoPostBack="true"
    OnSelectedIndexChanged="cblFases_SelectedIndexChanged" />

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        for (int i = 0; i < 5; i++)
        {
            cblFases.Items.Add(new RadComboBoxItem { Text = "F" + i.ToString(), Value = "V" + i.ToString() });
        }
    }
}
 
protected void cblFases_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
}

Two RadComboBoxes:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadComboBox ID="cblFases" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" AutoPostBack="true"
OnSelectedIndexChanged="cblFases_SelectedIndexChanged" />
<telerik:RadComboBox ID="cblEmployees" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" AutoPostBack="true"
OnSelectedIndexChanged="cblEmployees_SelectedIndexChanged" />

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        for (int i = 0; i < 5; i++)
        {
            cblFases.Items.Add(new RadComboBoxItem { Text = "F" + i.ToString(), Value = "V" + i.ToString() });
        }
 
        for (int i = 0; i < 10; i++)
        {
            cblEmployees.Items.Add(new RadComboBoxItem { Text = "Employ" + i.ToString(), Value = "Val" + i.ToString() });
        }
    }
}
 
protected void cblFases_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
}
 
protected void cblEmployees_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
}

I was hoping to be able to attach a project, but I'm not sure if that's possible, so here's the project on mediafire:
http://www.mediafire.com/?g7ynn4a2l3bydid
Or here: http://www.mirrorcreator.com/files/0NSRKAED/

I'm working with version 2011.3.1305.40 of Telerik.Web.UI
Is this a bug or just an error from my side?

Greetings, Brian
Brian
Top achievements
Rank 1
 answered on 17 Apr 2012
5 answers
104 views
Is it possible for me to autocheck a checkbox in edit mode if text is entered/selection made from a dropdown edit column?
Michael
Top achievements
Rank 1
 answered on 17 Apr 2012
1 answer
96 views
Hi,

I need to change the font family for every node on my treeview. I used the example mention previously but it doesn't work.
It only changes the font family for the root node and its first two children. All the other nodes remain unchanged.

This is the code I used

<style type="text/css">
    .RadTreeView_Default
    {
        font-family: arial !important;
        font-size: 13px !important;
        color: red !important;
    }     
</style>


Attached you will find a screen shot



Ivan Zhekov
Telerik team
 answered on 17 Apr 2012
1 answer
80 views
Hello,

  I have a combobox which I am filling it with WCF Service. I followed the link http://demos.telerik.com/aspnet-ajax/combobox/examples/loadondemand/wcf/defaultcs.aspx  to do this.

I am displaying client name and address in the combobox. How do i show these 2 fields in 2 different columns in the dorpdown. All i want to have is to align them properly in the dropdown.

I saw the example here http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx  BUT that was not done through WCF Service. 

Appreciate the help
Thanks

Cat Cheshire
Top achievements
Rank 1
 answered on 17 Apr 2012
9 answers
439 views
Hi,
How can i set RadComboBotip on the selected item text in javascript?
All the combo items are loaded dynamically using ObjectDataSource.

Thanks,
Ruth.
Cat Cheshire
Top achievements
Rank 1
 answered on 17 Apr 2012
1 answer
43 views
I have to use Appointment popup window using Rad Scheduler but at the same time I want to hide day View , month view or week view .So how can achieve  this?
Like This........

Plamen
Telerik team
 answered on 17 Apr 2012
1 answer
120 views

Please any one help?
Please find the below and find the attached images too.

If generate the chart first it showing the results in image Chart View Issue Due to number of x-Axis scale points, on x-axis results pulling from -200 to +300

I agree with the below view, because due to thousands of scaling points x-Axis we can’t see them directly, the data going to be overlap with beside scaling points. That’s way x-axis data is not showing in proper order.

Chart View Issue Due to number of x-Axis scale points: IF POSSIBLE, IF WE HAVE ANY OTHER OPTION TO RECTIFY THE ISSUE WITH X-AXIS SCALING POINTS VIEW, and PLEASE SUGGEST.

Ves
Telerik team
 answered on 17 Apr 2012
5 answers
254 views
Hi:

I have a user-controls that is dragged inside a RadAjaxPanel.  The JQuery code in the user-conde does not seem to run.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DisplayMessage.ascx.cs" Inherits="Telerik.UserControls.DisplayMessage" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        //<![CDATA[
        $(document).ready(function () {
            alert("here uc");
        });
        ]]>
    </script>
</telerik:RadScriptBlock>
I have remove any work from the jquery, and reverted to alerts, but the alert does not appear.

Phil
Maria Ilieva
Telerik team
 answered on 17 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?