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

I came across the RadConfirm and now I want to change the asp confirm box shown on my radbutton click to radconfirm. I added args.set_cancel(!radconfirm("Confirm Delete?") but ended in some sort of error. Didnt get what the issue. So please point me in the right direction to get it done.

Thanks
Katya.
Shinu
Top achievements
Rank 2
 answered on 17 Jul 2013
3 answers
129 views
Hi

I want to add arrows to the end of lines connecting the nodes and make it more thick. How can I do the same using CSS?

Thanks
Lovella.
Princy
Top achievements
Rank 2
 answered on 17 Jul 2013
6 answers
303 views
Hi,

I am having an issue with a RadGrid which appears to only occur in IE9. The issue only occurs if I enable AllowScroll in the client settings. When I mouse over the column headers or click on the horizontal scrollbar what I believe is the outer RadGrid div is growing in size leaving a blank space between the grid contents (and horizontal scroll) and the surrounding border. The grid itself has a two level hierarchy and expanding/collapsing any of the items causes the outer div to resize itself back.

Running IE9 in IE7/IE8 or IE9 compatibility mode does not show the problem. It appears to only occur in IE9 itself. 

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ObjectDataSource1" OnColumnCreated="RadGrid1_ColumnCreated"
    OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound" OnExportCellFormatting="RadGrid1_ExportCellFormatting" Width="100%">
    <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" AllowSorting="false"
        DataKeyNames="EventGroupTypeId, ParentEventGroupTypeId" TableLayout="Fixed">
        <SelfHierarchySettings ParentKeyName="ParentEventGroupTypeId" KeyName="EventGroupTypeId" />
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true">
        <Scrolling AllowScroll="true" />
        <ClientEvents OnGridCreated="GridCreated" />
    </ClientSettings>
</telerik:RadGrid>

I also have some css to force the height to auto: 


.rgDataDiv { height: auto !important }

I have found that the problem appears to only occur if I set the Grid width in JS. This is done in the OnGridCreated client event using the following code:

function GridCreated(sender, args) {
    ResizeGrid();
}
 
function ResizeGrid() {
    var grid = $find("<%= RadGrid1.ClientID %>");
     
    grid.get_element().style.width = ($(window).width() - 140) + "px";  // <-- with this line included, the problem shows. Without it, the problem doesn't show but the grid also goes off the screen (large number of columns)
}

The 140px offset is simply to allow for a page border. The ResizeGrid function is only ever called the once (through the GridCreated function). 

Is there another way to set the Grid width that would be better suited? This appears to be the recommended way to do this as per Telerik support (http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-width-and-height-in-javascript-dom.aspx)

I have some screen captures showing the issue if that helps? Just let me know how you would like me to get them to you.

Cheers,

Andrew

Ketan
Top achievements
Rank 1
 answered on 17 Jul 2013
3 answers
114 views
Hy,

I have a radcombobox in my page.I am calling its OnClientSelectedIndexChanged.I am trying to format the combobx text here.After setting the text my value field becomes empty.Also the event fires again on clicking anywhere outside the control.I am using loadondemand and autopostback is false.

Help me.
Nencho
Telerik team
 answered on 17 Jul 2013
3 answers
129 views
I have a page with a DataList and a RadTreeView and now I should allow drag'n drop from datalist's items to the treeview. I wonder what is the best approach to do this:
1/ using custom javascript
2/ replacing the DataList with a RadListView, to do the same as this: http://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx

What is the easiest and fastest method?
Dimitar Terziev
Telerik team
 answered on 17 Jul 2013
1 answer
318 views
<telerik:RadHtmlChart runat="server" Width="400px" Height="300px" ID="RadHTMLChart1" DataSourceID="SqlDataSource2" >
             <Legend>
                 <Appearance Position="Top">
                 </Appearance>
             </Legend>
             <PlotArea>
                  <Series >
                        
                       <telerik:PieSeries DataFieldY="SumPeopleServed" Name="People Served" StartAngle="90"  >
                       
                       </telerik:PieSeries>
                  </Series>
                   
             </PlotArea>
             <ChartTitle Text="% Samples by RDS">
              <Appearance>
              <TextStyle FontSize="16px"></TextStyle>
              </Appearance>
             </ChartTitle>
        </telerik:RadHtmlChart>
          
    
       
 
   <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:cnPanDMSWEB_dead %>" SelectCommand="Select RDSNUm, Sum(PeopleServed) as 'SumPeopleServed' from mcop_OrderEntry Where TransDate >= @StartDate and TransDate <= @EndDate Group By RDSNum">
       <SelectParameters>
           <asp:ControlParameter ControlID="dtStartDate" DefaultValue="7/1/2013" Name="StartDate" PropertyName="SelectedDate" />
           <asp:ControlParameter ControlID="dtEndDate" DefaultValue="7/31/2013" Name="EndDate" PropertyName="SelectedDate" />
       </SelectParameters>
   </asp:SqlDataSource>



I'm trying to get a RadHTMLChart in PieChart mode to generate the legend from a column in a SQL-Generated dataset

Here is the example of the dataset:

RDSNum SumPeopleServed
----------------------------------------------------
1 834989
8888 36956
9999 641836


Attached is a snapshot of the control that correctly shows the "SumPeopleServed" values in the pie chart.

But, I can't seem to get the "RDSNum" to show in the legend so that the user can see what each color represents.

I don't see anything in the 'Config Wizard" that allows me to set the column used for the legend, much like the "Y-axis" column to be used for the pie chart values....

And I examples I see for SQL-Databound stuff for piecharts seem to have the legend values assigned at design-time, which doesn't help me.  

Can anyone point me in the right direction?  I'm sure I'm missing something really really dumb... I can't image a control like this would have the ability to use values dynamically generated from a dataset, but then have to have the legend pre-defined at design-time...


Jay



Stamo Gochev
Telerik team
 answered on 17 Jul 2013
2 answers
133 views
Hello,

I am currently working on a RadGrid that has several dynamic columns, but I'm having some trouble with the paging. Paging seems to work fine, except when you attempt to navigate back to the first page. When you navigate back to the first page, the grid still shows the data of the last page you were on.

I have added a sample project and a screenshot of the problem that can be used to reproduce the problem. Follow these steps to reproduce the problem:
1. Navigate to page 3
2. Navigate to page 1
The grid now shows both pages as selected and is still showing the data of page 3.

public partial class Index : Page
    protected void Page_Init(object sender, EventArgs e) {
        this.CreateGrid();
    }
 
    private void CreateGrid() {
        RadGrid grid = new RadGrid();
        grid.ID = "gvBenchmark";
        grid.AutoGenerateColumns = false;
        grid.Skin = "Metro";
        grid.AllowSorting = true;
        grid.AllowPaging = true;
        grid.PageSize = 15;
        grid.SortingSettings.SortToolTip = String.Empty;
 
        GridBoundColumn idColumn = new GridBoundColumn();
        idColumn.HeaderText = "ID";
        idColumn.UniqueName = "ID";
        idColumn.DataField = "ID";
        grid.Columns.Add(idColumn);
 
        GridBoundColumn ageColumn = new GridBoundColumn();
        ageColumn.HeaderText = "Age";
        ageColumn.UniqueName = "Age";
        ageColumn.DataField = "Age";
        grid.Columns.Add(ageColumn);
 
        grid.DataSource = this.GetData();
        grid.DataBind();
 
        pnGrid.Controls.Add(grid);
    }
 
    private IList<Person> GetData() {
        IList<Person> persons = new List<Person>();
        for (int i = 0; i < 100; i++) {
            Person p = new Person();
            p.Age = i + 10;
            p.ID = i;
            persons.Add(p);
        }
 
        return persons;
    }
}
 
public class Person {
    public int Age { get; set; }
    public int ID { get; set; }
}
Vincent
Top achievements
Rank 1
 answered on 17 Jul 2013
11 answers
1.7K+ views
Hello,
I have a RadGrid with Export Settings - Excel Format=BIFF
When I export the grid, all my numbers are shown as Text in the created Excel sheet.
When I add the mso-number-format:\#\,\#\#0\.000 in the style sheet for the class I use, or I add it in the code-behind using code like in http://www.telerik.com/help/aspnet-ajax/grid-html-export.html this number format is ignored.
When I change the Excel Format to HTML, the numbers are shown as numbers in Excel, even without using the mso-number-format. I then get the warning that the XLS format is not recognized, but I can continue.
Telerik: Can you investigate/advise?
Best Regards,
Frank
Kostadin
Telerik team
 answered on 17 Jul 2013
1 answer
105 views
Hi,

I'm wondering if there are any known issues with using DropDownTree, HTML 5 Charts, Kendo Date Picker, and ComboBox on the same page?

I am getting this error in IE 10 and Chrome, I didn't check any other browser:

Unable to get property 'ie' of undefined or null reference

Telerik.Web.UI.WebResource.axd, line 7041 character 150

And that error is followed by:

Object doesn't support this action
Telerik.Web.UI.WebResource.axd, line 6 character 54851

 
The charts never load with data.


I don't see the error until the HTML 5 charts are dynamically added to the page after items are selected in the DropDownTree, ComboBox, and a date is picked in the Date Picker.
 
If I run the page in Compatibility View in IE 10 the charts load with data but, of course, the styling is all messed up. And, I get this error:

SCRIPT3: Member not found. 
Telerik.Web.UI.WebResource.axd, line 1871 character 23238



Thanks,
Eric
Kate
Telerik team
 answered on 17 Jul 2013
1 answer
94 views
Please find my sample project in the attachment. i have also included the database script for the project

http://www.4shared.com/get/5pSvIMoX/testRadGrid.html

I'm trying to do a simple radgrid bind. i've done it with two pages. 

please see default.aspx - the column filter options are showed when i click on the filter icon as i expected but in search.aspx i'm binding through a database data source then the column filtering options (contains, equals...) are not shown. 

error is shown in the console.

Uncaught TypeError: Cannot set property 'control' of undefined

Please let me know whats wrong with search.aspx radgrid column filtering
Andrey
Telerik team
 answered on 17 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?