Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
152 views
I'd like to get a clear answer on whether the AutoGenerateHierarchy property of RadGrid for ASP.NET AJAX (in a .NET WebForms application context) supports object-relational business objects.
 

The AutoGenerateHierarchy property itself is valid*, but seems to behave differently in the case of WebForms rather than WinForms** applications & I'm finding the Telerik documentation around this ambiguous. 

The property description*** reads like the DataSoruce value would have to be of type DataSet for AutoGenerateHierarchy to work. Additionally, all of the ASP.NET AJAX-specific examples I find so far assign a RadGrid DataSource of type DataSet.

However, the DataSource property itself, of course, does not have to be assigned to an object of type DataSet.****


Further, if not supported (combining a non-DataSet DataSource with AutoGenerateHierarchy='True'), shouldn't we expect an error message or warning?
I'm not getting any errors trying to apply this in testing scenarios (just silent failure on any hierarchy).  To recreate set - AutoGenerateHierarchy to 'True' in a bare-bones RadGrid where the DataSource is bound to a very simple object graph on Page_Load. Make one of the properties of the top-level object (top parent in the hierarchy) a list of another simple object.  This should generate a flat grid (no hierarchy/nesting), but not error out.




Products + Scenario : 
RadControls for ASP.NET AJAX
Telerik.Web.UI Version  2012.3.1308.40 (v4.0.30319)

.NET WebForms



References: 
* http://www.telerik.com/help/aspnet-ajax/allmembers_t_telerik_web_ui_radgrid.html
**http://www.telerik.com/help/winforms/gridview-hierarchical-grid-object-relational-hierarchy-mode.html
***http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radgrid_autogeneratehierarchy.html
****http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radgrid_datasource.html

Karrie
Top achievements
Rank 1
 asked on 06 Feb 2013
1 answer
123 views
Hi, 

Hi,

I need to export excel. 

I am using   RadGrid1.MasterTableView.ExportToExcel();

Everything is ok. I can export. But one of my columns is 25-26 digit. For example

My grid is;

Barcode(datatype:text)--------------code(datetype:text)
10105570021112201100001------125
10105570072610201100001------110          
10105570020112201100001------165


When I push the button. My excel is coming this type. 

Barcode----------------Code       
1.01056E+22 ---------125 
1.01056E+22----------110
1.01056E+22-----------165


After export. İf I change "format cells" in the excel. My barcode is changing this type

10105570021112200000000
 10105570072610200000000
 10105570020112200000000

How can ı solve? 

p.s.: Sorry my english
Kostadin
Telerik team
 answered on 06 Feb 2013
5 answers
249 views
Good morning, all.

I have a question regarding the RadGrid's grouping feature.  I have an Ajaxified grid binding from a web service, which is allowing grouping and sorting.  I also have a separate form that allows users to specify a default grouping level if they so choose.  The value is then written to a table in the database.

On the grid's PreRender event, I'm doing a check to see if there are any custom grouping levels specified.  If so, I'm able to apply the group to the grid with "RadGrid1.MasterTableView.GroupByExpressions.Add("Group By " & val)" and it renders fine.  The issue I'm having is that no other grouping can be applied due to an index error, and this level can't be removed (same index error).  I'm only doing the database check the first time the page is loaded so ideally, the user should be able to remove the default group and have it return on the next page load (unless they specify a different default).

As a side note, if the user doesn't have a default group specified, there's no problem with the grid's grouping features at all.

Is there something else I need to do besides add the GroupByExpression in order to enable my dynamic grouping to function with groups dragged to the header row?

Thanks!

/jeff
Angel Petrov
Telerik team
 answered on 06 Feb 2013
14 answers
453 views
Hi,

I am writing under the assumption that if you add a detail table to a master table, the detail table will have by default, the Add New Record link at the top left. I see this for my master table, but the detail table does not display any Add Record option and I need one. Any clues on what to look for? Thanks.
Daniel
Telerik team
 answered on 06 Feb 2013
1 answer
81 views
Hello,

Select any image from Content and then Click on Image Manger from Editor , Pop up unwanted Message , i need your help to remove it.

FYI >> Facing this problem across all the browsers.

Regards
Samir
Rumen
Telerik team
 answered on 06 Feb 2013
1 answer
248 views
Hello Telerik.

I have a question RadCoboBox's "SelectText" function.

It can select part of text through selected length.

I tried use this function but it doesn't work.

So i have tried many test, finally getting result.

If i want to use SeelectText function , i should to set some properpties.

EnableTextSelection="true" EnableLoadOnDemand="true".

that properies are set true, selectText was worked.

Is it bug or planned scenario?

I attached sample code please check this.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!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>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                <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.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your JavaScript code here.
 
            function RadComboBox1_Focus(sender, args) {
                sender.selectText(0, 2);
            };
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <div>
 
            <telerik:RadTextBox runat="server" ID="TextBox1" TabIndex="1">
            </telerik:RadTextBox>
            <div style="height:30px;"></div>
            <telerik:RadComboBox ID="RadComboBoxLookupFirm" runat="server" Width="350" EnableTextSelection="false" TabIndex="2" OnClientFocus="RadComboBox1_Focus">
                <Items>
                    <telerik:RadComboBoxItem Text="1111111" Selected="true" />
                    <telerik:RadComboBoxItem Text="2222222" />
                    <telerik:RadComboBoxItem Text="3333333" />
                    <telerik:RadComboBoxItem Text="4444444" />
                </Items>
            </telerik:RadComboBox>
            <div style="height:30px;"></div>
            <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="350" EnableTextSelection="true" EnableLoadOnDemand="true"  TabIndex="3" OnClientFocus="RadComboBox1_Focus">
                <Items>
                    <telerik:RadComboBoxItem Text="1111111" Selected="true" />
                    <telerik:RadComboBoxItem Text="2222222" />
                    <telerik:RadComboBoxItem Text="3333333" />
                    <telerik:RadComboBoxItem Text="4444444" />
                </Items>
            </telerik:RadComboBox>
        </div>
    </form>
</body>
</html>

Hristo Valyavicharski
Telerik team
 answered on 06 Feb 2013
1 answer
102 views
Hello,

I am Facing couple of Problem with the Chrome browser, and not overcome on trying so many different things:

Problem # 1 :
I have entered HTML Code under HTML Tab, and then I move to Design Tab, and what i am facing is, HTML tab is still active, and Design Tab is disabled... Instead of Design should be Active, Please help me out...

Problem # 2:
When I click on Time / Date control from Editor, Its not showing in the content editor but it thorws Script error.This happens only on Chrome.


Please helpme ASAP on this two problem.

Regards
Samir
Rumen
Telerik team
 answered on 06 Feb 2013
3 answers
182 views
hi,
I am inserting html code in HTML mode of RadEditor  when switch to design mode from HTML mode, Design button displaying as disabled.
This issue exist only in Chrome.Observe attach image.
Any Help?

i am inserting follwoing code in html mode
<html>
<body>
Empty Content
</body>
</html>


Regards
Anwar
Rumen
Telerik team
 answered on 06 Feb 2013
9 answers
479 views
Hi,

I have 2 radnumerictextboxes and on tabbing out of each of them I need to do some javascript calculations and populate a third radtextbox. Onblur of the first 2 fields I am able to call the javascript function and calculate. But the result is not getting populated in 3rd box till I place cursor in 3rd textbox and this is not what I want.

Any pointers in this regard will help.

Regards,
Brindavan
Vasil
Telerik team
 answered on 06 Feb 2013
3 answers
103 views
When i initially load my grid everything works properly. After i change the pagesize or change the page index i can NO longer select any rows. 

<telerik:RadGrid ID="UserGrid" runat="server" AllowSorting="true" AllowPaging="true" AllowCustomPaging="true" AllowMultiRowSelection="true"
        OnItemDataBound="Grid_ItemDataBound"  OnSortCommand="Grid_Sorting" OnPageIndexChanged="Grid_Paging" OnDeleteCommand="Grid_Deleting" OnItemCommand="Grid_ItemCommand" Skin="Windows7"
        meta:resourcekey="UserGrid">
        <MasterTableView AutoGenerateColumns="False" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="false" DataKeyNames="UserID,EmailAddress" NoMasterRecordsText="No records match the search criteria.">
            <Columns>
                      <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" ItemStyle-Width="20px"/>
            </Columns>
        </MasterTableView>
        <ClientSettings EnableRowHoverStyle="false">
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="true"></Selecting>
        </ClientSettings>
        <PagerStyle Mode="NumericPages" />
    </telerik:RadGrid>

BTW i cam callind UserGrid.Rebind() on the pageindexchanged event.
Wade
Top achievements
Rank 1
 answered on 06 Feb 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?