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

I am using the latest Telerik.

My RadGrid has a date column and I am trying to format it but it doesn't work.

<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="true" OnInit="RadGrid1_Init" 
                                PageSize="15"   AllowFilteringByColumn="true"   OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender" Font-Size="Small">
                
                <MasterTableView>
                    <Columns>
                        <telerik:GridDateTimeColumn DataField="BillDate" UniqueName="BillDateColumn1" DataFormatString="{0:dd/MM/yyyy}"  HeaderText="Bill Date1" />
                        <telerik:GridBoundColumn DataType="System.DateTime" DataField="BillDate" UniqueName="BillDateColumn2" DataFormatString="{0:dd/MM/yyyy}"  HeaderText="Bill Date2" /> 
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

 

In both columns, I get format like 4/30/2017 12:00:00 AM instead of just 4/30/2017.

Is there anything I am missing here?

StuartLittle
Top achievements
Rank 1
 answered on 22 Jun 2018
1 answer
412 views

Hi,

I have GridTemplate column with RadioButtonList and Telerik GridCheckBox column along with regular GridBoundColumns in RadGrid. In my javascript depending upon condition, I need to make GridTemplate column with RadioButtonList and Telerik GridCheckBox column as readonly and toggle it to be editable depending on condition.

I am not finding any code to make those 2 columns as readonly.

Please suggest.

 

Thank You

Marin Bratanov
Telerik team
 answered on 22 Jun 2018
1 answer
124 views

I spent hours trying to figure out how possibly bind this control to a datasource in a formview through a property.

Text does absolutely nothing.

Radcombobox use the Selectedvalue property. How am I supposed to use AutoComplete to load the value from the DB and Set it when I trigger the Update command?
I can't see anithing about it in the docs.

Peter Milchev
Telerik team
 answered on 22 Jun 2018
4 answers
123 views

Good morning,

 

We are witnessing an issue in the latest version of FireFox (v59.0), Telerik Ajax 2018 R1, where the tile click event is not firing - issue can be replicated on the Tile demo page also:

https://demos.telerik.com/aspnet-ajax/tilelist/examples/overview/defaultcs.aspx

 

This appears to be due to amendments to the pointer functionality mentioned in the 59.0 release notes:

"Added support for W3C specs for pointer events and improved platform integration with added device support for mouse, pen, and touch screen pointer input"

https://www.mozilla.org/en-US/firefox/59.0/releasenotes/

 

This can be proved further by modifying the about:config and setting the dom.w3c_pointer_events.enabled value to disabled and refreshing the page, after which the tiles work.

 

Screen record:

https://www.screencast.com/t/dc4duWvP6

 

This is affecting our production environment, so a quick fix/workaround would be appreciated.

Many thanks

Peter Milchev
Telerik team
 answered on 21 Jun 2018
0 answers
82 views

I'm trying to create a chart with a stacked column series using a bound data source.    

I am able to create either stacked or series, but can't figure out how to combine the two.   I suspect the root of the problem is getting the data formatted correctly.   

Is there a simple example of how to accomplish this somewhere?   

 

 

Jakub
Top achievements
Rank 1
 asked on 20 Jun 2018
1 answer
66 views

     Hi, can you create such project like this:
https://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultcs.aspx

but also with hierarchy (child grid)?


The grid i need must be virtualized and have clickable detailtable (hierarchy) and custom paging

1) I made this and it does not work because DetailTableDataBind event runs only once for first page (bug?)
2) When i move to second page and then click left arrow on row to expand child table there is a postback with currentpageindex = 0 (should be 1 as a second page), note that you can see in UI that selected page is first instead of second but pagination cursor stays at good place (selected second page)


Marin Bratanov
Telerik team
 answered on 20 Jun 2018
1 answer
95 views

     Hi, can you create such project like this:

https://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultcs.aspx

but also with hierarchy (child grid)?


The grid i need must be virtualized and have clickable detailtable (hierarchy) and custom paging

1) I made this and it does not work because DetailTableDataBind event runs only once for first page (bug?)

2) When i move to second page and then click left arrow on row to expand child table there is a postback with currentpageindex = 0 (should be 1 as a second page), note that you can see in UI that selected page is first instead of second but pagination cursor stays at good place (selected second page)

 

 

Marin Bratanov
Telerik team
 answered on 20 Jun 2018
1 answer
89 views

Hello,

is it possible to update this example ?

https://www.telerik.com/support/code-library/month-year-picker

It doesn't work anymore, I think because of html 5 control structure...

Thank you

Vasssek

Marin Bratanov
Telerik team
 answered on 19 Jun 2018
2 answers
61 views

Hello,

Could you please give me an info about radnumeric textbox behaviour ? When I want to type some letters on desktop Chrome browser it blinks and prevents me to type any letter. This is OK. But on mobile device TC70 this control allows me to type any lettter and just after I tap to another control the letters have dissappeared.

Now, I don't know if its bug or normal behaviour. If it's normal, please give me some workaround, how to prevent user to type letters on mobile device into radnumerictextbox control...

Thank you

Best regards

Vasssek

Rumen
Telerik team
 answered on 19 Jun 2018
7 answers
461 views

Hi,

I am using telerik treeview (code sample below). I am trying to maintain the treeview state (wanted to keep the selected node open, selected) after response.redirect. But its not working, any one knows why?

This is the code I have in my ASP.net MASTER page.

Telerik.Web.UI.dll version: 2010.1.519.35

public void RadTreeView1_OnNodeClick(object sender, EventArgs e)
{
    RadTreeNode node = RadTreeView1.FindNodeByText("Second Page");
    node.Expanded = true;
    node.Selected = true;
     
    string pageN = string.Empty;
    pageN = RadTreeView1.SelectedValue.ToString();
    Response.Redirect(pageN.ToString());   
}

 

 

 

<telerik:RadTreeView runat="server" ID="RadTreeView1" Style="margin: 15px;" EnableViewState="true" OnNodeClick="RadTreeView1_OnNodeClick" AutoPostback="true">
    <Nodes>
        <telerik:RadTreeNode Text="Top Item" Value="Top Item" SelectedCssClass="" EnableViewState="true">
            <Nodes>
 
                <telerik:RadTreeNode Expanded="False"  Text="One" Value="One">
                    <Nodes>
                        <telerik:RadTreeNode Expanded="False"  Text="OneItem1" Value="OneItem1">
                            <Nodes>
                                <telerik:RadTreeNode Expanded="False"  Text="OneItem1Node1" Value="OneItem1Node1">
                                    <Nodes>
                                        <telerik:RadTreeNode Text="Actual Page" Value="~/ActualPage.aspx" Expanded="False" ></telerik:RadTreeNode>
                                    </Nodes>
                                </telerik:RadTreeNode>
                            </Nodes>
                        </telerik:RadTreeNode>
                        <telerik:RadTreeNode Expanded="False"  Text="OneItem2" Value="OneItem2">
                            <Nodes>
                                <telerik:RadTreeNode Expanded="False"  Text="OneItem2Node1" Value="OneItem2Node1">
                                    <Nodes>
                                        <telerik:RadTreeNode Text="Second Page" Value="~/SecondPage.aspx" Expanded="False" ></telerik:RadTreeNode>
                                        <telerik:RadTreeNode Text="Third Page" Value="~/ThirdPage.aspx" Expanded="False" ></telerik:RadTreeNode>
                                       </Nodes>
                                </telerik:RadTreeNode>
                                <telerik:RadTreeNode Expanded="False"  Text="OneItem3" Value="OneItem3">
                                    <Nodes>
                                        <telerik:RadTreeNode Text="Fourth Page" Value="~/FourthPage.aspx" Expanded="False" ></telerik:RadTreeNode>
                                        <telerik:RadTreeNode Text="Fifth Page" Value="~/FifthPage.aspx" Expanded="False" ></telerik:RadTreeNode>
                                    </Nodes>
                                </telerik:RadTreeNode>
                            </Nodes>
                        </telerik:RadTreeNode>
                    </Nodes>
                </telerik:RadTreeNode>
            </Nodes>
        </telerik:RadTreeNode>
    </Nodes>
</telerik:RadTreeView>
    
Peter Milchev
Telerik team
 answered on 19 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?