Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
258 views
Is it somehow possible to use the ContextMenu on databound tiles?

I wish to achieve a dynamic contextmenu that has view, edit, delete (and other) items depending on the tile/item+user.
Princy
Top achievements
Rank 2
 answered on 08 Aug 2014
3 answers
256 views
Hi,

I have a button on my page which has a long process. When it pressed I want to show info one by one in loading panel like "Connecting to server....", "Collecting data....", "Preparing Tables..." etc.
Is it possible?

Many thanks.
Shinu
Top achievements
Rank 2
 answered on 08 Aug 2014
5 answers
290 views
Hi,

We have several columns of type GridHyperLink which, when exported to excel, render as blank - no data. Is there a trick to getting links to export in Excel? Thanks.
Shinu
Top achievements
Rank 2
 answered on 08 Aug 2014
3 answers
472 views
Hi all,

Is there any way to auto open the Radgrid in the edit mode for the first record during page load?
The Radgrid is set to popup user control in edit mode...

Thank you.

Regards,
George




Princy
Top achievements
Rank 2
 answered on 08 Aug 2014
3 answers
812 views
I have noticed a weird issue while attempting to filter columns. Particularly columns that contain numbers. For example, I have a column called ID and there is an entry in the grid with the ID 1234. When filtering with contains on the ID column, if I type 123 into the filter box, and hit enter to run it, it will turn up nothing, or an ID thats exactly 123. ID 1234 will NOT show unless I try filtering on 1234.

I am wondering if there is a way around this at all.

I have the CurrentFilterFunction="Contains" on.

<telerik:GridBoundColumn DataField="IncidentID" HeaderText="Incident ID" HeaderStyle-ForeColor="White" ShowFilterIcon="false" AutoPostBackOnFilter="true"
            SortExpression="IncidentID" ItemStyle-VerticalAlign="Top">

This is the column in question.
I have the ShowFilterIcon set to false as I only want the filter to be Contains.

I have an idea to make the bound column into a templatecolumn and populate the item in the behind code. I could make the item into a string, and filter on contains then. But I was hoping there would be a better way to do this.
Alexander
Top achievements
Rank 1
 answered on 07 Aug 2014
2 answers
133 views
I am using the Rad Editor tool in a web application. The editor is used to automatically load basic HTML templated forms to be filled out. The problem with the editor is that the read-only functionality works differently in separate browsers. Safari, and Chrome work perfect with the read-only sections (i.e. a table data like <td contenteditable="false" unselectable="ON">Example</td>). Internet Explorer works partially. IE will work properly with read-only elements as long as the first click inside the editor is on an element that is not meant to be read-only. If the first element clicked is a read-only one, the cursor is focused at the start of the first read-only element, and allows the read-only to be edited. As for Firefox, read-only sections will not work at all. The html is able to be deleted at any time. Is there a way to make read-only elements cross browser compatible?
Patrick
Top achievements
Rank 1
 answered on 07 Aug 2014
1 answer
50 views
Hi,

I am currently developing an ASP.NET website. On one of my pages I have a RadTabStrip on it with RadMultiPage and RadPageVIew's however I am struggling to complete a few aspects.

Here is some sample code below.

The main two things which I need to find out is a) what page event should I use when I programmatically want to change the page? b) As I will eventually be having some RadGrids in the code, is there a best practise when I should be filtering the data e.g. what page event location?

Thanks,
Alex
  <telerik:RadTabStrip runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1" Skin="Metro" CssClass="customer1">
                  <Tabs>
                     
                      <telerik:RadTab Text="Tab1" Width="100px" Selected="true"></telerik:RadTab>
                      <telerik:RadTab Text="Tab2" Width="100px" ></telerik:RadTab>
                  <telerik:RadTab Text="Tab3" Width="100px" ></telerik:RadTab>
                  </Tabs>
              </telerik:RadTabStrip>
 
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" CssClass="customer1" SelectedIndex="0"> <%-- CssClass="outerMultiPage"--%>
      <telerik:RadPageView runat="server" ID="RadPageView1"  Selected="true" CssClass="customer1" >
          <p>Tab 1 info</p>
      </telerik:RadPageView>
      <telerik:RadPageView runat="server" ID="RadPageView2"  Selected="true" CssClass="customer1" >
          <p>Tab 2 info</p>
      </telerik:RadPageView>
      <telerik:RadPageView runat="server" ID="RadPageView3"  Selected="true" CssClass="customer1" >
          <p>Tab 3 info</p>
      </telerik:RadPageView>
</telerik:RadMultiPage



Boyan Dimitrov
Telerik team
 answered on 07 Aug 2014
2 answers
219 views
Hi Telerik,

I've created a page which I populate all grids on the page programmatically in c# and following this demo to print the grids; however as my grids are created on pageload, when typing the javascript code in front end (aspx), the script cannot detect the grids and returning a "The Name 'RadGrid1' does not exist in current content" error. I've tried calling it by string name in the $find function and also tried document.FindElementById, but no luck. Could anyone give me some advice on this issue?

Many thanks.

Attached the code below:
function Print() {
    var previewWindow = window.open('about:blank', '', '', false);
    var styleSheet = '<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(this, RadGrid1.GetType(), String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css", RadGrid1.Skin)) %>';
    var baseStyleSheet = '<%= Telerik.Web.SkinRegistrar.GetWebResourceUrl(this, RadGrid1.GetType(), "Telerik.Web.UI.Skins.Grid.css") %>';
    var htmlContent = "<html><head><link href = '" + styleSheet + "' rel='stylesheet' type='text/css'></link>";
    htmlContent += "<link href = '" + baseStyleSheet + "' rel='stylesheet' type='text/css'></link></head><body>";
 
    for (i = 1; i < 13; i++) {
        var CYGrid = "RadGrid_CY_Strategy_" + String(i);
        var CYradGrid = $find('<%=CYGrid.ClientID %>'); //This is not working well, hence below
 
        htmlContent += getOuterHTML(CYradGrid.get_element());
        if (LYradGrid.hidden == false) {
            htmlContent += getOuterHTML(LYradGrid.get_element());
        }
    }
    htmlContent += "</body></html>";
    previewWindow.document.open();
    previewWindow.document.write(htmlContent);
    previewWindow.document.close();
    previewWindow.print();
 
    if (!$telerik.isChrome) {
        previewWindow.close();
}
 
    function getOuterHTML(obj) {
    if (typeof (obj.outerHTML) == "undefined") {
        var divWrapper = document.createElement("div");
        var copyOb = obj.cloneNode(true);
        divWrapper.appendChild(copyOb);
        return divWrapper.innerHTML
    }
    else {
        return obj.outerHTML;
    }
}


Daniel
Telerik team
 answered on 07 Aug 2014
1 answer
114 views
I created a little test application to look at this control and I'm having a weird issue. I am doing this all programmatically server side. So I added a couple of nodes to the diagram when it starts and then added a button that adds another node to the diagram. If I move the nodes, when the app posts back to add a new node the nodes that were moved revert back to their original position. Is there something else I need to do like capture something on the node moved event?

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        MapDiagram.BorderStyle = BorderStyle.Solid;
        MapDiagram.BorderColor = Color.Black;
        MapDiagram.Resizable = false;
        List<MapTask> tasks = MapHelper.GetSampleTasks(4);
        AddTasksToMap(tasks);
    }
}
 
private void AddTasksToMap(List<MapTask> tasks)
{
    foreach (MapTask task in tasks)
    {
        DiagramShape shape1 = new DiagramShape()
        {
            Width = 50,
            Height = 50,
            Type = "rectangle",
            X = task.XPosition,
            Y = task.YPosition
        };
        shape1.ContentSettings.Text = task.Description;
        MapDiagram.ShapesCollection.Add(shape1);
    }
}
 
protected void BtnAddTaskClick(object sender, EventArgs e)
{
    Random r = new Random();
    DiagramShape shape1 = new DiagramShape()
    {
        Width = 50,
        Height = 50,
        Type = "rectangle",
        X = (r.Next(900)),
        Y = (r.Next(640))
    };
    shape1.ContentSettings.Text = "New Task";
    MapDiagram.ShapesCollection.Add(shape1);
}
Slav
Telerik team
 answered on 07 Aug 2014
8 answers
1.1K+ views
Hi 
     I have a radlistbox item with check boxes. User can successfully Check and unchecked the items . Can i check if user click on the Item text, Unchecked if User again click on the Item text.  Please provide your valuable  Suggestion. ASAP
Prajakta
Top achievements
Rank 1
 answered on 07 Aug 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?