Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
Hi
I
have a webcontrol that has a inherit of RadWindow.
And the Web controls within the page does not show off, but the contents inside the ContentTemplate.
Please help me
Thanks
Marin Bratanov
Telerik team
 answered on 19 Oct 2011
3 answers
172 views

Hello,

How do I cancel the appointment editor popup after the user double-clicks an appointment? I need to implement some validation before I allow the user to edit an appointment. This is an example of my code, but the set_cancel method is not valid apparently.

function onAppointmentDoubleClick(sender, eventArgs) {
              
            var ID = '<%=ID%>';
  
            if (ID == '0') {
                eventArgs.set_cancel(true);
            }
        }

Stuart Hemming
Top achievements
Rank 2
 answered on 19 Oct 2011
1 answer
123 views
I'm trying to use the RadEditor control in a partial view of my my MVC project.
<telerik:RadEditor Skin="Windows7" ToolsFile="~/Content/tools.xml" RegisterWithScriptManager="false"
   ID="TestEditor1" runat="server" DialogHandlerUrl="Telerik.Web.UI.DialogHandler.axd"
   SpellCheckSettings-AjaxUrl="/Telerik.Web.UI.SpellCheckHandler.axd" EditModes="Design,Preview" SpellCheckSettings-FragmentIgnoreOptions="All" SpellCheckSettings-WordIgnoreOptions="RepeatedWords,UPPERCASE">
</telerik:RadEditor>

This piece of code is working ok on IE. However, I cannot write anything nor use any tool from the editor on Firefox7 and Chrome 9.0.597.98.

I'm using the Q2 2011 version of the RadControls for AJAX

P.S: Updated Chrome to 14.0.835.202 m, it does not work.
Oscar
Top achievements
Rank 1
 answered on 19 Oct 2011
3 answers
107 views
Hello,

We are using several radtextboxes in our application and the top margin is not able to be set to 0px in IE7. The top margin seems to be 2px in IE7, and when I set vertical-align:top or bottom !important its only off by 1px. It renders fine in IE8-9, and Chrome. We have the same problem with the raddatepicker but there is only a 1px margin on it. I know setting top:-1px; will work in IE7 but the problem is it breaks it for all other browsers.

Do you know any way to get rid of the top margin on IE7 without executing different CSS based on browser?

Thank you,

Tzvetan
Galin
Telerik team
 answered on 19 Oct 2011
0 answers
63 views
I upgraded to Q2 2011 and noticed a bug with RadWindow's scrollbars: when I select an item from a RadComboBox the RadWindows' scrollbars are hidden!!!. I tested it with Q3 2010 and it works OK.
Some considerations:
- RadWindow has modal & autosized
- RadComboBox sends an ajax postback when the item is selected. If I set AutoPostback = false it works ok.

Any idea how to solve this?
Thanks!

[UPDATE]
I have an event firing after the ajax postback, that autosizes the RadWindows again. It hiddes scrollbars if oWindow.autoSize(true). If I call oWindow.autoSize() (without the "true" parameter) it works ok.
Jorge
Top achievements
Rank 1
 asked on 19 Oct 2011
5 answers
196 views
Hai,

I have a radgrid. In the template field, I have a radcombobox. Radcombox is filled in the Itemdatabound event of grid.

When the user select an item in the combox, I want a javascript validation, whether the selected item is already selected in any other radcombox in any other row of the grid.

So in the OnClientSelectedIndexChanged event of Radcombo, how can I access radcomboboxes in other rows of the radgrid?

Please help me.

Thanks
Regeesh
Regeesh Joseph
Top achievements
Rank 1
 answered on 19 Oct 2011
2 answers
100 views
My appointment has title="whatever the title is" in one of the divs generated by the telerik tool.  This causes a mouseover pop-up in firefox and chrome, and I don't want that.

How can I disable this?
Ivana
Telerik team
 answered on 19 Oct 2011
1 answer
171 views
I like to get the RadPane on the RadSplitter collapsed from codebehind preferably after post back. I saw few options using javascript but I want to do it on the codebehind so I can do it after every post back. Or I want the radpane to show collapsed after every page postback even with ExpandPanelId set. 

Please gimme some solution.

Vijai
Dobromir
Telerik team
 answered on 19 Oct 2011
1 answer
655 views

HI

OnSelectedIndexChanged Issue:

when user selects the index value from radcombobox its does not fire OnSelectedIndexChanged for frist time.
acutally it does not fire afterwords until some other controls his postback
then radcombobox OnSelectedIndexChanged get fire first and then other control's  event.


ASPX
<form id="form1" runat="server" method="post"> 
 <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  </telerik:RadScriptManager> 
<div>
 <telerik:RadComboBox ID="rcbResource" runat="server" Height="200px" Width="230px"                                     AutoPostBack="true" DropDownWidth="500px" EmptyMessage="Search a Text" HighlightTemplatedItems="true"
  
EnableLoadOnDemand="true"  Filter="Contains"  OnItemsRequested="rcbResource_ItemsRequested" OnSelectedIndexChanged="rcbResource_SelectedIndexChanged"  MarkFirstMatch="true" EnablePostBackOnRowClick="true" >
    <HeaderTemplate>
      <table cellspacing="0" cellpadding="0">
        <tr>
          <td style="font-size: 12px; width: 150px; word-wrap: break-word;">
            Key
          </td>
          <td style="font-size: 12px; padding-left: 10px">
             Text
          </td>
        </tr>
      </table>
    </HeaderTemplate>
    <ItemTemplate>
    <table width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid grey">
     <tr>
      <td class="menuoff" onmouseover="className='menuon';" onmouseout="className='menuoff';">
          <%# DataBinder.Eval(Container, "Text")%>
      </td>
  
      <td style="text-align: left;">
       <%# DataBinder.Eval(Container, "Attributes['Text']")%>
     </td>
     </tr>
    </table>
    </ItemTemplate>
  </telerik:RadComboBox>
</div>  
</form>


C# ASP.NET

 

protected void rcbResource_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
 {
    if (e.Text != "")
    {
       var SearchList = DataManager.SearchResourceText(e.Text.Trim());
             foreach (var resource in SearchList)
             {
                 RadComboBoxItem item = new RadComboBoxItem();
                 //set the key
                 item.Text = resource.mkFieldId;
                 item.Value = resource.mkDictionaryId.ToString();
                 string text = resource.Text;
                 item.Attributes.Add("Text", text);
                 rcbResource.Items.Add(item);
                 item.DataBind();
              }
  
         }
  
         else
         {
             RadComboBoxItem item = new RadComboBoxItem();
             item.Text = "No Key Found";
             item.Value = "1";
             string text = "Enter a text";
             item.Attributes.Add("Text", text);
             rcbResource.Items.Add(item);
             item.DataBind();
         }
   }     
 
  
  
protected void rcbResource_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {
  
        if (lstResourceIds.Items.FindByText(e.Text) != null)
        {
             lstResourceIds.SelectedValue = lstResourceIds.Items.FindByText(e.Text).Value;
            rcbResource.Text = "";
  
        }                          
 
    }

 

 
please advise if im missing something.
regards
Shaz

 

 

Shahzad Ilyas
Top achievements
Rank 2
 answered on 19 Oct 2011
3 answers
342 views
For some reason my combobox will not fire its SelectedIndexChanged method. I created another combobox just below it without any header or item templates and its selectedindexchanged works just fine. Can anyone tell me why the code below is not working?

<telerik:RadComboBox ID="employeeList" runat="server" Height="200px" Width="300px"
            DropDownWidth="300px" HighlightTemplatedItems="true" CausesValidation="false"
            EnableLoadOnDemand="true" EmptyMessage="Choose and Employee"
            Filter="StartsWith" AutoPostBack="true"
            onitemsrequested="employeeList_ItemsRequested"
            onselectedindexchanged="employeeList_SelectedIndexChanged">
            <HeaderTemplate>
                <table>
                    <tr>
                        <td style="width: 150px;">
                            Employee Name
                        </td>
                        <td style="width: 200px;">
                            Employee UserName
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table style="width: 300px" cellspacing="0" cellpadding="0">
                    <tr>
                        <td style="width: 150px">
                            <%# DataBinder.Eval(Container, "Attributes['Name']") %>
                        </td>
                        <td style="width: 150px">
                            <%# DataBinder.Eval(Container, "Attributes['ID']") %>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </telerik:RadComboBox>
protected void employeeList_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            SqlConnection connection = new SqlConnection(GetConnectionString());
            connection.Open();
            SqlCommand cmd = new SqlCommand();
            //DataTable dt = new DataTable();
            cmd = new SqlCommand("DisplayEmployeeNamesForDropDown", connection);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Add(new SqlParameter("@ManagerID", TimeSlayer.ActiveDirectoryUser.UserName(User)));
            //SqlDataAdapter da = new SqlDataAdapter(cmd);
            //da.Fill(dt);
 
            SqlDataReader dr;
            dr = cmd.ExecuteReader();
 
            //populate combo box for goal review form
 
            //foreach (DataRow row in dt.Rows)
            //{
            //    employeeComboBox.Items.Add(new RadComboBoxItem(row[1].ToString(), row[0].ToString()));               
            //}
 
            foreach (IDataRecord record in dr)
            {
                RadComboBoxItem item = new RadComboBoxItem();
 
                //item.Text =
                //item.Value = record["Name"].ToString();
 
                item.Attributes.Add("ID", record["ID"].ToString());
                item.Attributes.Add("Name", record["Name"].ToString());
 
 
                employeeList.Items.Add(item);
                item.DataBind();
           }
 
            cmd.Connection.Close();
            cmd.Connection.Dispose();
        }
Shahzad Ilyas
Top achievements
Rank 2
 answered on 19 Oct 2011
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?