Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
When radgrid at  add new mode, when I enter ID (text box), populate the rest of the informatoin on the row (name, phone), this happens  when the user exit the ID text box. ( get the ID entered on the grid cell, go to database get the rest of the info). Is this radgrid can do? Do you have a similar example?

Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2012
5 answers
229 views
ASPX
   <script type="text/javascript">
    //<![CDATA[
          function showMenuAt(e) {
              var contextMenu = $find("RadContextMenu1.ClientID");
              var x = parseInt($get("contextX").value);
              var y = parseInt($get("contextY").value);


              if (isNaN(x) || isNaN(y)) {
                  alert("Please provide valid integer coordinates");
                  return;
              }

              contextMenu.showAt(x, y);


              $telerik.cancelRawEvent(e);
          }


          function showMenu(e) {
              var contextMenu = $find("RadContextMenu1.ClientID");


              if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget))) {
                  contextMenu.show(e);
              }


              $telerik.cancelRawEvent(e);
          }
    //]]>
    </script>

      <Telerik:RadContextMenu id="RadContextMenu1" runat="server"
         EnableRoundedCorners="true" EnableShadows="true">
                <Items>
                    <Telerik:RadMenuItem Text="Trees" />
                    <Telerik:RadMenuItem Text="Sunset" />
                    <Telerik:RadMenuItem Text="Mountains" />
                </Items>
            </Telerik:RadContextMenu> 


And from VB.net codebehind I try to SHOW the popup
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "reloadamchart" & Guid.NewGuid.ToString, "showMenu(e);", True)

Another tricky part is that Google Map right_click gives you map coordinates lat/lng insted of the client pixel where the right click took place. I gues all clients will have different screen resolutions making this very difficult ?    

'This is example of what I would like to accomplish using RadContextMenu.

http://googlegeodevelopers.blogspot.se/2009/09/introducing-contextmenucontrol-10-give.html 
http://econym.org.uk/gmap/example_context.htm 
Johan
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
99 views
hi dears
i use RadMenu. it works well in liveDemo but can not render in my project.
i tested in WebApplication and WebSite and in all browsers. but i does not load completely.
there is an image to illustrate

please advice
thanks
Kate
Telerik team
 answered on 06 Jun 2012
3 answers
141 views
Sorry but I don't understand the documentation about radscriptmanager
My question is
I have a page that usually load jquery.js from my site
now I would like to use radScriptmanager with the code below  :
 and all is ok 
but why I have to inlcude the link to jquery.js  in the head section of the page ?
( some like <script src="/js/jquery-1.6.2.min.js" type="text/javascript"></script> ) 
if telerik use jquery - why this is not usable from all the code in the page? 
I test it with this simple script 
 if (jQuery) {
            alert('jQuery is loaded!');
        }
If I don't inlcude jquery in the head section the alert don't fire
thanks in advance
ciao



<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableCdn="true">
        <Groups>
       <telerik:ScriptReferenceGroup>
           <Scripts>
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"   />
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
               <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" />
           </Scripts>
       </telerik:ScriptReferenceGroup>
   </Groups>
   </telerik:RadScriptManager>
Genady Sergeev
Telerik team
 answered on 06 Jun 2012
2 answers
99 views

Hello,,

 

We are using RadEditor in  our application. Here we are facing an issue in RadEditor’s HTML mode.

The actual issues is ,the word href="[!RPLINK:2!]"  is displaying as href="[%21RPLINK:2%21]".

We are not getting why the extra characters are displaying like %21 instead of ! in  HTML mode.

This issue exist  in FireFox browser only in IE, Chrome its working fine.

REgards
Samir

Samir Patel
Top achievements
Rank 1
 answered on 06 Jun 2012
2 answers
43 views
Since I always get a server error when I try to reply to my thread
http://www.telerik.com/community/forums/aspnet-ajax/grid/groupsdefaultexpanded-after-sorting-reorder.aspx
I post my post herein, perhaps an admin could merge the threads.

So here is my reply:
Thanks for that sample. But somehow the group expands only after two clicks on the expand icon (both clicks do a postback). This occurs only after the page was rendered the first time, after that it works normally. 
What could that be?   
JP
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
248 views
Hello!

I use RadFormDecorator for styling. My form contains a DropDownList (asp:DropDownList). I want to disable/enable the DropDownList by javascript.
if (chb.checked) {
   jQuery("#" + ddlId).removeAttr('disabled');
} else {
   jQuery("#" + ddlId).attr('disabled', 'disabled');
}

It works good in FF and Chrome. But it does not work in IE.
How can I fix it?

Thanks 
Niko
Telerik team
 answered on 06 Jun 2012
1 answer
153 views

Hi,

I have come across an issue with the layout of a tab strip on my page.  I have a menu div on the left side with a fixed height and a content div next to it.

The issue is that the tabs appear at the bottom of the page instead of in the div st the top (see attached screen shot).

Here is the code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Tabstriptest._default" %>
  
<%@ 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 runat="server">
    <title></title>
</head>
<body>
  <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <telerik:RadScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <telerik:RadScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <telerik:RadScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
    <div style="width: auto;">
            <div style="width: 180px;height: 500px; float: left;background-color: Red;">Menu here</div>
            <div style="width: auto;margin-left: 190px;margin-right: 0px;">
                <div style="width: 100%;background-color: Green;">
                    <telerik:RadToolBar ID="rtbVisitMenu" runat="server" Width="100%">
                    <Items>
                        <telerik:RadToolBarButton runat="server" Text="New Visit">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" Text="Edit Visit">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" Text="Print">
                        </telerik:RadToolBarButton>
                    </Items>
                </telerik:RadToolBar>
                </div>
                <div style="width: 100%;background-color: Blue;">
                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">
                        <Tabs>
                            <telerik:RadTab Text="tab 1" runat="server" PageViewID="RadPageView1" Selected="true"></telerik:RadTab>
                            <telerik:RadTab Text="tab 2" runat="server" PageViewID="RadPageView2"></telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">
                        <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">RadPageView1</telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView2" runat="server">RadPageView2</telerik:RadPageView>
                    </telerik:RadMultiPage>
                </div>
            </div>
        </div>
  </form>
</body>
</html>

Is this an issue with the tab strip of is there soem html/css I can use to get around this.

Thanks

Gavin.

Princy
Top achievements
Rank 2
 answered on 06 Jun 2012
5 answers
193 views
Hi there,

For our application we are trying to show two series of data in a stacked bar chart, each series contains 2 items. We are finding a problem where we are getting both series items being displayed within the same stacked bar, so rather than having 2 items per bar...we have 4.

If we use the group databinding feature on a normal bar chart it seems to be working fine but under stacked bar chart type we are encountering problems

Hope you can help

Regards
Rosko
Telerik team
 answered on 06 Jun 2012
2 answers
109 views
Hi all, 

My requirement was to search a text the user gives inside the Grid and select that particular row. The user can also do find next in the grid. I was able to identify all the rows in which that particular text is there. And I am able to select each row as well and show it to the end user. But the problem is, it is a hierarchy grid. So assume that the row is present in the second level of grid. Then the row gets highlighted. But the second level is not expanded. The user has to expand and find out where the text is. Instead of this, is there any alternative approach that I can take. 

Sample Code:

 $.each(($("#ctl00_ContentPlaceHolder_SpreadSheet1").find(":contains('EXPNUM CHICKEN BRST AIRLINE CUT')")), function () {
        if ((this.nodeName == "TR") && (($(this).is('.rgRow')) || ($(this).is('.rgAltRow')))) {
            $find("ctl00_ContentPlaceHolder_SpreadSheet1")._spreadSheet().searchResults.push(this);
         this.focus();
           this._selected = true;
            this.click();
           this.setActive = true;
        }

($("#ctl00_ContentPlaceHolder_SpreadSheet1").find(":contains('EXPNUM CHICKEN BRST AIRLINE CUT')")) 

The above statement gives me all the results in an array. From that array, I am trying to filter only the rows and raising the click event. But the parent level of that particular row has to get expanded. So that the user can see the highlighted row. 

Regards,
Meenakshi Sekar. 
Meenakshi
Top achievements
Rank 1
 answered on 06 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?