Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
Hi All,

I have a RadGrid on a page which also has a user control, on this user control is an HTML link (among other things).  There are links in the RadGrid which updates the user control. All works well. 

If I right click the html link in the user control and choose the "Open Link in New Tab" option, a new tab opens, the focus remains on the original tab.  When I click on a link in the RadGrid, on the original tab, to refresh the user control - nothing!  In that the click event fires but I now get no response from the server.

If I go to the new tab and click a grid element here, it works on that tab.  Returning to the original tab, it all works again.  It's as if state has been transferred to the new tab?

Has anyone come across any issue like this before?

Thanks,
Eddie.
Angel Petrov
Telerik team
 answered on 24 Apr 2013
0 answers
117 views
Dear,

In RadGrid i have GridHyperLinkColumn with URI File path (\\server\media\file.wav) for downloading its working fine in IE but in Google Chrome is not clickable.

Do you have any solution for that issue, please?
Mohamed Salah Al-Din
Top achievements
Rank 1
 asked on 24 Apr 2013
1 answer
85 views
Hi,

I have been searching info of my problem in Google but I havent found anything...

I have a radtreeview and each node have an icon in the left. When I click in the text of the node some data is loaded in another gridview and then that node is selected.  But when I do click in the left icon the node is selected and the gridview doesnt load or change data.

What i want is that when i click in the icon the grid didnt change (that it is ok) but that the node of this icon wasnt selected. I want that the node was selected only when i click in the text of the node, and not in the icon.

Where can i do change that? when i do mouse over the image the cursor doesnt change to pointer, so it isnt a link...

<div class="rtMid">
         <span class="rtSp"></span>
         <img src="https://127.0.0.1/50/App_Themes/s/arbol.gif" class="rtImg">
         <a class="rtIn" href="javascript:__doPostBack('ctl00$MCPH$hd_gr', 27);">Grupo 20</a>
</div>

thanks,
Erynshore
Top achievements
Rank 1
 answered on 24 Apr 2013
0 answers
194 views
嗨,有疑难问题想下拉框不显示,我能做些什么呢?  
Lion
Top achievements
Rank 1
 asked on 24 Apr 2013
5 answers
275 views
Hello,

I am currently using Radcombobox in my project now at selected index changed i am displaying Two text boxes and RadGrid so the problem is when i Select any company from combobox than Textboxes and radgrid dispalying after some seconds so at that time i want to show an any loading image or any Waiting Text so please tell me how can i do this asap. I m attaching some sceren shot

1) screenhot radcombox1 intially open
2) screenhot radcombox2 when i will select any company from my list
3) screenhot radcombox3 after selecting textbox and rad grid will display

i hope you understand my problem.

thanx in advance
Nencho
Telerik team
 answered on 24 Apr 2013
1 answer
122 views
Hi Team,

I am developing the line chart by using RadChart in asp.net with C#(visual studio 2010), data is binding dynamically from the DB, I have the following issues,
1)  Need to display the MarkersAppearance for each point.
2) I need to draw the line at current month, to differentiate the past and future months.
3) Need to display the chart title in center, with background color to the entire area.
for reference please see the attachment.

I already refer the following links, but unable to fix above issues.
a) http://www.telerik.com/help/aspnet-ajax/htmlchart-types-line-chart.html
b) http://www.telerik.com/help/aspnet-ajax/chart-building-programmatic-create-complex.html



Thanks in advance.
Evgenia
Telerik team
 answered on 24 Apr 2013
1 answer
81 views
I'm having problems zooming out my RadChart. I have a telerik:RadButton that calls a script to zoomOut on the RadChart but it seems that the zoom out is overwritten by an Ajax refresh that sets the chart back to where it was. 

I've read that RadScriptBlock runs after Ajax refresh but this does not seem to resolve the issue.

Looking at this thread http://www.telerik.com/community/forums/aspnet-ajax/chart/zoomout-method-not-working.aspx#742256
I can see the answer here was the use of an asp:Button and, yes this solution works. But the same solution does
not seem to work when the button that calls the script is a <telerik:RadButton>

            <div id="div3">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">

                <telerik:RadButton ID="RadButton1" runat="server" text="Zoom Out" onclientclicked="ZoomOutChart1" >
                </telerik:RadButton>

                
                    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                        <script type="text/javascript">
                            function ZoomOutChart1() {
                                //scale XAxis by factor 3 
                                var chart = $find("<%=RadChart1.ClientID%>");
                                if (chart != null)
                                    chart.zoomOut();
                            }
                        </script>
                    </telerik:RadScriptBlock>

                <telerik:RadChart ID="RadChart1" runat="server" DefaultType="Line" 
                     Height="500px" Width="500px" Skin="BabyBlue"> <%-- --%>
                    <Appearance>
                        <FillStyle MainColor="239, 255, 254">
                        </FillStyle>
                        <Border Color="188, 229, 231" Width="8" />
                    </Appearance>
                    <Series>
                        <telerik:ChartSeries Name="Series 1" Type="Line">
                            <Appearance>
                                <FillStyle MainColor="194, 230, 252" FillType="Solid">
                                </FillStyle>
                                <TextAppearance TextProperties-Color="78, 168, 188">
                                </TextAppearance>
                                <Border Color="177, 215, 250" />
                            </Appearance>
                        </telerik:ChartSeries>
                    </Series>
                    <ClientSettings EnableZoom="true" ScrollMode="XOnly" XScale="4" /><%-- --%>
                </telerik:RadChart>
               </telerik:RadAjaxPanel>
            </div>

If I comment out the RadAjaxPanel then zoom out works fine
If I replace the telerik:RadButton with an asp:Button it also works fine

my server side code is as follows:

  protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            int[] intArray = new int[100];
            Random random = new Random();

            int currentValue = 50;
            for (int pos = 0; pos < 100; pos++)
            {
                currentValue += random.Next(-5, 5);
                intArray[pos] = currentValue;
            }

            RadChart1.DataSource = intArray;
            RadChart1.DataBind();
            RadChart1.ClientSettings.EnableAxisMarkers = false;
            RadChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false;
            RadChart1.PlotArea.XAxis.Appearance.MinorGridLines.Visible = false;

            RadChart1.PlotArea.XAxis.Appearance.MinorGridLines.Visible = false;
            RadChart1.PlotArea.YAxis.Appearance.MinorGridLines.Visible = false;
        }
Maria Ilieva
Telerik team
 answered on 24 Apr 2013
2 answers
778 views
Hi all if I enter the text as 012 this is displaying the result as 12, but I would like to have my value as per I entered. What should I do.

This is my design

<telerik:RadNumericTextBox ID="txtbankRoutingNumber" NumberFormat-GroupSeparator=""
             Width="200px" runat="server" Type="Number" MaxLength="9"
            IncrementSettings-InterceptMouseWheel="false" IncrementSettings-InterceptArrowKeys="false">
            <NumberFormat DecimalDigits="0" />
        </telerik:RadNumericTextBox>
Reshma
Top achievements
Rank 1
 answered on 24 Apr 2013
1 answer
152 views

Hi, 
I have a radigrid which i bind client side, it have max rows 100 and for every page i bind only the 100 items. I get the data with PageMethods. Everything worked fine until chrome latest update 26.0.1410.64 m after that when the radgrid gets the data the tab is freezing  and the loader gif i have freeze. Also every time i change the page tha same freezing happend. The whole page performance is very slow.

The page in chrome when the radgrid paints the data is very slow and the waiting is for minities. I have tested with devtools and i saw that the freezing happed after the client side gets the data and try to databind. In  IE 8 also freeze for a sorter time than chrome, this performance improved in IE10 and my page is a lot faster. In Firefox there is a tiny freeze only for a sec. 

I have try to improve performance for the grid and for the page 
http://www.telerik.com/products/aspnet-ajax/getting-started/top-performance.aspx
http://www.telerik.com/help/aspnet-ajax/grid-viewstate-reduction-techniques.html

but nothing. And everything happend after the latest update of chrome. In IE of course it always happend but our client does not used much. The telerik version i have is v.2012.2.815.35
and this the code of the rad grid 

 

<telerik:RadGrid ID="dltBroadcast" EnableViewState="false" runat="server" AllowPaging="true"
                                        AllowSorting="True" PageSize="100" AllowMultiRowSelection="True" ClientSettings-EnableRowHoverStyle="True"
                                        Width="956px" CellPadding="0" CellSpacing="0" Skin="RadGridCustomBlack" EnableEmbeddedSkins="False">
                                        <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" HorizontalAlign="Justify"
                                            AlwaysVisible="True" />
                                        <MasterTableView ClientDataKeyNames="ElementId,SentimentDesc,CrawledDateTime" AllowMultiColumnSorting="true"
                                            TableLayout="Fixed">
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="ElementId" HeaderText="ElementId" ReadOnly="True"
                                                    UniqueName="colElementId" Visible="False">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridClientSelectColumn UniqueName="SelectColumn" DataTextField="ElementId"
                                                    Resizable="false">
                                                    <HeaderStyle Width="30px" />
                                                </telerik:GridClientSelectColumn>
                                                <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20px"
                                                    HeaderStyle-Width="20px" UniqueName="colSentiment" Visible="True" ItemStyle-BorderStyle="None"
                                                    Resizable="false">
                                                    <ItemTemplate>
                                                        <div>
                                                            <a id="linkSentimentPositive" runat="server">
                                                                <img id="ImageSentimentPositive" runat="server" width="15" height="14" border="0"
                                                                    alt="" src="Images/positiveNormal.png" class="dtgridSentimentImages" /></a>
                                                            <br />
                                                            <a id="linkSentimentNeutral" runat="server">
                                                                <img id="ImageSentimentNeutral" runat="server" width="15" height="14" border="0"
                                                                    alt="" src="Images/neutralNormal.png" class="dtgridSentimentImages" /></a>
                                                            <br />
                                                            <a id="linkSentimentNegative" target="_self" runat="server">
                                                                <img id="ImageSentimentNegative" runat="server" width="15" height="14" border="0"
                                                                    alt="" src="Images/negativeNormal.png" class="dtgridSentimentImages" /></a>
                                                            <br />
                                                            <a id="linkSentimentUnassigned" runat="server">
                                                                <img id="ImageSentimentUnassigned" runat="server" width="15" height="14" border="0"
                                                                    alt="" src="Images/unassignedNormal.png" /></a>
                                                        </div>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridHyperLinkColumn DataTextField="Title" UniqueName="colTitle" HeaderText="Title"
                                                    ItemStyle-Font-Underline="true" ItemStyle-Width="200px" HeaderStyle-Width="200px"
                                                    ItemStyle-Wrap="true">
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" BorderStyle="None" Wrap="True" />
                                                </telerik:GridHyperLinkColumn>
                                                <telerik:GridBoundColumn DataField="Snippet" HeaderText="Snippet" ItemStyle-Width="200px"
                                                    HeaderStyle-Width="200px" ReadOnly="false" UniqueName="colSnippet">
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Left" BorderStyle="None" Wrap="True" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Tags" HeaderText="Keywords" ReadOnly="True" UniqueName="colkeywords"
                                                    ItemStyle-Width="70px">
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" BorderStyle="None" Wrap="True" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="HostNameToShow" HeaderText="Source" ReadOnly="True"
                                                    UniqueName="colHostName" ItemStyle-Width="80px">
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" BorderStyle="None" Wrap="True" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="CrawledDateTime" HeaderText="Date" DataType="System.DateTime"
                                                    ItemStyle-Width="70px" HeaderStyle-Width="70px" DataFormatString="{0:dd/MM/yyyy HH:mm}"
                                                    ReadOnly="True" UniqueName="colCrawledDateTime">
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" BorderStyle="None" Wrap="True" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="TagName" HeaderText="User Tags" ReadOnly="True"
                                                    UniqueName="colTags">
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" BorderStyle="None" Wrap="True" />
                                                </telerik:GridBoundColumn>
                                                <telerik:GridTemplateColumn UniqueName="colButtons" Visible="True" ItemStyle-Width="55px"
                                                    HeaderStyle-Width="55px" ItemStyle-BorderStyle="None" Resizable="false">
                                                    <ItemTemplate>
                                                        <div>
                                                            <a id="linkTag" runat="server">
                                                                <img id="ImageTag" runat="server" width="13" height="13" border="0" title="Tag" alt="Tag"
                                                                    src="Images/tag.gif" class="dtgridButtonsLeft" /></a> <a id="linkdelete" runat="server">
                                                                        <img id="Imgdelete" runat="server" width="13" height="13" border="0" title="Delete"
                                                                            alt="Delete" src="Images/delete.gif" class="dtgridButtonsRight" /></a><br />
                                                            <a id="linkSendEmail" runat="server">
                                                                <img id="ImgSendEmail" runat="server" width="13" height="13" border="0" title="Email"
                                                                    alt="Email" src="Images/email.gif" class="dtgridButtonsLeft" /></a> <a id="LinkHighlited"
                                                                        runat="server">
                                                                        <img id="ImgHighlited" runat="server" width="12" height="12" border="0" title="Highlight"
                                                                            alt="Highlight" src="Images/highlighted.png" class="dtgridButtonsRight" /></a><br />
                                                            <a id="linkEnagagedCommunity" runat="server">
                                                                <img id="ImgEnagagedCommunity" runat="server" width="13" height="13" border="0" title="Engaged Community"
                                                                    alt="Engaged Community" src="Images/details.gif" class="dtgridButtonsLeft" /></a>
                                                            <a id="LinkUrlAspect" runat="server">
                                                                <img id="ImgUrlAspect" runat="server" width="14" height="12" border="0" title="Aspects"
                                                                    alt="Aspects" src="Images/aspect.png" class="dtgridButtonsRight" /></a>
                                                        </div>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                        <ClientSettings>
                                            <ClientEvents OnCommand="dltBroadcast_Command" OnRowDataBound="dltBroadcast_RowDataBound"
                                                OnColumnClick="dltBroadcast_ColumnClick" />
                                            <Selecting AllowRowSelect="true" />
                                            <Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="false"
                                                ClipCellContentOnResize="true" EnableRealTimeResize="true" AllowResizeToFit="true" />
                                            <Scrolling AllowScroll="false" UseStaticHeaders="false"></Scrolling>
                                        </ClientSettings>
                                    </telerik:RadGrid>


and this is my javascript 

function updateGridWithBinding(result) {
              var tableView = $find("<%= dltBroadcast.ClientID %>").get_masterTableView();
              tableView.clearSelectedItems();
              tableView.set_dataSource(result);
              tableView.dataBind();
                        }

Can you help me?

Thanks.


Martin
Telerik team
 answered on 24 Apr 2013
1 answer
277 views
Hello,

I have a RadGrid for which I use the OnItemCommand event. As expected, in the event handler I can find the GridDataItem from which the event was sent in the GridCommandEventArgs.Item.

Now I add a client side event handler for the event ClientSettings-ClientEvents-OnCommand. After this (javascript) event handler is called, a postback occurs and the server side OnItemCommand event is fired. But the GridCommandEventArgs.Item is now always referring to the first item in the grid and not the item that caused the event to be fired!

Am I doing something wrong?

Cheers,
Paul.
Andrey
Telerik team
 answered on 24 Apr 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?