Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views

When I insert  appointment , after I click on save button ,I link to database . and the new appointment added twice.

Once -  updated from the database , and again – display only.
 The appointment that view appears, disappears after the page refresh.

 

How can I remove the second appointment?
Peter
Telerik team
 answered on 27 Jul 2010
1 answer
130 views
hi,


in my rotator, i fixed the width,

rotator work only if the width  is upto 350px,   i want to keep rotator for width 600px, if increase the width it's not rotating and also image is not displaying.

i dont know what is the error,  below is my rotator code. 


<telerik:RadRotator ID="radrotDoctorImages" runat="server" Height="190px" Width="350px"
             ScrollDuration="1000" FrameDuration="10"  RotatorType="AutomaticAdvance" 
                    ItemWidth="110" Skin="Office2007" CssClass="rotatorStyle"   >
           
                     <ItemTemplate>
                    <table  >
                        <tr>
                            <td>
                           
                                 <a href="Listofdoctors.aspx">
                                    <asp:Image ID="Image7" runat="server" Height="100px" Width="100px" ImageUrl="~/Images/dr5.jpg" />
                                 </a>
                               
                            </td>
                        <tr>
                            <td>
                                <asp:Label ID="lblName" runat="server" Text="lblName"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                             <td>
                                <asp:Label ID="lblSpecialty" runat="server" Text="lblSpecialty"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                             <td>
                                <cc1:Rating ID="Rating6" runat="server"
                                         CurrentRating="3"  
                                         MaxRating="5"  
                                         StarCssClass="star_rating"
                                         WaitingStarCssClass="star_saved"
                                         FilledStarCssClass="star_filled"
                                         EmptyStarCssClass="star_empty"   >
                                </cc1:Rating>
                            </td>
                        </tr>
                    </table>
                 </ItemTemplate>
                      


kindly fix this issue,

regards
Priya
                
Pero
Telerik team
 answered on 27 Jul 2010
1 answer
167 views
I use radcontrols Editor 2.0 to custom field in sharepoint ,it is inherited from SPFieldMultiLineText (type name: myrichtext), when i run on sharepoint  , its ok but when i use sharepoint designer 2007 i receive error  " Failed to render 'column name A' column because of a error in the 'myrichtext' field type control. see details in log. Exception message: the RadControls folder was not found."

Thanks
Thanh
Rumen
Telerik team
 answered on 27 Jul 2010
1 answer
238 views
Hi,
I have a question/problem about implementing my own  handler.
I have follow the image uploader example in the demo but is seems that I cant get my handler to work.
To be more specific,if I have not set the radupload to use my handler it works as expected.
If I set it to use my handler (HttpHandlerUrl="~/CustomUploaderHandler.ashx") the uploading animation its always displayed and the file
isnt uploaded.One more thing is that I have set a breakpoint inside the Process method of the Handler but its not hitted.
Am I missing some configuration that is not mentioned in the demo?

the HttpHandler code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
 
namespace UploaderTest
{
    public class CustomUploadHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState
    {
 
        protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
        {
            base.Process(file, context, configuration, tempFileName);
CustomAsyncUploadResult result = CreateDefaultUploadResult<CustomAsyncUploadResult>(file);
 
            return result;
        }
 
         
 
    }
}
T. Tsonev
Telerik team
 answered on 27 Jul 2010
1 answer
117 views
hi,

the rotator is working fine in the normal aspx page, but if place the same rotator in the content page it's not working ,
i want to use rotator also in the my master page it's also not working , how can i use , below is the my design code


this is in my aspx page
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
<telerik:RadRotator id="RadRotator2" runat="server" ScrollDirection="Up" 
RotatorType="AutomaticAdvance" InitialItemIndex="0"  
ScrollDuration="300" ItemWidth="500px" Width="510px" Height="100px" 
ItemHeight="100px">
<ItemTemplate>
    
<strong>
<a href="Default.aspx"> <asp:Image ID="Image1" ImageUrl="images/electronic-medical-records-systems.jpg"    runat="server" /></a>
</strong>
<br />
<span >Starts:</span>
<span ></span>
<br />
</ItemTemplate>
<SlideShowAnimation Type="Fade" Duration="300" />
</telerik:RadRotator>
</asp:Content>


kindly provide me solution i'm in urgent need..

regards
priya
Pero
Telerik team
 answered on 27 Jul 2010
2 answers
312 views

How to make fileupload and store into database in Radgrid EditFormSettings in a popup window.
Shinu
Top achievements
Rank 2
 answered on 27 Jul 2010
1 answer
104 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
164 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
160 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
485 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?