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

My Combobox has an ItemTemplate consisting of a label and 2 Radbuttons (Checkbox Toggletype) on each row.  The combox is loaded using a Datatable for now.  Everything works fine, except that when a user clicks on a Row instead of in an ectual checkbox, the dropdown closes gracefully but now says System.Data.DataRowView instead of EmptyMessage="- Select -"

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        If Not Page.IsPostBack Then
           
            DisplayPrintOptions.DataSource = GetPrintDisplayProfile()
            DisplayPrintOptions.DataBind()
 
        end if
 
Private Function GetPrintDisplayProfile() As DataTable
 
        'Get users Preferred Layout
        Dim dt As New DataTable()
        dt.Columns.Add(New DataColumn("ColumnDisplayName", GetType(String)))
        dt.Columns.Add(New DataColumn("Column", GetType(String)))
        dt.Columns.Add(New DataColumn("Display", GetType(Boolean)))
        dt.Columns.Add(New DataColumn("Print", GetType(Boolean)))
 
etc..



<telerik:RadComboBox ID="DisplayPrintOptions" runat="server" HighlightTemplatedItems="true" Width="100px" AutoPostBack="false"
                        Label="Display & Print Options:"
                        LabelCssClass="DisplayPrint-label" DropDownWidth="400" EmptyMessage="- Select -">
                     <HeaderTemplate>
                           <div style="width:305px;height:15px;">
                               <div style="display:block;float:right;color: rgb(0, 21, 110) !important;">
                                   Show in
                               </div>
                           </div>
                           <div style="width:350px;">
                               <div style="width:210px;float:left;padding:0 11px 0 11px;color: rgb(0, 21, 110) !important;">
                                   Name of Column
                               </div>
                               <div style="width:50px;float:right;margin-right:5px;color: rgb(0, 21, 110) !important;">
                                   Report
                               </div>
                               <div style="width:40px;float:right;color: rgb(0, 21, 110) !important;">
                                   Grid
                               </div>
                           </div>
                     </HeaderTemplate>
                     <ItemTemplate>
                        <ul id="DisplayPrint">
                            <li> <!-- Row -->
                                <ul>
                                    <li id="col1"><%# Eval("ColumnDisplayName")%></li>
                                    <li id="col3">
                                        <telerik:RadButton ID="ColReports" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox"
                                                Checked='<%# DataBinder.Eval(Container.DataItem, "Display").ToString()%>' AutoPostBack="false"
                                                CommandName='<%# DataBinder.Eval(Container.DataItem, "Column").ToString()%>'>
                                        </telerik:RadButton>
                                    </li>
                                    <li id="col2">
                                        <telerik:RadButton ID="ColGrid" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox"
                                                Checked='<%# DataBinder.Eval(Container.DataItem, "Print").ToString()%>' AutoPostBack="false"
                                                CommandName='<%# DataBinder.Eval(Container.DataItem, "Column").ToString()%>'>
                                        </telerik:RadButton>
                                    </li>
                                </ul>
                            </li> <!-- End of row -->                          
                        </ul>
                    </ItemTemplate>
                    <FooterTemplate>
                        <div style="float:right;"><telerik:RadButton ID="SubmitColumns" runat="server" Text="Submit" CausesValidation="false" OnClick="BuildGridColumns" /></div>                    
                    </FooterTemplate>
                    </telerik:RadComboBox>


Hristo Valyavicharski
Telerik team
 answered on 28 Jan 2013
3 answers
216 views
Hello all

Please forgive if this is the incorrect forum for such a query, but I have an inkling that this problem reflects a change in the way Telerik.Web.UI works with System.Web.Extensions, from the .NET 2.0-3.5 versions compared with the .NET 4.0 versions.

I have a site being upgraded to .NET 4.0, using Telerik.Web.UI Q3 2012 - the issue is that $find no longer works, it always returns null, when it features in my client-side Javascript. This issue did not arise in .NET 2.0 versions, so I believe it is a consequence of the upgrade to .NET 4.0 versions of Telerik.Web.UI.dll and the underlying MicrosoftAjax.js from within System.Web.Extensions.dll.

The code in question runs as a consequence of the $.ready function of jQuery 1.9, but as I need to emphasise, the issue was not previously evident with the.NET 2.0 versions of the dlls in question.

The exact symptom can be traced by debugging in Firefox with Firebug, where the call to $find can be seen to enter the MicrosoftAjax.js script file, but then immediately quit from the file evidently without running the $find function within the file.

I am not sure if this is the expected behaviour, as I have never encountered a problem with $find before. Am I right in understanding that there is a Telerik wrapper for $find in Telerik.Web.UI, that uses the version in MicrosoftAjax.js? In other words, is this likely to be a problem with the way that the MicrosoftAjax.js function is called, and is this call being made from the Telerik.Web.UI script resources? I am using the radScriptManager to control these WebResource.axd script resources.

I am not sure how to troubleshoot this problem, because the general explanations for looking into it are based around the issue of the function being called before the DOM is ready - however, in this case I am not sure this assumption is applicable, as the function used to work before in .NET 2.0, and also the fact that the $find function in MicrosoftAjax.js does not appear to run, and therefore does not get a chance to look for the DOM element in question.

If anybody could give me a pointer about a good way to proceed, I would be really grateful.

Thanks.

Dimitar Terziev
Telerik team
 answered on 28 Jan 2013
1 answer
59 views
hello,

attach are the two files of radmenu on IE9 with Compatibility View on and off.
please suggest the solution.

thanks.
Kate
Telerik team
 answered on 28 Jan 2013
4 answers
222 views
Hi

I have a really specific problem and have already tried to search for a similar problem online. Any help would be most welcome.

I have setup a simple ASP.NET webpage with a RadGrid, a filter TextBox, a Submit button and a Clear Filter button. The data loads up and I can filter the RadGrid using the TextBox without problems. Now I make another webpage that has an iframe tag that points to the former RadGrid page. Everything works fine except on IE 8 (IE 10 works fine, haven't tried IE 9) browser.

What happens is this:
  1. I load up the webpage, the RadGrid is filled with data.
  2. I input some filter in the TextBox and press Submit.
  3. Instead of filtering the search in the RadGrid, all rows in the RadGrid disappears. Clicking on Clear Filter button doesn't bring up the data again as it should normally do. No visable error.
  4. I refresh the page and now the Filter search and Clear Filter work as expected and as often as needed.
  5. If I close IE 8 and open it up again I'm back at step no 1.
Just to note, if I don't use iframe and open the webpage normally, this behavior in IE 8 doesn't pop up.

I can post the code on how I filter the RadGrid, but i just thought that anybody knew of some Telerik vs IE 8 issue that could explained this behavior.

Regards.
Gunnar 
Gunnar
Top achievements
Rank 1
 answered on 28 Jan 2013
2 answers
83 views
I've created my page following this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx

In this demo the grid row's unique ids are the first column called Product ID which is displayed in the gird. For my application each row's unique id is a GUID which I do NOT want displayed. If I set the visibility of this column to false the ajax does not work because it does not have a unqiue id to pass to the code-behind functions. If I set the visibility to true all works.  From this example it appears I must display the unique id column for the code to work.

How can I not display the GUID but still make it available to the ajax functions to pass to the code-behind file functions?
Darin
Top achievements
Rank 1
 answered on 28 Jan 2013
1 answer
133 views
hi,

i'm using the pirvotgrid to show many fields but i'm trying to show column fields in two lines because i saw all the fields in one line and the part where i look all the information is really small can i show this fields in two lines? 

this is my code and image

<telerik:RadPivotGrid Width="100%"   AllowPaging="true" OnNeedDataSource="RadPivotGrid1_NeedDataSource" 
        ID="RadPivotGrid1" runat="server" ColumnHeaderZoneText="ColumnHeaderZone"
         EnableToolTips="true" 
        AllowFiltering="true" ShowFilterHeaderZone="false" ErrorValue="0" 
         AllowSorting="True"  >
        <ClientSettings EnableFieldsDragDrop="true">
    
            <Scrolling AllowVerticalScroll="true" />
        </ClientSettings>
         <Fields>
            <telerik:PivotGridRowField DataField="field1" Caption ="field1">
            </telerik:PivotGridRowField>
            <telerik:PivotGridRowField DataField="field2" Caption ="field2">
            </telerik:PivotGridRowField>
            <telerik:PivotGridRowField DataField="field3" Caption ="field3">
            </telerik:PivotGridRowField>
            <telerik:PivotGridRowField DataField="field4" Caption ="field4">
            </telerik:PivotGridRowField>
         
            <telerik:PivotGridColumnField DataField="field5" Caption ="field5">
            </telerik:PivotGridColumnField>
             <telerik:PivotGridColumnField DataField="field6" Caption ="field6">
            </telerik:PivotGridColumnField>
             <telerik:PivotGridColumnField DataField="field7" Caption ="field7">
            </telerik:PivotGridColumnField>
             <telerik:PivotGridColumnField DataField="field8" Caption ="field8">
            </telerik:PivotGridColumnField>
 
             
            <telerik:PivotGridAggregateField DataField="field9" Aggregate="Sum"  Caption ="field9" >
            </telerik:PivotGridAggregateField>
            <telerik:PivotGridAggregateField DataField="field10" Aggregate="Sum"  Caption ="field10" >
            </telerik:PivotGridAggregateField>
             <telerik:PivotGridAggregateField DataField="field11" Aggregate="Sum"  Caption ="field11"  >
            </telerik:PivotGridAggregateField>
             <telerik:PivotGridAggregateField DataField="field12" Aggregate="Sum"  Caption ="field12">
            </telerik:PivotGridAggregateField>
             <telerik:PivotGridAggregateField DataField="field13" Aggregate="Sum"  Caption ="field13">
            </telerik:PivotGridAggregateField>
             <telerik:PivotGridAggregateField DataField="field14" Aggregate="Sum"  Caption ="field14">
            </telerik:PivotGridAggregateField>
             <telerik:PivotGridAggregateField DataField="field15" Aggregate="Sum"  Caption ="field15">
            </telerik:PivotGridAggregateField>
             <telerik:PivotGridAggregateField DataField="field16" Aggregate="Sum"  Caption ="field16">
            </telerik:PivotGridAggregateField>
             <telerik:PivotGridAggregateField DataField="field17" Aggregate="Sum"  Caption ="field17">
            </telerik:PivotGridAggregateField>
 
        </Fields>
        <ClientSettings>
            <Scrolling AllowVerticalScroll="true"></Scrolling>
        </ClientSettings>
          
</telerik:RadPivotGrid>

Image

thanks
Antonio Stoilkov
Telerik team
 answered on 28 Jan 2013
4 answers
154 views
Hi!
in my case image map is not available and cannot select image at all in RadEditorMOSS_5_8_16_Q3_2012_Trial
Eriks
Top achievements
Rank 1
 answered on 28 Jan 2013
0 answers
101 views
Delete post
Steven
Top achievements
Rank 1
 asked on 28 Jan 2013
5 answers
199 views
Hi there

I have a situation where my RadGrid has some rows Containing HTML code
http://i47.tinypic.com/1zg69sj.png

When I export this to Excel, I see separate Excel cells instead of a Single one.
http://i48.tinypic.com/2mx1o3n.png

How can I restrict RadGrid to export each field into a single cell?

I found this topic, describing the same problem
http://www.telerik.com/community/forums/aspnet-ajax/grid/export-to-excel-with-line-breaks.aspx#1553210

I'm using an old dll of Telerik but RadGrid has OnGridExporting or OnHTMLExporting  events available
OnGridExporting="grdRapor_GridExporting"

Protected Sub grdRapor_GridExporting(ByVal source As Object, ByVal e As GridExportingArgs)
        If e.ExportType = ExportType.Excel Then
            Dim css As String = "<style type='text/css'> br { mso-data-placement: same-cell; } </style>"
            e.ExportOutput = e.ExportOutput.Replace("</head>", css & "</head>")
        End If
    End Sub
This didnt help me
William
Top achievements
Rank 1
 answered on 28 Jan 2013
1 answer
73 views
I'm working on  a Hierachical RadGrid which is enclosed in an  asp UpdatePanel, and I need to customize it in such a way that - Only the parent rows should be rendered first(the query corresponding to this fetches only the parent rows from the database), and then on the expand button click - the 'Id' corresponding to the row is send via ajax and a different query fetches the child data corresponding to only the selected row.
 Currently I'm invoking an external ajax request through a jquery call from ClientEvents-OnRowClick in the ClientSettings of the grid. Now I'm unable to fill data into 
the child table from the ajax response using jquery.
Is there an easier way to go about it? That is there an inbuilt function to use 2 different queries to grab the data that populates the Hierachical RadGrid - one to get the parent rows and the other to get the child row corresponding to the parent row that is clicked.


Thanks in advance.
Maria Ilieva
Telerik team
 answered on 28 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?