Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
473 views
Hello,

How to avoid Rad Grid flickering on each and every event?

Right now my Radgrid control is flickering on each and every event, How to avoid that. 

Right now Radgrid contains Add, Delete, Edit,.....

I dont want flickering happening on each click event. How to achive this?

Thank you
Regards
Ganapathy
Konstantin Dikov
Telerik team
 answered on 24 Aug 2015
1 answer
503 views

Hi Community forum,

I am having a difficult problem with changing the colors of the columns. Here's my html  source

<telerik:RadHtmlChart ID="RadHtmlChart2" runat="server" DataSourceID="SqlDataMyStat">
                                        <PlotArea>
                                            <Series>
                                                <telerik:ColumnSeries DataFieldY="Activities" Name="Activities">
                                                    <Appearance>
                                                        <FillStyle BackgroundColor="#30abf2" />
                                                    </Appearance>
                                                </telerik:ColumnSeries>
                                            </Series>
                                            <XAxis DataLabelsField="Status">
                                                <LabelsAppearance RotationAngle="60" />
                                                <TitleAppearance Text="Status" />


                                            </XAxis>
                                            <YAxis>
                                                <TitleAppearance Text="Activities" />

                                            </YAxis>
                                        </PlotArea>
                                        <Legend>
                                            <Appearance Visible="false" />
                                        </Legend>


                                    </telerik:RadHtmlChart>
                                                
                                                
                                            </XAxis>
                                            <YAxis>
                                                <TitleAppearance Text="Activities" />
                                                
                                            </YAxis>
                                        </PlotArea>
                                        <Legend>
                                            <Appearance Visible="false" />
                                        </Legend>

    </telerik:RadHtmlChart>

 

I would like to achieve that the Activities columns with respect to Status would be different colors per column parse..

here's the query from datasource

Status (x-axis)                                   Activities (y-axis)

Active                                                      30

On-Hold                                                   15

Closed                                                      19

 Thank you in advance for your kind suggestions/solutions...

 

 

 

Danail Vasilev
Telerik team
 answered on 24 Aug 2015
1 answer
120 views

Hello,

Issue occurs when we insert link on a text and then press enter key before the text. On each enter a new unwanted anchor tag is created. 
To get a better understanding of the issue please refer the screen-cast link: http://screencast.com/t/nEIoFf9ht

Can you please provide a solution to this issue?

Thanking you in anticipation,

Siddhi

Ianko
Telerik team
 answered on 24 Aug 2015
3 answers
162 views

Hello,

I only see values, no checkboxes, for my multi values resource in insert or edit ​form.

- I'm using a provider were the method GetResourceTypes ​contains :

...
resourceTypes[0] = new ResourceType("Categories", true);​
...

- I added in aspx definition :

<AdvancedForm Modal="true" EnableResourceEditing="true"></AdvancedForm>​

- by security, I added in aspx.cs for the event RadScheduler1_DataBound :

RadScheduler1.ResourceTypes.FindByName("Categories").AllowMultipleValues = true;​ /* but already true with espion */

 

Before using provider, i already had the problem, it was for this reason i tried provider...

I'm using UI for ASP.NET AJAX Q1 2015 (free edition for the moment).

 

Thank you for ideas...

luc bonenfant
Top achievements
Rank 1
 answered on 22 Aug 2015
2 answers
73 views

 

Hello 

I have a datagrid which contains Edit & Delete buttons set to display as ImageButton. This grid has a details table which also has Edit & Delete buttons set to display as ImageButton. Both button sets display as required.

How/where do I set the buttons of the details edit form to display as ImageButtons as they are displaying as text.

Any direction pointers ?

Thanks

Bill

Bill Noble
Top achievements
Rank 1
 answered on 22 Aug 2015
10 answers
348 views
I have successfully created a custom content provider to use a database id instead of a path, i.e. when inserting an image my provider inserts <img src="GetImage.aspx?id=1234" />   Everything works great, except when I click on the image in the content area and then open the ImageManager.  Then I get the error "NonExistingFolder".  As indicated by other threads, this is clearly because I need to convert GetImage.aspx?id=1234, back to a path, which is simple enough.  What is not clear, is where in the content provider to place the conversion code?  

The constructor receives the src value in SelectedItemTag and SelectedUrl, but changing these values in the constructor didn't have any impact.  Where should I be putting the code restore the src value to a valid path?

Thanks,
Dave
Mark Caldwell
Top achievements
Rank 1
 answered on 21 Aug 2015
2 answers
202 views
Please see attached. Full file name (red circle) is not showing up). How do I change that default length so that complete file name shows up? Thanks
gc_0620
Top achievements
Rank 1
 answered on 21 Aug 2015
9 answers
270 views
When using iif to handle dividing by zero in my calculated column I am always getting 0.

 <telerik:GridCalculatedColumn DataFields="Pagecount, Teampagecount" Expression="iif({1}=0,0,{0}/{1}*100)" HeaderText="Team Work Ratio" UniqueName="Teamratio" DataType="System.Decimal" ItemStyle-HorizontalAlign="Right" /> 

when I uses the expression iif({1},0,{0}) the column displays the value in the bound column Pagecount and if I use the expression iif({1},0,{1}) the column displays the value in the bound column Teampagecount, but when I put the 2 together I always get 0.

What could be the problem? 

Here is the entire grid

<telerik:RadGrid ID="rgWorkload" runat="server" Skin="Sunset" Width="998px" Height="500px" 
AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" GridLines="None" 
PageSize="50" AutoGenerateColumns="False" ShowFooter="true"
<MasterTableView AllowMultiColumnSorting="true"
<FooterStyle Height="20px" /> 
<Columns> 
<telerik:GridBoundColumn DataField="User" HeaderText="Underwriter" UniqueName="User" 
DataType="System.String" Aggregate="Count" /> 
<telerik:GridBoundColumn DataField="Teamname" HeaderText="Primary Team" UniqueName="Teamname" 
DataType="System.Int32" /> 
<telerik:GridBoundColumn DataField="Mas" HeaderText="MAS" UniqueName="Mas" DataType="System.String" /> 
<telerik:GridBoundColumn DataField="Casecount" HeaderText="Pending Cases" UniqueName="Casecount" 
DataType="System.Int32" ItemStyle-HorizontalAlign="Right" Aggregate="Sum" /> 
<telerik:GridBoundColumn DataField="Doccount" HeaderText="Pending Documents" UniqueName="Doccount" DataType="System.Int32" ItemStyle-HorizontalAlign="Right" Aggregate="Sum" /> 
<telerik:GridBoundColumn DataField="Pagecount" HeaderText="Pending Pages" UniqueName="Pagecount" 
DataType="System.Int32" ItemStyle-HorizontalAlign="Right" Aggregate="Sum" /> 
<telerik:GridBoundColumn DataField="Dupcount" HeaderText="Cases with Possible Dups" 
UniqueName="Dupcount" DataType="System.Int32" ItemStyle-HorizontalAlign="Right" 
Aggregate="Sum" /> 
<telerik:GridCalculatedColumn DataFields="Pagecount, Teampagecount" Expression="iif({1}=0,0,{0}/{1}*100)" 
HeaderText="Team Work Ratio" UniqueName="Teamratio" DataType="System.Decimal" 
ItemStyle-HorizontalAlign="Right" Aggregate="Avg" FooterAggregateFormatString="Mean: {0:0.00}" /> 
<telerik:GridCalculatedColumn DataFields="Pagecount, Overallpagecount" Expression="iif({1}=0,0,{0}/{1}*100)" 
HeaderText="Overall Work Ratio" UniqueName="Overallratio" DataType="System.Decimal" 
ItemStyle-HorizontalAlign="Right" Aggregate="Avg" FooterAggregateFormatString="Mean: {0:0.00}" /> 
<telerik:GridBoundColumn DataField="Compcasecount" HeaderText="Completed Cases(24hrs)" 
UniqueName="Compcasecount" DataType="System.Int32" ItemStyle-HorizontalAlign="Right" 
Aggregate="Sum" /> 
<telerik:GridBoundColumn DataField="Teampagecount" HeaderText="Team Pages" UniqueName="Teampagecount" 
DataType="System.Int32" ItemStyle-HorizontalAlign="Right" /> 
<telerik:GridBoundColumn DataField="Overallpagecount" HeaderText="Overall Pages" UniqueName="Overallpagecount" 
DataType="System.Int32" ItemStyle-HorizontalAlign="Right" /> 
</Columns> 
</MasterTableView> 
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True"
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" /> 
<Resizing AllowColumnResize="true" EnableRealTimeResize="true" ClipCellContentOnResize="false" /> 
</ClientSettings> 
</telerik:RadGrid> 



Kostadin
Telerik team
 answered on 21 Aug 2015
2 answers
232 views

Is there a way to keep the DropdownTree open at all times - i dont not want to have it close when i click somewhere else on the page.  I have it open on load now.

I'm trying to have a user click on the node and have that node text populate in a textbox where the user can update the text.  Everytime i click on the textbox the tree closes.  Thanks :)

   <telerik:RadDropDowntree ID="RadDropDownTest"      TextMode="FullPath" ExpandNodeOnSingleClick="true"
                        OnClientEntryAdding="OnClientEntryAdding" OnClientEntryAdded="OnClientEntryAdded" OnClientEntryRemoved="OnClientEntryRemoved"  Skin="Office2007" runat="server" Width="450px"  DropDownSettings-Height="200px" DefaultMessage="Select Rubric Description"
                                >
                            <DropDownSettings Width="450px" OpenDropDownOnLoad="true"   CloseDropDownOnSelection="false" />
                            <ButtonSettings ShowCheckAll="false" ShowClear="true" />
                                <Localization Clear="Clear All" />
                                               
                        </telerik:RadDropDowntree>​

derek
Top achievements
Rank 2
 answered on 21 Aug 2015
5 answers
327 views
I have a RadGrid with GridCalculatedColumn when rebind...

An item with the same key has already been added.

I'm running 2013.3.1015.45.

ASPX

<telerik:RadGrid ID="grillaAfectos" runat="server" AllowPaging="True" AllowSorting="True"
GridLines="None" AutoGenerateColumns="true" PageSize="10"  EnableLinqExpressions="false"
Skin="Metro" Visible="true" Width="98%" OnNeedDataSource="grillaAfectos_NeedDataSource" OnItemDataBound="grillaAfectos_ItemDataBound">
<MasterTableView AutoGenerateColumns="False" AllowCustomPaging="true" NoMasterRecordsText="No se encontraron registros para mostrar.">
<Columns>
<telerik:GridBoundColumn HeaderText="Cuenta Contable" DataField="Detalle.NumeroCuenta"  HeaderStyle-Width="20%">
</telerik:GridBoundColumn>                                                                                   
<telerik:GridCalculatedColumn HeaderText="Descripcion" DataType="System.String" DataFields="Proveedor.ProveedorID, Detalle.CodigoDocumentoPago.Codigo, Detalle.NumeroDocumento, Detalle.FechaMovimiento.Date" Expression='{0} + " " + {1} + "/" + {2} + " " + {3}'>
</telerik:GridCalculatedColumn>
<telerik:GridBoundColumn HeaderText="Monto" DataField="Total" DataFormatString="{0:C0}" ItemStyle-HorizontalAlign="Right" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Nuevo Monto" DataField="MontoNuevo" DataFormatString="{0:C0}" ItemStyle-HorizontalAlign="Right" >
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderStyle-Width="20px" FilterControlAltText="Filter TemplateColumn column" HeaderText="Acción" UniqueName="TemplateColumn" ItemStyle-HorizontalAlign="Center" >
<%--<ItemTemplate>
<asp:HyperLink ID="lnkEditar" runat="server" ImageUrl="~/Content/Img/Grid/edit.png" BorderWidth="0px" BorderStyle="None" ToolTip="Editar" NavigateUrl=<%#"Javascript:onBtnActionsClick('ActualizarTasas.aspx?id=" + Eval("DocumentosPagadosID").ToString() + "&dolar=" + ViewState("dolar") + "','Tasas','Tasas',800,200)"%> Visible="false"/>
</ItemTemplate>--%>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn HeaderText="" DataField="FacturaDetalleID" Visible="false" >
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
</ClientSettings>
</telerik:RadGrid>

Code Behind
Dim grillaAfectos As RadGrid = DirectCast(RadPanelBar5.FindItemByValue("Desembolsos").FindControl("grillaAfectos"), RadGrid)
grillaAfectos.DataSource = objNotaDebito.Tasas
          grillaAfectos.DataBind()
Protected Sub grillaAfectos_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs)
            objNotaDebito = DirectCast(objCache("NotaDebito"), NotaDebitoVO)
            Dim grillaAfectos As RadGrid = DirectCast(RadPanelBar5.FindItemByValue("Desembolsos").FindControl("grillaAfectos"), RadGrid)
            Dim startIndex As Int32 = grillaAfectos.CurrentPageIndex
            Dim maximumRows As Int32 = grillaAfectos.PageSize
            If objNotaDebito.Tasas IsNot Nothing AndAlso objNotaDebito.Tasas.Count > 0 Then
                objNotaDebito.Tasas = objNotaDebito.Tasas.Skip((startIndex) * maximumRows).Take(maximumRows).ToList()
            End If
 
            grillaAfectos.DataSource = objNotaDebito.Tasas
        End Sub


If I remove this column works perfectly....
Maria Ilieva
Telerik team
 answered on 21 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?