Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
Hi,

We are facing problem in RadGrid context menu. On Right click in the respective grid rows instead of opening the edit form. Throws the webresource.axd handler error. . We created a heirarchial grid when we try to open the grid throws the error. Pls check and reply back with the resolution for this problem. The same application works in our local system when we try to deploy in the production we faced this problem. it can able to render to  open the functionality. Pls check the below mentioned URL to test the problem.

http://test.aptisys.com/Premises.aspx


Thanks & Regards
Nagarajan.
Sebastian
Telerik team
 answered on 27 Jul 2010
4 answers
153 views
I have made a custom dialog to create a custom link. This dialog paste the following code in the editor
<a href="http://www.myurl.com" onclick="xt_med('C', '2', 'XitiClicName', 'N')">TitleLink</a>  

all works fine, expect if i click on the link in the radeditor ( js error with IE7 , work fine with Firefox).
Error line 20
Undefined object

I'm using Q1 2008 radeditor.
Rumen
Telerik team
 answered on 27 Jul 2010
1 answer
153 views
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>
Simon
Telerik team
 answered on 27 Jul 2010
4 answers
469 views
Hi,

I am using Tab Strip. There are 2 tabs in that. I wanted to distnguish between selected & Non-Selected Tabs. So, I wanted to change the cursor style(from hand symbol to none) on the hover of Selected Tab.

I have tried the "SelectedCssClass " property as follows.

   cursor

 

 

:none !important;

 


This is working well except one scenario. ie, when I hover my mouse from unselected Tab to Selected Tab, These changes are not getting applied. 

 

 

 

 

Help me to get this resolved.

Thanks, Malli
Mallikharjun Mulagundla
Top achievements
Rank 1
 answered on 27 Jul 2010
3 answers
186 views
Here I am with another question : How to disable the bulit-in context menu? I have this in my toolsfile.xml :

<contextMenus> 
    <contextMenu forElement="IMG" enabled ="false"
    </contextMenu> 
    <contextMenu forElement="TABLE"
      <tool Name="ToggleTableBorder" /> 
      <tool Name="SetTableProperties" /> 
      <tool Name="DeleteTable" /> 
    </contextMenu> 
    <contextMenu forElement="TD"
      <tool Name="InsertRowAbove" /> 
      <tool Name="InsertRowBelow" /> 
      <tool Name="DeleteRow" /> 
      <tool Name="InsertColumnLeft" /> 
      <tool Name="InsertColumnRight" /> 
      <tool Name="MergeColumns" /> 
      <tool Name="MergeRows" /> 
      <tool Name="SplitCell" /> 
      <tool Name="DeleteCell" /> 
      <tool Name="SetCellProperties" /> 
    </contextMenu> 
    <contextMenu forElement="A" enabled="false"
    </contextMenu> 
    <contextMenu forElement="BODY"
      <tool Name="Cut" /> 
      <tool Name="Copy" /> 
      <tool Name="PasteFromWord" /> 
    </contextMenu> 
  </contextMenus> 

Depending on where I click I still have the old one with all the paste option.
Dobromir
Telerik team
 answered on 27 Jul 2010
2 answers
108 views
Hi,
when i am using the radgrid,
the total data is displaying in each cell.
My intention is to "compress the content of cell to specific no.of characters,
and when i am resizing the column it has to display the total content."
so it will be good for look and feel.
Suggest me in this whether is there any built in function or any thing.
Thanks.


shiva
Top achievements
Rank 1
 answered on 27 Jul 2010
4 answers
172 views
I have a telerik combox which worked properly: when the drop down list is selected dropdown list opens to the left and all items selecteable. I changed the CSS which positions the combox to POSITION:absolute and now the dropdown list opens to the right. See attached image. Even after changing the CSS back to position relative, I still get the same problem. Can anyone help?
Kalina
Telerik team
 answered on 27 Jul 2010
1 answer
97 views

Hi,

I would like to know how to upload image using RadFileUpload which is inside the FormTemplate of EditFormSettings in RadGrid .


I am trying to finding the solution for this for past 4 days. I didn't get any solution

Please help me in this

Quick replay highly appreciated


Prathap
Princy
Top achievements
Rank 2
 answered on 27 Jul 2010
3 answers
161 views
Hello,

I think that a "Print" button would be extremely helpful if it were built into the RadGrid control. I think that many different users would find a print feature beneficial. It would be great if it were added and there were options that could be set to: 

  1. Print RadGrid
  2. Print Selected Rows Only
  3. Print Master RadGrid & any detail tables
  4. Print Master/Detail rows and page break when the DataKeyField value of the Master Table View changed
(example)
MASTER ROW
DETAIL ROW
DETAIL ROW
PAGE BREAK
MASTER ROW
DETAIL ROW
DETAIL ROW

Thanks!
Casey
Daniel
Telerik team
 answered on 27 Jul 2010
1 answer
132 views
Can I use RadGrid with MySql Connector for .NET?
RadGrid auto generate delete and update command but when I perform, it can not change
Rosen
Telerik team
 answered on 27 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?