Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
392 views
In the dataset when there is DateTime filed, the pivotgrid adds Year, Month, Quarter etc columns.

1) Now, we need these columns but PivotGrid does not display right values for these columns. It always displays the Date only for each of Year/Month/Quarter fields. For example, the Year field's datafield propery is set to "DateField.Year". 

When we try to override the behavior in _FieldCreated event by setting the DataField to "DateField" and GroupInterval = Year. Then it displays the Year but everytime there is postback it adds the Year field multiple times to the field window. There does not seem to be a way to find out how to stop adding this field multiple times.

2) For Month we would want to display "MMM, YYYY" how to achieve that?
Michal
Top achievements
Rank 1
Iron
 answered on 13 Jul 2015
1 answer
148 views

I know, IE8. But I'm stuck with it. This line of code errors in IE 8, its OK in 10,11 & Chrome. I'm using 2014 2.618.4

                if(visible == false){
                                      radconfirm("<span style='text-transform: none;'>Are you sure you want to remove this patient?</span>", confirmPathwayOutcomeFn,  "Remove Warning");
                }

As close as I can get to the error is:

Invalid argument.  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2014.2.618.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a15590aec-52e9-4282-8ed4-e91eae292c7b%3a16e4e7cd%3aed16cbdc%3a874f8ea2%3af7645509%3a24ee1bba%3af46195d3%3ac128760b%3a19620875%3acda80b3%3a383e4ce8%3a92fe8ea0%3afa31b949%3a490a9d4e%3abd8f85e4%3a88144a7a%3a1e771326%3a4cacbc31%3a2003d0b8%3aaa288e2d%3a258f1c72%3a58366029%3ab7778d6c%3a8674cba1%3a7c926187%3a2e42e72a%3aa51ee93e%3aef347303%3ac08e9f8a%3a6d43f6d9, line 7208 character 1

 

Any Ideas?

Andy

Slav
Telerik team
 answered on 13 Jul 2015
0 answers
108 views
With the latest 2015.2.623 version of Telerik.Web.UI we discovered an issue when using RadPersistenceManager control to load the grid settings. In such case the control hangs due to a bug in the aforementioned version. Nevertheless, we have already included a fix in the internal build and also one will be included in the SP1.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 13 Jul 2015
7 answers
596 views

Hi,

How do we set the date format when using the new xlsx format export from a grid?

All we get in Excel is that all datetime columns gets the custom format: M-D-ÅÅÅÅ. No matter what we do...

Even in the online sample, both date columns are formatted in this way:

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/excel-export/defaultcs.aspx

We tried setting the DataFormatString of the grid column, no change...

Regards
Andreas

Viktor Tachev
Telerik team
 answered on 13 Jul 2015
1 answer
200 views

I have a column in the grid which returns multiple data vertically. How can I display the content horizontally?

i.e. my column displays:

AB

CD

EF

 

but I need to display: AB, CD,EF

this is my code:

<telerik:GridBoundColumn DataField="Specialty" HeaderText="Specialty" SortExpression="Specialty" ItemStyle-Width="9%"
HeaderStyle-Width="9%" UniqueName="Specialty"
FilterControlWidth="30px" ItemStyle-HorizontalAlign="Left" FilterControlToolTip="Search by Specialty" AutoPostBackOnFilter="true"
FooterText="Total Credits: " FooterStyle-HorizontalAlign="Right" FooterStyle-Font-Bold="true" FilterImageToolTip="Search by Specialty" HeaderTooltip="Sort by Specialty" >
</telerik:GridBoundColumn>

Thanks,

Eyup
Telerik team
 answered on 13 Jul 2015
4 answers
113 views

Currently we have a modal, with a grid inside of that. The bug is, if I add a row then delete the same row then attempt to save the grid, there is a javascript error, linked below:

http://prntscr.com/7qf6zr

is this an issue with my code? this bug does not trigger itemcommand, or batcheditcommand. Probably because of the clientside bug.

Viktor Tachev
Telerik team
 answered on 13 Jul 2015
1 answer
137 views

I was interested in adding a google map to a page on a RadMultiPage.  How do I get the javascript to execute whenever the specific RadPageView is actually visible?

* At its core, the google map is an image attached to a DIV tag.  Here's a decent introduction to an older version (http://www.codeproject.com/Articles/291499/Google-Maps-API-V-for-ASP-NET).

Ivan Danchev
Telerik team
 answered on 13 Jul 2015
3 answers
43 views
Can you provide an example on how to have page numbers on the exported pdf?
Aneliya Petkova
Telerik team
 answered on 13 Jul 2015
3 answers
213 views

I am doing the following at the moment and it seems to work, not sure there is not a method I could use.

 
var dataSource;
        function RequestStart(sender, args) {
            dataSource = $find('<%= RadClientDataSource1.ClientID %>');
            dataSource._transport.read.url = dataSource._transport.baseUrl + "GetListProducts/3";
        };

 Thanks, Marty

 

Marin
Telerik team
 answered on 13 Jul 2015
1 answer
89 views

I have the following Radgrid control with AllowPaging = true. The Items in the Radgrid are sorted in decreasing order after the date in the second column. After I insert a row, I want the focus to be set on the page where the item was inserted. I have tried the following code in the Insert_Command event:

<telerik:RadGrid ID="rgCondica"
            runat="server"
            AllowPaging="true"
            AllowCustomPaging="true"
            AllowSorting="True"
            AutoGenerateColumns="False"
            Skin="Windows7"
            OnItemCommand="rgCondica_ItemCommand"
            OnItemDataBound="rgCondica_ItemDataBound"
            OnInsertCommand="rgCondica_InsertCommand"
            OnUpdateCommand="rgCondica_UpdateCommand"
            OnDeleteCommand="rgCondica_DeleteCommand"
            OnNeedDataSource="rgCondica_NeedDataSource"
            CellSpacing="0"
            CssClass="c1grid"
            GridLines="None"
            PageSize="5" PagerStyle-ShowPagerText="False"
            PagerStyle-AlwaysVisible="true" MasterTableView-NoMasterRecordsText="Nu exista inregistrari" PagerStyle-FirstPageToolTip="Prima pagina"
            PagerStyle-LastPageToolTip="Ultima pagina" PagerStyle-PageSizeLabelText="Nr. inregistrari:" PagerStyle-PrevPagesToolTip="Paginile anterioare"
            PagerStyle-PrevPageToolTip="Pagina anterioara" PagerStyle-NextPagesToolTip="Paginile urmatoare" PagerStyle-NextPageToolTip="Pagina anterioara">
            </telerik:RadGrid​>
protected void rgCondica_InsertCommand(object sender,GridCommandEventArgs e){
GridDataItem item = rgCondica.MasterTableView.FindItemByKeyValue("IdCondica", c.IdCondica);
 rgCondica.CurrentPageIndex = item.RowIndex;
 rgCondica.Rebind();}

but it remains on the last page.

 

Any help is appreciated. Thank you.

Eyup
Telerik team
 answered on 13 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?