Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
52 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
124 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
68 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
146 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
618 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
315 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
0 answers
91 views
Dears ,
i have a problem with Ajax rad control,

the grid works done but when navigate on any page on the application the error was occurred:

c.parentNode.removeChild(c);

c always return null???????????

Note : i use Telerik V2010.1.519.20

can anyone help me please?
<td valign="top">
<telerik:RadAjaxManager ID="radAjaxManager" runat="server">
<AjaxSettings>
<telerik:AjaxSetting>
 <UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radAjaxPanel" LoadingPanelID="radAjaxLoadingPanel" />
  </UpdatedControls>
    </telerik:AjaxSetting>
     </AjaxSettings>
   </telerik:RadAjaxManager>
  <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxPanel ID="radAjaxPanel" runat="server" LoadingPanelID="radAjaxLoadingPanel">
  <telerik:RadGrid ID="gvMyTransactions" runat="server" Width="100%" OnColumnCreating="GridViewColumnCreating"
 OnItemCommand="GridViewItemCommand" OnItemCreated="GridViewItemCreated" OnPageIndexChanged="GridViewPageIndexChanged"
 OnNeedDataSource="GridViewNeedDataSource" OnSortCommand="GridViewSortCommand"
 OnItemDataBound="GridViewItemDataBound">
 <MasterTableView CellSpacing="0" CellPadding="0">
<Columns>
                        .....
Youri
Top achievements
Rank 1
 asked on 19 Oct 2011
4 answers
142 views
If you have a rad grid that has say 100 items which causes the page to scroll, if you try to drag an item from the bottom of the rad grid to another rad grid that is not visible (due to the scrolling) the page does not scroll.

I know that this is a browser issue rather than a radgrid issue, but does anyone have a good workaround?

thanks

james
Galin
Telerik team
 answered on 19 Oct 2011
2 answers
138 views
Hi,

For a RadAsyncUpload contol I set MaxFileInputsCount="1" and  MaxFileSize="4194304"  (4MB) .When I am trying to upload a file morethan 4MB then the upload indicator image turns red and on click of cancel upload control is missing. This is happening only in Firefox

Thanks in advance.
Genady Sergeev
Telerik team
 answered on 19 Oct 2011
2 answers
66 views

Hi,
I was able to compile the code and deploy in windows xp without any problem but when I compiled in Win 7 Enterprise and deployed on to IIS server it gave the server error saying it cannot load type 'Telerik.Web.UI.DialogHandler'.
can you please explain whether this error is due to Windows 7 introducing new http module tag <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>  in web.config or not?
 Please find the web.config error after deployment in production server , as of now I have rolled back all the \bin\compiled items. Please help me out. Do I have to copy the app. Telerik DLL in bin folder or register it in Global assembly cache (GAC) using GACUtil.exe in prod IIS server.

Server Error in '/' Application.

 

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'Telerik.Web.UI.DialogHandler'.

Source Error:

Line 110:   <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 111:   <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
Line 112:      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
Line 113:      <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
Line 114:      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" />

Source File: D:\inetpub\azcollectorsguide\web.config    Line: 112

 

Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618

Anu
Top achievements
Rank 1
 answered on 19 Oct 2011
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?