Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
343 views
Dear

This html code

<html xmlns="http://www.w3.org/1999/xhtml" height="100%">
<head runat="server">
    <title>未命名頁面</title>
    <style type="text/css">  
    html, body, form  
    {  
        height: 100%;  
        margin: 0px;  
        padding: 0px;  
        overflow: hidden;  
    }  
    </style>  
</head>
<body scroll="no" height="100%">
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager" runat="server" />  
        <div id="ParentDivElement" style="height: 100%;">  
            <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%"  
                Orientation="Horizontal" Skin="Outlook">  
                <telerik:RadPane ID="TopPane" runat="server" Height="100" MinHeight="85" MaxHeight="150"  
                    Scrolling="Both">  
                </telerik:RadPane>  
                <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" />  
                <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500">  
                    <telerik:RadSplitter ID="NestedSplitter" runat="server" Skin="Outlook" LiveResize="true">  
                        <telerik:RadPane ID="LeftPane" runat="server" Width="200" MinWidth="150" MaxWidth="400">  
                            <!-- Place the content of the pane here -->  
                        </telerik:RadPane>  
                        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" />  
                        <telerik:RadPane ID="ContentPane" runat="server">  
                            <!-- Place the content of the pane here -->  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>                            
                            <telerik:RadMenu ID="mBar" Runat="server" Skin="Office2007" Width="100%">
                                <Items>
                                    <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">
                                    </telerik:RadMenuItem>
                                </Items>
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </telerik:RadMenu>
         
        </td>
    </tr>
</table>
                        </telerik:RadPane>  
                    </telerik:RadSplitter>  
                </telerik:RadPane>  
            </telerik:RadSplitter>  
  
    </div>
    </div>
    </form>
</body>
</html>

When I use IE8 to browse this page is normal
But when I change IE8 to [Compatibility View]
The RadMenu will disappear when I scrolling page and then mouse over it
I need resize IE8 browser, RadMenu will show on page

How to fix it?
Thank you very much~>"<
Princy
Top achievements
Rank 2
 answered on 23 Apr 2014
1 answer
356 views
Is any control like ON/OFF Buttons(see the Screenshot) does Telerik offering?
Ivan Zhekov
Telerik team
 answered on 23 Apr 2014
1 answer
91 views
I am using Radcombo box inside a Telerik grid. The aspx code is below for this control:

                                <EditItemTemplate>
                                    <telerik:RadComboBox runat="server" TabIndex="4" ID="rdcmbgrdFesIssuingCompany" EnableLoadOnDemand="True"
                                        DataTextField="carriername" DataValueField="carriernameid" AutoPostBack="true"
                                    HighlightTemplatedItems="true" ShowDropDownOnTextboxClick="false"
                                    ItemsPerRequest="10" EnableVirtualScrolling="true"
                                     OnClientBlur= "ValidateCombinations"   OnItemsRequested="RdCmbIssuingCompany_ItemsRequested" 
                                        OnSelectedIndexChanged="RdCmbIssuingCompany_SelectedIndexChanged" Filter="StartsWith"
                                        OnClientItemsRequesting="OnClientItemsRequesting" OnClientItemsRequested="OnClientItemsRequested"
                                 OnClientFocus="OnClientFocus" OnClientDropDownOpening="OnClientDropDownOpening" MinFilterLength="0"
                                 ShowMoreResultsBox="false" NoWrap="true" DropDownAutoWidth="Enabled" OnClientDropDownOpened="OnRadDropDownOpened"
                                  OnClientSelectedIndexChanged="isTabActive" CausesValidation="true" CssClass="ovfl-hidden">
                                    </telerik:RadComboBox>
                                </EditItemTemplate>



OnItemRequsted below server side event has been called:

Protected Sub RdCmbIssuingCompany_ItemsRequested(ByVal sender As Object, _
                                                     ByVal e As  _
   RadComboBoxItemsRequestedEventArgs)
        
            Carriers.Tables(0).DefaultView.RowFilter = String.Empty
            Dim dvCarrier As DataView = Carriers.Tables(0).DefaultView()
            e.Text = e.Text.Replace("%", "[%]")
            e.Text = e.Text.Replace("'", "[']")
            'For Issuing         
            dvCarrier.RowFilter = "Issuing=1 and carriername like'" _
                                                     & e.Text & "%'"

            e.Message = dvCarrier.Count

            Dim comboBox As RadComboBox = DirectCast(sender, RadComboBox)
            Dim itemMessage As New RadComboBoxItem()


            ' Clear the default Item that has been re-created from ViewState at this point.
            comboBox.Items.Clear()
            dvCarrier.RowFilter = "Issuing=1"
            Dim endOffset As Integer = Math.Min(e.NumberOfItems + 10, dvCarrier.Count)
            comboBox.DataSource = dvCarrier
            comboBox.DataBind()
        
    End Sub


Now when user type text in this control then first it shows all datalist and a "loading" processing text and then it shows the filtered result to the user. For which i have attached the screen shot namely 1 (before server side event called) and 2 (after server side event called).

Now the expected result is that after typing the text in the control it must first filter the record then show the filtered data to the user directly. it should not show the unfiltered data to the user like in first screen shot.

So any idea/suggestion will be helpful.
Shinu
Top achievements
Rank 2
 answered on 23 Apr 2014
3 answers
121 views
I have a Scheduler that only displays All Day appointments and I'm using the AppointmentComparer to sort the entries based on Description.  This works great when the scheduler intially loads in the Month View.  But when I switch it to the Week view, the Appointments are not sorted correctly.  If I switch it back to the Month view, they are again in the incorrect order.  But if I load the page again, the appointments are sorted correctly.  The AppointmentComparer is called only on the initial load and not when I switch to the Week or Day or Month.  How can I call the AppointmentComparer when I switch Views?
Plamen
Telerik team
 answered on 23 Apr 2014
3 answers
263 views
I updated the Editor control to the 2014 Q1 .NET 4.0 version. Now when we decide to bold or underline any text, the selection length will be reduced by one character each time.

We first noticed it with content in the 29k size range of markup text, but I have been able to duplicate it with less than 4k of text.

I have no special settings on the control, but have added:
ContentFilter="None"  - no change
RegisterWithScriptManager="true"   - no change

I have also noticed that in the HTML markup 'innerHtml' was added to the tags being used:
<STRONG innerHtml>T</STRONG>
​<SPAN style="TEXT-DECORATION: underline" innerHtml>E</SPAN>

This only happens in Internet Explorer version 8 - 11. Works as intended in Firefox or Chrome.

Pic 1 - Initial entry
Pic 2 - Text Selected
Pic 3 - Bold button clicked
Pic 4 - Bold button clicked again(unbolding selection)
Pic 5 - Bold button clicked again(bolding selection)
Pic 6 - Bold button clicked again(unbolding selection again)



Any ideas?

Jay




Princy
Top achievements
Rank 2
 answered on 23 Apr 2014
2 answers
196 views
I am creating a RadGrid as follows:
protected override void OnInit(EventArgs e)
      {
          this.Controls.Clear();
          this._RadLoadingPanel.ID = "_RadLoadingPanel";
          this._RadLoadingPanel.Transparency = 30;
          this._RadLoadingPanel.Skin = "WebBlue";
          this._RadLoadingPanel.BackgroundPosition = AjaxLoadingPanelBackgroundPosition.Center;
          this.Controls.Add(this._RadLoadingPanel);
 
          this._RadGrid1.Skin = "WebBlue";
          this._RadGrid1.Width = Unit.Percentage(98);
          this._RadGrid1.GridLines = GridLines.None;
 
          this._RadGrid1.AutoGenerateColumns = false;
          this._RadGrid1.AllowSorting = true;
          this._RadGrid1.GridLines = GridLines.None;
          this._RadGrid1.PageSize = 100;
          this._RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
          this._RadGrid1.ShowGroupPanel = true;
          this._RadGrid1.AllowPaging = true;
          this._RadGrid1.AllowSorting = true;         
          this._RadGrid1.EnableLinqExpressions = false;
          this._RadGrid1.MasterTableView.NoMasterRecordsText = string.Format("There are no documents associated with this order / quote / proposal.");
          this._RadGrid1.MasterTableView.Width = Unit.Percentage(100);                 
           
          this._RadGrid1.NeedDataSource += RadGrid1_NeedDataSource;
                      
         // Setup Columns          
          GridBoundColumn boundColumn = new GridBoundColumn();
          this._RadGrid1.MasterTableView.Columns.Add(boundColumn);
          boundColumn.DataField = this._DocList.DescriptionColumn.ColumnName;
          boundColumn.HeaderText = "Document Type";
          boundColumn.UniqueName = "DocumentType";
          boundColumn.AllowSorting = true;     
        
          this._UpdatePanel.Unload += new EventHandler(UpdatePanel_Unload);
          this._UpdatePanel.ID = "ajaxPanel";
          this._UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
          this._UpdatePanel.ContentTemplateContainer.Controls.Add(this._RadGrid1);
 
          this.Controls.Add(this._UpdatePanel);
                       
          base.OnInit(e);
        
      }
protected override void OnPreRender(EventArgs e)
      {
          _RadGrid1.MasterTableView.Rebind();
          base.OnPreRender(e);       
          var ajaxManager = RadAjaxManager.GetCurrent(Page);
 
          if (ajaxManager != null)
              ajaxManager.AjaxSettings.AddAjaxSetting(this._UpdatePanel, this._RadGrid1, this._RadLoadingPanel);         
      }

It gives the following error:
Cannot unregister UpdatePanel with ID 'ajaxPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel

After reading in forums I added the following:
void UpdatePanel_Unload(object sender, EventArgs e)
     {
         MethodInfo methodInfo = typeof(ScriptManager).GetMethods(BindingFlags.NonPublic | BindingFlags.Instance)
     .Where(i => i.Name.Equals("System.Web.UI.IScriptManagerInternal.RegisterUpdatePanel")).First();
         methodInfo.Invoke(ScriptManager.GetCurrent(Page),
             new object[] { sender as UpdatePanel });
     }      

This did not resolve it. I even added this.COntrols.clear, but did not work. When I comment out the  boundColumn.DataField = this._DocList.DescriptionColumn.ColumnName; statement, it displays a grid.
Please help me resolve this.
Eyup
Telerik team
 answered on 23 Apr 2014
3 answers
217 views
We are using telerik version 2011.2.915.40.

With Date Picker I am facing issue where I am getting auto populated 0nan/nan/0nan date in date picker and I have not used any Max/Min/Selected date for picker. I am getting this error only for chrome version 34.0.1847.116. It does work for other versions of Chrome and also for Safari/IE/Mozilla.

When I looked into chrome developer tools, I found error stating Invalid YEAR.

Could you please assist on this as we are end up with solutions and clients are insisting on using Chrome only.

Regards,
Dhaval Shukla
Shinu
Top achievements
Rank 2
 answered on 23 Apr 2014
1 answer
77 views
Telerik ASP.Net AJAX

Version – 2012.1.215.40


Following is the issue that we are facing while using “telerik
radgrid” control. Using scrollbars feature for the radgrid we can see the white
space highlighted in RED (image "GridViewScroll issue 1")

However we would want this white space should be equivalent to
the other column headers background. Is there any solutions with the above mentioned version of teleriks.

While going through the demo on telerik website, I have
found that this issue is not there in current version(ref below figure), can
you please ensure that this issue is resolved in latest version of telerik.
(image "GridViewScroll issue 2")
 



 





 

Venelin
Telerik team
 answered on 23 Apr 2014
11 answers
731 views
I've got a grid with 3 columns set to display=false and after updating my radcontrols to the non-trial version they appear on pageLoad even when Display="False" is set. Any ideas as to what could be the problem there?
Princy
Top achievements
Rank 2
 answered on 23 Apr 2014
1 answer
83 views
i have a radgrid with this column :

<telerik:GridBoundColumn Display="false" DataField="FEATURE_ID" UniqueName="FeatureID"></telerik:GridBoundColumn>

and it contains a detailtable.

what i want is to check every row, if Feature ID = 3 , the row should be expanded.


Princy
Top achievements
Rank 2
 answered on 23 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?