Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
461 views

We are using your components for data validation of external data where data might be wrong.

We ​use DatePickers a lot ​and we need to set the MinDate and Max​Date when ​users correct values.

Sometimes the dates is out of range. At the moment I have set the SkipMinMaxDateValidationOnServer="true", but the date is changed when displaying it to min date if the date is below min date. This confuses the users since they don't know the original value of the date and when they see it on the sc​reen they think it is correct and can't understand why the system is complaining about the date since it seems to be within the allowed range.

Is it possible to keep the original value, but display the nice "waring" symbol instead ?

As a "not so nice" workaround at the moment we need to adjust the min date to the invalid date so that the date is not changed.

Regards

Ole Oscar Johnsen

Viktor Tachev
Telerik team
 answered on 02 Sep 2015
6 answers
433 views
Hi

I searched  to find something about my problem but all I found does not seen to work :<

I have a hierarchical grid with the following definition. The grid is filled in ...NeedsDatasource and the detail table in the ...DetailDataBind and the UI result is very good

I use the following code to export to excel

==> But as result (see in the attached file), the detail lines in excel are are empty :(
I cannot figure why it is not working => I suppose that for some reason, the export cannot get content of the detail table...
 
Thanks for helping

RadGrid1.ExportSettings.FileName = "ExcelExport";
        RadGrid1.ExportSettings.IgnorePaging = true;
        RadGrid1.ExportSettings.ExportOnlyData = true;
        RadGrid1.ExportSettings.OpenInNewWindow = true;
        RadGrid1.MasterTableView.UseAllDataFields = true;
        RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;

        RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;
        RadGrid1.MasterTableView.DetailTables[0].HierarchyDefaultExpanded = true;

        RadGrid1.MasterTableView.HierarchyLoadMode = GridChildLoadMode.Client;
        RadGrid1.MasterTableView.DetailTables[0].HierarchyLoadMode = GridChildLoadMode.Client;

        RadGrid1.MasterTableView.GetColumn("Link").Visible = false;
          
        RadGrid1.MasterTableView.ExportToExcel();



<telerik:RadGrid ID="RadGrid1" runat="server" Width="90%" ShowStatusBar="true" AutoGenerateColumns="False"
                PageSize="10" AllowSorting="True" AllowMultiRowSelection="True" AllowPaging="True"
                OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnNeedDataSource="RadGrid1_NeedDataSource"
                OnPreRender="RadGrid1_PreRender">
                <PagerStyle Mode="NumericPages"></PagerStyle>
                <MasterTableView Width="100%" DataKeyNames="DocId" AllowMultiColumnSorting="True" AllowPaging="true" UseAllDataFields="true">
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="LineNumber" Name="Lines" Width="100%">
                            <Columns>
                                <telerik:GridBoundColumn SortExpression="LineNumber" HeaderText="Invoice line #" HeaderButtonType="TextButton"
                                    DataField="LineNumber">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Description" HeaderText="Description" HeaderButtonType="TextButton"
                                    DataField="Description">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Quantity" HeaderText="Quantity" HeaderButtonType="TextButton"
                                    DataField="Quantity" DataFormatString="{0:0.00}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="SKU" HeaderText="SKU" HeaderButtonType="TextButton"
                                    DataField="SKU">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="UnitPrice" HeaderText="Unit price" HeaderButtonType="TextButton"
                                    DataField="UnitPrice" DataFormatString="{0:0.00}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="TotalAmount" HeaderText="Amount" HeaderButtonType="TextButton"
                                    DataField="TotalAmount" DataFormatString="{0:0.00}">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Banner" HeaderText="Banner" HeaderButtonType="TextButton"
                                    DataField="Banner">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="BDF" HeaderText="BDF" HeaderButtonType="TextButton"
                                    DataField="BDF" DataFormatString="{0:0.00}">
                                </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn SortExpression="Q1083" HeaderText="Q1083" HeaderButtonType="TextButton"
                                    DataField="Q1083" DataFormatString="{0:0.00}">
                                </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn SortExpression="Q1084" HeaderText="Q1084" HeaderButtonType="TextButton"
                                    DataField="Q1084" DataFormatString="{0:0.00}">
                                </telerik:GridBoundColumn>

                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn1">
                        </telerik:GridClientSelectColumn>
                        <telerik:GridBoundColumn SortExpression="DocumentNumber" HeaderText="Document number" HeaderButtonType="TextButton"
                            DataField="DocumentNumber">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="ReferenceNumber" HeaderText="Reference number" HeaderButtonType="TextButton"
                            DataField="ReferenceNumber">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="WeekEnding" HeaderText="Week ending" HeaderButtonType="TextButton"
                            DataField="WeekEnding" DataFormatString="{0:yyyy-MM-dd}">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="StartPeriod" HeaderText="Promo start" HeaderButtonType="TextButton"
                            DataField="StartPeriod" DataFormatString="{0:yyyy-MM-dd}">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="EndPeriod" HeaderText="Promo end" HeaderButtonType="TextButton"
                            DataField="EndPeriod" DataFormatString="{0:yyyy-MM-dd}">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="CostDealNumber" HeaderText="Cost Deal number" HeaderButtonType="TextButton"
                            DataField="CostDealNumber">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="TotalAmount" HeaderText="Total Amount" HeaderButtonType="TextButton"
                                    DataField="TotalAmount" DataFormatString="{0:0.00}"></telerik:GridBoundColumn>
                        <telerik:GridHyperLinkColumn HeaderText="Link" ImageUrl="~/Images/lens.png" Target="_blank" UniqueName="Link"
                             DataNavigateUrlFields= "DocId"
                             DataNavigateUrlFormatString= "~/dm_detail.aspx?DM_OBJECT_ID={0}">                            
                        </telerik:GridHyperLinkColumn>
                        <telerik:GridBoundColumn SortExpression="CheckNumber" HeaderText="Check #" HeaderButtonType="TextButton"
                            DataField="CheckNumber">
                        </telerik:GridBoundColumn>                        
                    </Columns>
                </MasterTableView>
                <ClientSettings>
            <Selecting AllowRowSelect="true"></Selecting>
 
        </ClientSettings>
                
            </telerik:RadGrid>



Jorges
Top achievements
Rank 1
 answered on 02 Sep 2015
3 answers
405 views

Hi,

At the moment it seems like the DataForm can handle only Label, Value pairs.

I want to have the possibility the create this structure.

row start

Label, ​Value <fixed gap>   Label, Value

row start
Label, ​Value <fixed gap>   Label, Value

I was hoping not to use a Table to solve it.

When I use the CssClass="rdfLabel rdfBlock" and CssClass="rdfFieldValue" on these pairs, then the structure will be Label, Label, Value, Value. Does it exist a css class that will handle this scenario ? I have tried to search for it, but with no luck. Does it exist any documentation on ​the predefined css classes and the use.

 

Regards

Ole Oscar Johnsen

Viktor Tachev
Telerik team
 answered on 02 Sep 2015
1 answer
147 views

I don't know , for some reason, when I drag a column header to group panel, all the rows of the grid vanish leaving only group panel visible which is unresponsive. 

Figure 1 is the original gird. 

When I try to drag any column (say Year) to the group panel, Figure 2 is the result.

 Your help in solving this problem is highly appreciated. 

Viktor Tachev
Telerik team
 answered on 02 Sep 2015
9 answers
166 views

I started to isolate my code - then realized that ​this problem is easily reproduced.

Take this example:

http://www.telerik.com/support/code-library/responsive-radgrid-d82dc6333682#eAgo5lqhwEm1m86WcKeqJQ

1. Add AllowSorting="True" to the RadGrid

2. Wrap the RadGrid in a RadAjaxPanel - or wire it to a RadAjaxManager

3. In a normal desktop resolution that should NOT apply the @media CSS rules - Click a Column heading to sort

NOTE: The @media rules are applied to the grid erroneously.  I have also had this apply other @media rules on my page - outside of the radgrid and radajax on column sort or grid paging.  This problem stops if you remove the Ajax wiring - which then of course makes the page much less usable.

 

Tested in the latest version of Chrome on Windows 8.1 and using the latest 2015.2 release

Viktor Tachev
Telerik team
 answered on 02 Sep 2015
3 answers
168 views

achieved implement the diagram on page in my project, but they are asking me to be drawn by code that is within DefaultVB.aspx.vb then receive and display parameters

  How the code development? They have something to help me please

http://demos.telerik.com/aspnet-ajax/diagram/examples/overview/defaultvb.aspx ​​

logre implementar el Diagrama que aparece en la pagina en mi proyecto, pero me están pidiendo que se dibuje por código, es decir dentro de DefaultVB.aspx.vb para luego recibir parámetros y mostrarlos

 ¿como lo desarrollo por código? tienen algo que me ayuden por favor

http://demos.telerik.com/aspnet-ajax/diagram/examples/overview/defaultvb.aspx ​

Danail Vasilev
Telerik team
 answered on 02 Sep 2015
3 answers
112 views

I have a grid with Supplier, Month, Cost that shows the past 12 months. In order to sort the months chronologically, I have SortExpression="Year, Mth" for the Month column, which are the numeric values in the query which are not displayed in the grid. This sorts correctly when the Month column header is clicked, but when I drag the Month column to the group bar, it sorts the months alphabetically. How can I get this to sort by Year, Mth when a user groups by the Month column? It seems this should be doable in the RadGrid's GroupsChanging event, but I'm not sure how to make that happen.

 

Thanks!

Eyup
Telerik team
 answered on 02 Sep 2015
1 answer
97 views

Hi team,

Please suggest the best way to improve performance of my grid, which having 300000 rows.

Please do the needful.

Thanks

Senthilkumar N

Konstantin Dikov
Telerik team
 answered on 02 Sep 2015
1 answer
119 views

Hi,

I have an orgchart setup like this:

 

<telerik:RadOrgChart ID="RadOrgChart1"runat="server"OnNodeDataBound="RadOrgChart1_NodeDataBound"
           Skin="Metro">
           <ItemTemplate>
               <divstyle="height: 50%">
                   <span>Name:
                       <%#DataBinder.Eval(Container.DataItem, "Name")%></span>
                   <br/>
                   <span>
                       <%#DataBinder.Eval(Container.DataItem, "role")%></span>
                   <telerik:RadGrid ID="RadGrid1" runat="server"OnNeedDataSource="RadGrid1_NeedDataSource">
                   </telerik:RadGrid></div>
           </ItemTemplate>
       </telerik:RadOrgChart>



I’d like to have a radgrid embeded into each node, however to do this I need to grab the ID of the node from the RadGrid1_NeedDataSource event.
Can someone please advise how I can do this please?
Also is there any way to increase the item template height?

 
Nencho
Telerik team
 answered on 02 Sep 2015
3 answers
88 views

Hi,

Our scheduler default view is the current week, however, the current week doesn't change to next week when it is next Monday.

For instance; 

Today is Monday at 6am in the morning and the scheduler is still showing the last week.

It gets exchange to this week after 10ish or 11ish. 

I have also set up my start time and end time, so not sure it may be related to.

what could be the reason?
Thank you

Plamen
Telerik team
 answered on 02 Sep 2015
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?