Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
409 views
Hi,
I'm trying to use JQuery. I read Telerik documentation about this and I want to make a sample:
<telerik:RadScriptManager runat="server" ID="RadScriptManager1">  
</telerik:RadScriptManager> 
<telerik:RadComboBox runat="server" ID="RadComboBox1" Width="300px" Skin="Telerik">  
   <Items> 
       <telerik:RadComboBoxItem Text="ASP.NET AJAX UI Controls" /> 
       <telerik:RadComboBoxItem Text="WinForms UI Controls" /> 
       <telerik:RadComboBoxItem Text="WPF UI Controls" /> 
       <telerik:RadComboBoxItem Text="Silverlight UI Controls" /> 
       <telerik:RadComboBoxItem Text="Telerik Reporting" /> 
       <telerik:RadComboBoxItem Text="Telerik OpenAccess ORM" /> 
       <telerik:RadComboBoxItem Text="Telerik Sitefinity CMS" /> 
   </Items> 
</telerik:RadComboBox> 
<script type="text/javascript">  
   (function($) {  
       $(document).ready(function() {  
           $('.rcbItem')  
           .mouseover(function() {  
               $(this).stop().animate({ paddingLeft: "30px" }, { duration: 300 });  
           })  
           .mouseout(function() {  
               $(this).stop().animate({ paddingLeft: "4px" }, { duration: 300 });  
           });  
       });  
   })($telerik.$);  
</script> 
It's OK. But I don't want to have javascript inside body element so I moved javascript to head section of my site:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <script type="text/javascript">  
   (function($) {  
       $(document).ready(function() {  
           $('.rcbItem')  
           .mouseover(function() {  
               $(this).stop().animate({ paddingLeft: "30px" }, { duration: 300 });  
           })  
           .mouseout(function() {  
               $(this).stop().animate({ paddingLeft: "4px" }, { duration: 300 });  
           });  
       });  
   })($telerik.$);  
</script> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadComboBox runat="server" ID="RadComboBox1" Width="300px" Skin="Telerik">  
   <Items> 
       <telerik:RadComboBoxItem Text="ASP.NET AJAX UI Controls" /> 
       <telerik:RadComboBoxItem Text="WinForms UI Controls" /> 
       <telerik:RadComboBoxItem Text="WPF UI Controls" /> 
       <telerik:RadComboBoxItem Text="Silverlight UI Controls" /> 
       <telerik:RadComboBoxItem Text="Telerik Reporting" /> 
       <telerik:RadComboBoxItem Text="Telerik OpenAccess ORM" /> 
       <telerik:RadComboBoxItem Text="Telerik Sitefinity CMS" /> 
   </Items> 
</telerik:RadComboBox> 
 
    </div> 
    </form> 
</body> 
</html> 

And now there is an error:
http://img229.imageshack.us/img229/1006/telerikjquerybug.jpg ('$telerik' is undefined).
Is it the proper behaviour? I want to put all javascript code into seperate file and include with sigle line:
<script type="text/javascript" src="file.js">
 
 

 

 

What do I wrong?

Veselin Vasilev
Telerik team
 answered on 06 Jul 2009
4 answers
100 views
Hi All,
         Is there a way to prevent the user from dragging an dropping appointments over existing appointments ?

Thanks,
Aditya
Aditya
Top achievements
Rank 1
 answered on 06 Jul 2009
3 answers
203 views
Pointers needed with the following
I need to hide the image / functionality below if the data value is null

<telerik:GridTemplateColumn ItemStyle-Width="22px" UniqueName="CertFileName">
          <ItemTemplate>
            <asp:ImageButton ID="CertFileName" Runat="server" AlternateText="Download Certificate" ToolTip="Download Certificate"
            ImageUrl="../Images/Cert.gif" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.CertFileName")%>' CommandName="CertFileName"/>
          </ItemTemplate>
       </telerik:GridTemplateColumn> 

Thanks

Jeff Wickersham
Top achievements
Rank 1
 answered on 06 Jul 2009
2 answers
129 views
How can i show some thing such as a panel or some text box in rad window?
Svetlina Anati
Telerik team
 answered on 06 Jul 2009
3 answers
109 views

I have a custom telerik skin and am creating a tooltip on the client side using the tooltip manager and client side code. I'm not able to get the tooltip working with my custom skin. After I applied the custom skin, the tooltip will still show, but without a skin, it's background is transparent.

I created a server side tooltip control to test my custom skin and it works.
I tried adding the custom skin on the tooltip manager control, this had no effect.

Is there a way to specify a custom skin for a tooltip when creating the tooltip from the client side.

Here is snipets of my code:

All css files for my skin are registered in default.aspx, here is the tooltip css:
<link rel="stylesheet" type="text/css" href="/dnn51/Portals/_default/WebControlSkins/MySkin/ToolTip.MySkin.css" />

 

My tooltip manager is registered in the code behind:

RadToolTipManager tooltipMgr = new RadToolTipManager();
tooltipMgr.Skin = "MySkin";
tooltipMgr.EnableEmbeddedSkins = false;
tooltipMgr.ID = "DefaultToolTipMgr";

Page.FindControl("ToolTipMgrPlaceHolder").Controls.Add(tooltipMgr);

In javascript, I create the tooltips:
function pageLoad() {

  jQuery(".myLabel").each(function() {
    var html = jQuery(this).children("div").html();
    if (html != null && html != "") {
      var tooltip = $find(__DefaultTooltipManagerID).createToolTip(jQuery(this).children("img")[0]);
      tooltip.set_title("<span style=\"padding:15px\">" + html + "</span>");
      }
  });

}






Svetlina Anati
Telerik team
 answered on 06 Jul 2009
1 answer
153 views
Hi,

is there anyway to restrict the combo box to filter only when the I type text greater than 3.

For example, Lets take I binded combo box to 1 million names(name1,name2,name3...name1000000) and EnableLoadOnDemand is enabled. So, if I type 'n' letter to filter, it starts filter my combo box. Because, I know very that all the names will start with 'name' string, I don't want to search until the user types his 5th letter.

Is there anyway to do this???

Thanks in advance.

Mahesh.
Yana
Telerik team
 answered on 06 Jul 2009
3 answers
129 views
hi
i have 2 bold problem with radtooltip
the first is when i use a Radcombobox in tooltip , scrolled item show in back off tooltip !!
the second is when i have a long text in a lable that in a tool tip , it cannot scroll down too read all the text !
Svetlina Anati
Telerik team
 answered on 06 Jul 2009
3 answers
115 views
Hello All,
         Could not load file or assembly 'Telerik.Web.UI, Version=2008.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


give me solution and how to solve it and how change my web.config file in that version.

it's urgent
Svetlina Anati
Telerik team
 answered on 06 Jul 2009
2 answers
177 views
Hi All,

I have a RadGrid with Datas, Edit Mode =Popup. It works fine.

I need:

Is there any option to change the size(WIDTH) of the popup.

Due to the reason: All the HeaderText contains two words. So the second word is shown in the next line.

So I need to increase the width of the popup.

Thank You

-Anto
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 06 Jul 2009
1 answer
200 views

Hi

 

I want to open a tooltip on click of a hyper link in radGrid,

I declared hyperlink in Template column as follows

 

                                             <telerik:GridTemplateColumn HeaderText="Request Status">

                                                        <ItemTemplate>

                                                            <asp:LinkButton ID="lnkHyper" runat="server" Text="Click"

                                                                OnClick="lnkHyper_Click"></asp:LinkButton>

                                                        </ItemTemplate>

                                                    </telerik:GridTemplateColumn>

 

 

and my tooltip is as follows:

 

<telerik:RadToolTip ID="ConfirmToolTip" runat="server" Height="200px" Width="500px" TargetControlID="lnkHyper"

            ManualClose="True" Position="Center" ShowCallout="False" Title="Confirmation Required"

            Modal="True" Skin="Default1" EnableEmbeddedSkins="false" ShowEvent="OnClick" IsClientID="true">

            <div>

            <div>

            <asp:Literal ID="ltClaim" Text="Do You Want to Confirm" runat="server" />

            </div>

            <div class="cmb_btnG cmb_ltFlt">

                <asp:Button ID="btnOK" Text="OK" runat="server" CssClass="cmb_btnG" OnClick="btnOK_Click" />

            </div>

            <div class="cmb_sp13 cmb_ltFlt">

            </div>

            <div class="cmb_btnG ">

                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CssClass="cmb_btnG"  />

            </div>

        </div>

</telerik:RadToolTip>

 

 

In code behind I am writing following code to open the tooltip but my tooltip never opens, I am also debugged the code, debugger passes through the code but still the tooltip is not opening

 

 protected void lnkHyper_Click(object sender, EventArgs e)

        {

LinkButton _lnkhyper = (LinkButton)sender;

                TableCell cell = _lnkhyper .Parent as TableCell;

GridDataItem item = cell.Parent as GridDataItem;

 

bool reqired=true;

 

if(required)

{

ConfirmToolTip.Show();

return;

}

}

 
I am unable to figure out the problem can any one help

Thanks

Svetlina Anati
Telerik team
 answered on 06 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?