This is a migrated thread and some comments may be shown as answers.

RadCombx in Window Not working when Compatibility View is checked!

1 Answer 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
Oliver
Top achievements
Rank 1
Oliver asked on 17 Jul 2010, 03:57 PM
i used RadCombobox in a Rad Window.
when Compatibility View in IE is Check , my dorpdown combobox is out of side.
But, when Compatibility View in IE is not Check , combobox is ok.

many user checking this option in IE.
please help me.

my code is:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SetSuggestState.aspx.vb" Inherits="Web.SetSuggestState" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
      html
      {
      direction: rtl;
      }
    
        html, body, form
        {
         padding: 0;
         margin: 0;
         height: 100%;
         background: #f2f2de;
         
        }
         
        body
        {
         font: normal 11px Tahoma, Verdana, Sans-serif;
         
        }
         
        fieldset
        {
         height: 150px;
        }
         
        *+html fieldset
        {
         height: 154px;
         width: 268px;
        }
                 
        </style>
        
</head>
<body >
    <form id="Form2" method="post" runat="server">
        <asp:ScriptManager ID="RadScriptManager1" runat="server"></asp:ScriptManager>
 
 
        <script  language="javascript">
 
          function SetEnable(Executor, SuggestRejectType, SuggestRunDep, SuggestRunType, Income, Cost, Benefit)
          {
              var cmbExecutor = $find('<% = cmbExecutor.ClientID  %>');
              var cmbSuggestRejectType = $find('<% = cmbSuggestRejectType.ClientID  %>');
              var cmbSuggestRunDep = $find('<% = cmbSuggestRunDep.ClientID  %>');
              var cmbSuggestRunType = $find('<% = cmbSuggestRunType.ClientID  %>');
              var txtIncome = document.getElementById('<% = txtIncome.ClientID  %>');
              var txtCost = document.getElementById('<% = txtCost.ClientID  %>');
              var txtBenefit = document.getElementById('<% = txtBenefit.ClientID  %>');
 
              if (Executor) cmbExecutor.enable(); else cmbExecutor.disable();
              if (SuggestRejectType) cmbSuggestRejectType.enable(); else cmbSuggestRejectType.disable();
              if (SuggestRunDep) cmbSuggestRunDep.enable(); else cmbSuggestRunDep.disable();
              if (SuggestRunType) cmbSuggestRunType.enable(); else cmbSuggestRunType.disable();
 
              txtIncome.disabled = !Income;
              txtCost.disabled = !Cost;
              txtBenefit.disabled = !Benefit;
               
          }
           
          function OnValueChanged(sender, args) {
              var benefit = $find("<%= txtBenefit.ClientID %>");
              if (sender.get_id() == "txtInCome") {
                  var income = sender;
                  var cost = $find("<%= txtCost.ClientID %>");
              }
              else {
                  var income = $find("<%= txtInCome.ClientID %>");
                  var cost = sender;
              }
              var result = income.get_value() - cost.get_value();
              benefit.set_value(result);
          }
        </script>
 
 
 
        <div style="width: 268px; height: 193px;">
        <asp:HiddenField ID="retval" runat ="server"  Value ="None" />
        
 
 
  <table>
   <tr><td><table><tr>
 
       <td>
               <asp:RadioButtonList   ID="rblSuggestState"  Width ="500px"  RepeatColumns ="4"  runat="server">
                   <asp:ListItem onclick="SetEnable(true, false, true, true, true, true, true) ;" Value="1">پذیرفته است</asp:ListItem>
                   <asp:ListItem onclick="SetEnable(false, false, false, false, false, false, false);" Value="2">نیاز به تکمیل دارد</asp:ListItem>
                   <asp:ListItem onclick="SetEnable(false, false, false, false, false, false, false) ;" Value="3">نیاز به تصویب دارد</asp:ListItem>
                   <asp:ListItem onclick="SetEnable(false, true, false, false, false, false, false) ;" Value="4">رد پیشنهاد</asp:ListItem>
          </asp:RadioButtonList >
          
       </td>
 
   </tr></table></td></tr>
   <tr><td><table><tr>
          
       <td style="width: 100px" >علت رد پیشنهاد</td>   
       <td>
       <telerik:RadComboBox ID="cmbSuggestRejectType"  Enabled="false"  Font-Names="Tahoma"  runat="server" Height="100px" Width="200px"
            MarkFirstMatch="true"  EnableLoadOnDemand="true"  HighlightTemplatedItems="true" EmptyMessage="انتخاب نمائید..."  Skin="Windows7"   >
            <headertemplate>
             <table style="width:300px; text-align:right">
              <tr>
              <td style="width:300px;">علت رد پیشنهاد</td>
              </tr>
              </table>                               
             </headertemplate>
  
           <itemtemplate >
           <table style="width:200px; text-align:right">
           <tr>
           <td style="width:100px;">  <%# DataBinder.Eval(Container.DataItem, "BaseValue")%></td>
           </tr>
           </table>
           </itemtemplate>
          </telerik:RadComboBox>
       </td>    
 
   </tr></table></td></tr>
   <tr><td><table><tr>
   
         <td style="width: 100px" >نحوه اجرا</td>   
         <td>
         <telerik:RadComboBox ID="cmbSuggestRunType" Enabled ="false"  Font-Names="Tahoma"  runat="server" Height="100px" Width="200px"
            MarkFirstMatch="true"  EnableLoadOnDemand="true"  HighlightTemplatedItems="true" EmptyMessage="انتخاب نمائید..."  Skin="Windows7"   >
            <headertemplate>
             <table style="width:300px; text-align:right">
              <tr>
              <td style="width:300px;">نحوه اجرا</td>
              </tr>
              </table>                               
             </headertemplate>
  
           <itemtemplate >
           <table style="width:200px; text-align:right">
           <tr>
           <td style="width:100px;">  <%# DataBinder.Eval(Container.DataItem, "BaseValue")%></td>
           </tr>
           </table>
           </itemtemplate>
          </telerik:RadComboBox>
          </td>    
   </tr></table></td></tr>
  
   <tr><td><table><tr>
   
         <td style="width: 100px" >واحد مجری</td>   
         <td>
         <telerik:RadComboBox ID="cmbSuggestRunDep" Enabled ="false"  Font-Names="Tahoma"  runat="server" Height="100px" Width="200px"
            MarkFirstMatch="true"  EnableLoadOnDemand="true"  HighlightTemplatedItems="true" EmptyMessage="انتخاب نمائید..."  Skin="Windows7"   >
            <headertemplate>
             <table style="width:300px; text-align:right">
              <tr>
              <td style="width:300px;">واحد مجری</td>
              </tr>
              </table>                               
             </headertemplate>
  
           <itemtemplate >
           <table style="width:200px; text-align:right">
           <tr>
           <td style="width:100px;">  <%# DataBinder.Eval(Container.DataItem, "BaseValue")%></td>
           </tr>
           </table>
           </itemtemplate>
          </telerik:RadComboBox>
          </td>    
   </tr></table></td></tr>
  
 
   <tr><td><table><tr>
   
         <td style="width: 100px" >مسئول اجرا</td>   
         <td>
         <telerik:RadComboBox ID="cmbExecutor" Enabled ="false"  Font-Names="Tahoma"  runat="server" Height="100px" Width="200px"
            MarkFirstMatch="true"  EnableLoadOnDemand="true"  HighlightTemplatedItems="true" EmptyMessage="انتخاب نمائید..."  Skin="Windows7"   >
            <headertemplate>
             <table style="width:300px; text-align:right">
              <tr>
              <td style="width:300px;">مسئول اجرا</td>
              </tr>
              </table>                               
             </headertemplate>
  
           <itemtemplate >
           <table style="width:200px; text-align:right">
           <tr>
           <td style="width:100px;">  <%# DataBinder.Eval(Container.DataItem, "PersName")%></td>
           </tr>
           </table>
           </itemtemplate>
          </telerik:RadComboBox>
          </td>    
   </tr></table></td></tr>
  
 
   <tr><td><table><tr>
   
         <td style="width: 100px" >درآمد</td>   
         <td>
         <telerik:RadNumericTextBox DecimalDigits="0" DecimalSeparator="" ID="txtInCome" runat="server">
         <ClientEvents OnValueChanged="OnValueChanged" />
         <NumberFormat DecimalDigits="0" />
         </telerik:RadNumericTextBox>
          
         </td>    
         <td style="width: 100px" >هزینه</td>   
         <td>
         <telerik:RadNumericTextBox DecimalDigits="0"    ID="txtCost"  runat="server">
         <ClientEvents OnValueChanged="OnValueChanged" />
         <NumberFormat DecimalDigits="0" />
         </telerik:RadNumericTextBox>
         </td>    
         <td style="width: 100px" >صرفه اقتصادی</td>   
         <td>
         <telerik:RadNumericTextBox DecimalDigits="0"  ID="txtBenefit" Enabled ="false"  runat="server">
          <NumberFormat DecimalDigits="0" />
         </telerik:RadNumericTextBox>
         </td>    
   </tr></table></td></tr>
  
  </table>
 
      <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/resources/images/ActionButtons/btnsave.GIF"                         
                        ToolTip="ثبت" />      
     <asp:ImageButton ID="btnCancel"  runat="server" ImageUrl="~/Resources/Images/ActionButtons/btncancel.GIF"
                    ToolTip="بازگشت" />
                 
        </div>
    </form>
 
 
      <script type="text/javascript">
 
          function GetRadWindow() {
              var oWindow = null;
              if (window.radWindow) oWindow = window.radWindow;
              else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
              return oWindow;
          }
 
 
    
          var ret;
          ret = document.getElementById("retval").value;
          var oWnd = GetRadWindow();
 
          if (ret == 'SaveClose') {
              GetRadWindow().BrowserWindow.refreshGrid();
              oWnd.close(oWnd);
          }
          if (ret == 'Close') {
              oWnd.close(oWnd);
          }
 
              
          
        </script>
 
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 27 Jul 2010, 12:53 PM
Hello Oliver,

This is a bug. I logged it in our ITS and updated your Telerik points for reporting the issue. You can track its status here. Thank you.

Greetings,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Oliver
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or