Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
53 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
125 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
591 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
293 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
72 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
121 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
118 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
56 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
5 answers
82 views
I am trying to store/retrieve a list of selected items in a file explorer control. I have been able to retrieve the checked nodes and store them without any difficulty but I am running in to a problem when I try to load the list of items back in the the explorer if they reside in nodes that have not been loaded.

Is it possible to trigger the FileExplorer control to pre-load/expand a node path from the server api?
Dobromir
Telerik team
 answered on 19 Oct 2011
2 answers
108 views
Hi guys.

I have a masked column with dataformatstring set to {0:##.###.###/####-##} and mask set to ##.###.###/####-##.The grid displays and edits the column as expected.
The problem is that I dont´t want to save the format characters to the database. I want to save the raw data 34889238000131 and not the formatted data 34.889.238/0001-31. 
What´s the best way to go in this case?

Thank you.

Zenute Marins
Top achievements
Rank 1
 answered on 19 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?