Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
102 views
    
Aditya
Top achievements
Rank 1
 asked on 25 Jan 2012
2 answers
103 views
Hello there,
I am working with radschedular where i want to show Meetings, tasks, Calls in the radschedular. When I am putting radschedular in separate page it is working fine.. but whenever i am putting Radschedular in rad tab in another page.. Events are displaying 2-3 hours before...
It is showing correct time when i'm removing theme from the page... But If i'm applying theme to page and EnableTheming="false" to radschedular then also it is not working...
Please check attachment .. In this image my task is starting at 3.00 pm but it is showing in front of 12.00 pm..

Please help me... its an urgent
Abhi Shinde
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
57 views
Hi,
I have a rad masked text box in my page.Mask is ######.In IE 9 i enter the value into the text box.Then i will select the whole content and delete.The content clears.But after the pointer is positioned away the deleted value fill the text box.

IE-> Browser Mode:IE 9 & Document Mode:IE 9 standards 
I use telerik version:File version-2010.1.519.40




Princy
Top achievements
Rank 2
 answered on 25 Jan 2012
1 answer
298 views
Hi,
 I am using rad window , it display the textbox which creates dynamically.

I am using the below code.

 
function openWin() {
          var docId = document.getElementById('cpEditor_hdnDocId').value;
          var oWnd = $find("<%= radPropertyInspector.ClientID %>");
          oWnd.setUrl("NZFPropertyInspector.aspx?docId=" + docId);
          oWnd.show();
      }
it works well.

But, my problem is , once i close the window with some value in text box in in rad window,

again i open the rad window, it shows the previous value of text boxes, then reload the new text box values.

Text boxes are created dynamically.

i need to empty the textbox before showing the rad window.

How to clear the values of item before loading?

Thanks,
Uma
Princy
Top achievements
Rank 2
 answered on 25 Jan 2012
1 answer
53 views
I have a RadGrid that is bound in the code behind, on on ItemDataBound I'm doing binding to a RadComboBox that is within a TemplateColumn inside the grid:
 
<tel:RadGrid runat="server" ID="rgCounties" OnItemCommand="rgCounties_ItemCommand"
    AutoGenerateColumns="False" OnItemDataBound="rgCountes_ItemDataBound" AllowMultiRowEdit="True"
    CellSpacing="0" GridLines="None">
    <MasterTableView>
        <Columns>
            <tel:GridBoundColumn Display="false" DataField="ID" UniqueName="SectionCountyID"  />
            <tel:GridTemplateColumn HeaderText="County" UniqueName="CountyColumn">
                <InsertItemTemplate>
                    <tel:RadComboBox runat="server" ID="rgrcCounty" DataTextField="CountyName" DataValueField="ID" />
                </InsertItemTemplate>
                <ItemTemplate>
                    <tel:RadComboBox runat="server" ID="rgrcCounty" DataTextField="CountyName"
                        DataValueField="ID" />
                </ItemTemplate>
            </tel:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</tel:RadGrid>

So they can edit the County Dropdown at will, and click a save button below.
The county dropdown is being populated from a database table, but only has entries that are not currently in the grid.

For instance, Suppose i have 5 Counties:
{Lancaster, York, Berks, Adams, Allegheny}
the Grid has 3 entries for the counties "York, Adams, Allegheny".  Therefore, each combo box should have the two that are not present anywhere in the grid (Lancaster, Berks), as well as one entry for that grid row

So the grid would look like this:
Row 1: Combo with options {Lancaster, Berks, York}
Row 2: Combo with options {Lancaster, Berks, Adams}
Row 3: Combo with options {Lancaster, Berks, Allegheny}

However, the results I'm getting are:
Row 1: Combo with options {Lancaster, Berks, York}
Row 2: Combo with options {Lancaster, Berks, York, Adams}
Row 3: Combo with options {Lancaster, Berks, York, Adams, Allegheny}

Even though on Each row I'm rebinding the combobox and adding the missing one.
protected void rgCountes_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        var ditem = e.Item as GridDataItem;
        var combo = ((RadComboBox)ditem["CountyColumn"].FindControl("rgrcCounty"));
        var sectionCountyID = int.Parse(ditem["SectionCountyID"].Text);
        var sectionCounty = Model.SectionCounties.Where(sc => sc.ID == sectionCountyID).FirstOrDefault();
 
        combo.Bind(Model.Counties, false);
        if (sectionCounty != null)
        {
            combo.AddOrSelectByValue(sectionCounty.CountyID.ToString(), sectionCounty.County.CountyName);
            rnt.Text = sectionCounty.Percentage.ToString();
        }
    }    
}
        public static bool AddOrSelectByValue(this RadComboBox combo, string value, string text)
        {
            bool tf = combo.SelectByValue(value);
            if (!tf)
            {
                combo.Items.Add(new RadComboBoxItem(text, value));
                combo.SelectByValue(value);
            }
            return tf;
        }


You can see I'm rebinding each combo and then adding a new value on a per-row basis. But it seems that on each row, thecombo.Items.Add() is being applied additively.

Any idea what I'm doing wrong or how to fix it?

thanks!
Iana Tsolova
Telerik team
 answered on 25 Jan 2012
1 answer
93 views
I am trying to have a grid allow me to drag and drop rows. I can get it to allow me to drag it but it doesn't save it in the new place. I'm also going to want to write it out to the database so the values are saved.

I've read all kinds of things that seem WAY to complicated - there must be an easy way to do it.

Can somebody point me in the right direction.

TIA - Jeff.
Shinu
Top achievements
Rank 2
 answered on 25 Jan 2012
14 answers
468 views

Since the most useful part of RadAjaxManager is the UI for defining AjaxSettings that go along with it, why not create something similar to ScriptManager and ScriptManagerProxy?  This way, individual controls could have a ScriptManagerProxy, where they can define their own internal settings and update controls and then the content page (or master page) could have the top level RadAjaxManager that would aggregate all the RadAjaxManagerProxy controls from all child controls and content pages.

Thoughts?

Nick
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
80 views
I have a RadScheduler with intervals of 30 minutes.
I am trying to validate when the user moves an appointmente to another timeslot. I am using OnClientAppointmentMoveEnd to check the new timeslot and the new startime.
The problem is that when the user drags the appointment to, for example, 15:30, the "eventArgs.get_newStartTime()" returns "15:01".
If it drags to slot "15:00" it also shows "15:01". Why is that?
Here is a sample code where I am just trying to show a message asking the user to confirm the changes in the schedule and in the resource.

function OnClientAppointmentMoveEnd(sender, eventArgs) {
                 
                var apt = eventArgs.get_appointment();
                var msg = "";
                var novadata = eventArgs.get_newStartTime();
                if (apt.get_start() != novadata) {
                    msg = "New Schedule:" + novadata.format("HH:MM") + "\r\n";
                }
 
                if (apt.get_timeSlot().get_resource(0).get_key() != eventArgs.get_targetSlot().get_resource(0).get_key()) {
                    msg = msg + "New therapist:" + eventArgs.get_targetSlot().get_resource(0).get_text() + "\r\n";
                }
 
                if (confirm(msg + "Confirm change?" )) {
                 
                }
                else {
                    set_cancel(true);
                }
               
                 
                                 
            }

Any ideia? Thanks.
sotero
Top achievements
Rank 1
 answered on 24 Jan 2012
1 answer
129 views
Hello,

Is there a way to customize the tooltip ?

Thanks
Aurore
Richard
Top achievements
Rank 1
 answered on 24 Jan 2012
4 answers
194 views
Hi folks,

I use the ItemTemplate and put a DropDownList in the RadListBox. Meanwhile I set the EnableDragAndDrop to true for the RadListBox. Then the DropDownList does not work in IE9 and Chrome. However It works in FireFox, IE8, IE7. Did anyone encounter the same problem and know how to solve it? Any help would be appreciated.

Chris
Chris
Top achievements
Rank 1
 answered on 24 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?