Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
135 views
Hi,

I want to remove a child menu item from my RadMenu using javascript but the script is not working well. Here is the code I tried.
function RemovePremium()
{  
    var menu1 = $find("<%= RadMenuUser.ClientID %>");  
    var menuItem1 = menu.findItemByText("Get Promo");
    if (menuItem1)  
    {             
        menu1.trackChanges();    
        menu1.remove(menuItem1);
        menu1.commitChanges();
} }

Please give your suggestions and help.
Berk.

 
Aneliya Petkova
Telerik team
 answered on 30 Jul 2014
5 answers
429 views
I want the datepicker to use the client settings for date format. 
This works if I run it from visual studio. Once I publish it though the datepicker no longer reflects my system date formats. 

On my system the date format is yyyy-mm-dd and I see this format used when running from visual studio.
When I run it after publishing it - I see dd/mm/yyyy

What do I have to do to make this work for published and installed sites?
What am I missing?

I have attached a very basic sample project that whipped up to test it and it also does this in the same way as our main app.

Thanks for your help.

I have also pasted the entire web page below (not very long)

01.<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
02. 
03.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
04. 
06.<head runat="server">
07.    <title></title>
08.    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
09.</head>
10.<body>
11.    <form id="form1" runat="server">
12.    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
13.        <Scripts>
14.            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
15.            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
16.            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
17.        </Scripts>
18.    </telerik:RadScriptManager>
19. 
20. 
21.    <telerik:RadDatePicker ID="dte_startDate" runat="server"></telerik:RadDatePicker>
22. 
23.    <script type="text/javascript">
24.        //Put your JavaScript code here.
25.    </script>
26.    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
27.    </telerik:RadAjaxManager>
28.    <div>
29. 
30.    </div>
31.    </form>
32.</body>
33.</html>
Princy
Top achievements
Rank 2
 answered on 30 Jul 2014
1 answer
130 views
I have a RadGrid containing anywhere from 26 records to a few hundred. Unfortunately, there are some complex data manipulations going on to fill the datatable which i then bind to the grid. This can take 2 seconds for the 26 records and up to 12 seconds for the several hundred records. It's fine for first hit on the page but I want to be able to click edit and cancel without doing a grid rebind. Is this possible? 
Princy
Top achievements
Rank 2
 answered on 30 Jul 2014
1 answer
436 views
Hello.
excuse me if my english is not good .
i have a radgrid and after update command or insert command  i use this code to show notification.

  RadGrid1.Controls.Add(New LiteralControl ("My Text"))

it show just a text line under radgrid .
i want show a jquery popup notification like http://simplemodal.plasm.it/

how can i do this ?
thank you
Princy
Top achievements
Rank 2
 answered on 30 Jul 2014
8 answers
965 views
Hello everyone!

I have some doubts about how to upload and show a preview of a pdf and image, in the case of the image (jpg, png, etc) its not complicated, but I really dont have idea how could I preview a pdf file.
My functionality is the folowing:

In my aspx page the user can upload an image or a pdf (just one) and view the preview of the image or the pdf, then when I click save, I store the image and the pdf in my azure.
Please if someone can help me or give me any clues how could I do this.
Thanks in advance!!!!
Shinu
Top achievements
Rank 2
 answered on 30 Jul 2014
4 answers
274 views
I have a TabStrip of 6 tabs and for each tab i have one user control defined.
in each user control i am rendering radgrid. In each user control i have some javascripts written in it.
In these javascript i am finding object of radgrid mastertableview and using it for filter templates .
I have set property RenderSelectedPage only to true
My problem is, javascript is rendered for the first time page load (first page view i.e. my default pageview)only.
but for subsequent tab selection respective java-scripts are not rendered because of which it does not get subsequent radgrid objects
here i am using server tags like <% ...%> to find radgrid mastertableview objects in java scripts.

Please suggest a solution
Eric
Top achievements
Rank 1
 answered on 29 Jul 2014
3 answers
278 views
We would like to allow our customers to select one or more clients for a RadGrid listing and then add them to a RadMap.  Trouble is the RadMap wants Lat/Long coordinates, which we do not have.  

Are there any reliable, free geocoding services we can leverage to get this working?
iliketoshop
Top achievements
Rank 1
 answered on 29 Jul 2014
10 answers
186 views
Hi,
    Recently I have implement RadScheduler in Desktop and its working fine but then when I try it in IPAD, I am facing a problem.

In Monthly view if I click on Timeslot I get redirected to DayView in IPAD[bug] but in Desktop, it stay in same View [working fine]. I even set  RenderMode="Classic" for Scheduler but its not working. 
. I have dynamically added a button in month view and on click I show a tooltip but due to 'Getting redirected to DayView' this functionality isn't working in IPAD. I even used stopPropogation, return false, cancel bubble etc on this button but no idea why its getting redirected to DayView.
. In addition I have set Allow EDIT, INSERT, DELETE to false, so I have my own popup.
. I click on context menu in MonthView and nothing happens? but in day view its working but sometime it doesn't.

Thanking you
Lakpa Sherpa
Vince
Top achievements
Rank 1
 answered on 29 Jul 2014
1 answer
170 views
Hi.

The dropdown of the RadComboBox open in the wrong place when the page is large and scrolled, according to the attached image.

I'm using IE9.

Ediclei
Top achievements
Rank 1
 answered on 29 Jul 2014
4 answers
162 views
Greetings,

I have several RadButtons in my application that are opening a RadWindow from the code-behind.  If I click on the embedded icon (Icon-PrimaryIconCssClass="rbEdit"), nothing happens.  If I click on the text, then it does a postback and opens the window.  This does not happen on any other buttons, only the ones that are opening a RadWindow.  Here is an example where btnEditUser in the GridTemplateColumn will only post back if you click the word "Edit".  It does not post back if you click the rbEdit icon.

<telerik:RadGrid ID="grdUsers" runat="server" AllowPaging="True" AllowSorting="True"
                  AutoGenerateColumns="False" CellSpacing="0" GridLines="None" ShowGroupPanel="True"
                  DataSourceID="objUsers" OnItemDataBound="grdUsers_ItemDataBound">
  <ClientSettings AllowDragToGroup="True">
  </ClientSettings>
  <ExportSettings ExportOnlyData="true" HideStructureColumns="true" IgnorePaging="true"
                  OpenInNewWindow="true" SuppressColumnDataFormatStrings="true">
  </ExportSettings>
  <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="UserID" DataSourceID="objUsers">
    <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToCsvButton="true" />
    <HeaderStyle Font-Bold="true" HorizontalAlign="Left" />
    <PagerStyle PageSizes="10,25,50,100,250" AlwaysVisible="true" />
    <Columns>
      <telerik:GridBoundColumn DataField="UserName" FilterControlAltText="Filter Name column"
                                HeaderText="Name" SortExpression="UserName" UniqueName="UserName">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="UserLogin" FilterControlAltText="Filter Login column"
                                HeaderText="Login" SortExpression="UserLogin" UniqueName="UserLogin">
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="UserEmail" FilterControlAltText="Filter Email column"
                                HeaderText="Email" SortExpression="UserEmail" UniqueName="UserEmail">
      </telerik:GridBoundColumn>
      <telerik:GridTemplateColumn FilterControlAltText="Filter Phone column" HeaderText="Phone"
                                  SortExpression="UserPhone" UniqueName="UserPhone">
        <ItemTemplate>
          <asp:Label ID="lblUserPhone" runat="server" Text='<%# FormatPhone(Eval("UserPhone").ToString()) %>'>></asp:Label>
        </ItemTemplate>
      </telerik:GridTemplateColumn>
      <telerik:GridCheckBoxColumn DataField="UserActive" DataType="System.Boolean" FilterControlAltText="Filter Active column"
                                  HeaderText="Active" SortExpression="UserActive" UniqueName="UserActive" ItemStyle-HorizontalAlign="Center">
      </telerik:GridCheckBoxColumn>
      <telerik:GridTemplateColumn Groupable="false" AllowFiltering="false" ShowSortIcon="false"
                                  ItemStyle-HorizontalAlign="Center">
        <ItemTemplate>
          <telerik:RadButton ID="btnEditUser" runat="server" Font-Bold="True" Icon-PrimaryIconCssClass="rbEdit"
                              CommandArgument='<%# Eval("UserID") %>' Text="Edit" OnCommand="btnEditUser_Command">
          </telerik:RadButton>
        </ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

Code-Behind...

protected void btnEditUser_Command(object sender, CommandEventArgs e)
{
  string userID = e.CommandArgument.ToString();
  RadWindow newWindow = new RadWindow();
  newWindow.OnClientClose = "RefreshUsers";
  newWindow.VisibleOnPageLoad = true;
  newWindow.KeepInScreenBounds = true;
  newWindow.Height = Unit.Parse("790");
  newWindow.Width = Unit.Parse("750");
  newWindow.NavigateUrl = "~/UserWindow.aspx?userid=" +
                          userID;
  wndDetailsMgr.Windows.Add(newWindow);
}

Any ideas how to fix this?  Your help is appreciated.

Matt
Matt
Top achievements
Rank 1
 answered on 29 Jul 2014
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?