Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
225 views
I'm using telerik components, objectdatasource and Entity Framework 4 in my web application.
The grid is very simple and the columns have some Telerik comboboxes.

The problem is that the loading of the grid is very slow: it can take 4-5 seconds. A normal Entity Data Access is 2-3 seconds. What can I do to optimize performance?
Radoslav
Telerik team
 answered on 01 Jul 2010
1 answer
126 views
I am using a dynamic GridBoundColumn and I'm adding a custom filter (RadComboBox). everything is great except I can't filter--filterItem.FireCommandEvent fails with the exception "Neither of the types 'String' and 'Boolean' converts to the other". Any advice would be appreciated.

 

Pavlina
Telerik team
 answered on 01 Jul 2010
2 answers
65 views
Hi,

I have an ASPX page, which I want to display in a RadWindow.
Is this possible?

Please suggest.

Thanks.
Debashis
Debashis Pyne
Top achievements
Rank 1
 answered on 01 Jul 2010
1 answer
134 views
Hi,


In my grid I have a datetime column, and I would like to display it as hyperlink and link it to some other page.

I also want to use RadDatePicker as filtering control for this column. And I'm hoping the solution would be very simple..

What is the simplest way to do this?

Thanks in advance,
Kartheek.
Mira
Telerik team
 answered on 01 Jul 2010
6 answers
239 views
Hi,
I've been searching the forum and the internet for hours now and saw loads of people having the same problem, but none of the solutions offered to them worked for me, so I'd appreciate your help.

I have a splitter which divides my screen into two different parts and on the left have a sliding pannel and on the right pannel I load different external pages. One of them has a Radgrid control which fits nicely on screen...until I pin out the sliding pannel and pin it back in, move the splitter or resize window. In all these cases, when restoring to normal size my radgrid is completally off the screen to the right, even outside the components containers. All this happens only in IE, it seems to work fine in Firefox...but I need it working in IE too.

I've tried everything and from what I've seen, I thik I need to repaint my radgrid when the pannel is resized... My problem is, I'm able to detect when the pannel is resized outside the scope of where the grid is...I mean...I'm not able to detect the resizing inside the page where the radgrid is contained.

Some help would be highly appreciated as I've been with this problem for hours now and don't know what else to try..
Thanking you in Advance
Efg
PS: In fact not only the radgrid expands and gets off the screen boundaries...but its parent table too.
Elena Fernández
Top achievements
Rank 1
 answered on 01 Jul 2010
10 answers
986 views
This is half feature request and half a question for other telerik users out there -- has anyone successfully implemented a scroll-based loading process for radGrid?  I'm not sure what the exact terminology is, but it's how Google Reader loads articles.  When you get to a certain scoll point, it will load additional posts in the background.  I've seen implementations of this before, but nothing with a grid control.

It would be a great way to use radGrid since paging can sometimes be a pain.  What would be great is if it were embedded in the control -- set a point at which an AJAX event would fire requesting additional data and passing info about where in the data set you are.  Sort of like custom paging, only the grid would append the added data to the bottom of the list rather than changing the page.  I sort of think this has to be a telerik-implemented thing to really be efficient, since rebinding the grid, even via AJAX, negates the partial-rendering efficiency of this model as a replacement for a paging model.

Josh
Veli
Telerik team
 answered on 01 Jul 2010
2 answers
192 views
Hi,

When I click the delete button on my RadGrid, I get this error:


Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10161267
   System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +238
   System.String.System.IConvertible.ToDecimal(IFormatProvider provider) +88
   System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider) +750
   System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) +156
   System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean ignoreNullableTypeChanges) +298
   System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatString) +808
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteDelete(IDictionary keys, IDictionary oldValues) +343
   System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +4052080
   Telerik.Web.UI.GridTableView.PerformDelete(GridEditableItem editedItem, Boolean suppressRebind) +268
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +2406
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +185
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +142
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

I found that this data format string is the culprit:

<telerik:GridBoundColumn DataField="Price" DataFormatString="{0:c}" DataType="System.Decimal"
            HeaderText="Price" SortExpression="Price" UniqueName="Price">
        </telerik:GridBoundColumn>

Here is all of my code:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductCart.ascx.cs" Inherits="UserControls_Products_ProductCart" %> 
<%--<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"></telerik:RadAjaxLoadingPanel> 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">--%> 
 
<%--</telerik:RadAjaxPanel> 
--%> 
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True"  
    AllowAutomaticInserts="True" AllowAutomaticUpdates="True"  
    AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"  
    DataSourceID="SqlDataSource1" GridLines="None"> 
<MasterTableView AutoGenerateColumns="False" DataKeyNames="CartID,ProductID"  
        DataSourceID="SqlDataSource1"> 
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="CartID" HeaderText="CartID" ReadOnly="True"  
            SortExpression="CartID" UniqueName="CartID" Visible="false"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ProductID" HeaderText="ProductID"  
            ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID" Visible="false">        </telerik:GridBoundColumn> 
 
              <telerik:GridDropDownColumn DataField="ProductID"  
            DataSourceID="ObjectDataSource1" HeaderText="Product"  
            ListTextField="Name" ListValueField="ID" UniqueName="procolumn1"> 
        </telerik:GridDropDownColumn> 
        <telerik:GridBoundColumn DataField="Price" DataFormatString="{0:c}" DataType="System.Decimal"  
            HeaderText="Price" SortExpression="Price" UniqueName="Price"> 
        </telerik:GridBoundColumn> 
     
        <telerik:GridBoundColumn DataField="Quantity" DataType="System.Int32"  
            HeaderText="Quantity" SortExpression="Quantity" UniqueName="Quantity"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="TimeStamp" DataType="System.DateTime"  
            HeaderText="TimeStamp" SortExpression="TimeStamp" UniqueName="TimeStamp"> 
        </telerik:GridBoundColumn> 
    </Columns> 
</MasterTableView> 
</telerik:RadGrid> 
<asp:SqlDataSource ID="SqlDataSource1" runat="server"  
    ConflictDetection="CompareAllValues"  
    ConnectionString="<%$ ConnectionStrings:WilliamsFireConnectionString %>"  
    DeleteCommand="DELETE FROM [product_cart] WHERE [CartID] = @original_CartID AND [ProductID] = @original_ProductID AND [Price] = @original_Price AND [Quantity] = @original_Quantity AND [TimeStamp] = @original_TimeStamp"  
    InsertCommand="INSERT INTO [product_cart] ([CartID], [ProductID], [Price], [Quantity], [TimeStamp]) VALUES (@CartID, @ProductID, @Price, @Quantity, @TimeStamp)"  
    OldValuesParameterFormatString="original_{0}"  
    SelectCommand="SELECT * FROM [product_cart] WHERE ([CartID] = @CartID)"  
    UpdateCommand="UPDATE [product_cart] SET [Price] = @Price, [Quantity] = @Quantity, [TimeStamp] = @TimeStamp WHERE [CartID] = @original_CartID AND [ProductID] = @original_ProductID AND [Price] = @original_Price AND [Quantity] = @original_Quantity AND [TimeStamp] = @original_TimeStamp"> 
    <DeleteParameters> 
        <asp:Parameter Name="original_CartID" Type="String" /> 
        <asp:Parameter Name="original_ProductID" Type="String" /> 
        <asp:Parameter Name="original_Price" Type="Decimal" /> 
        <asp:Parameter Name="original_Quantity" Type="Int32" /> 
        <asp:Parameter Name="original_TimeStamp" Type="DateTime" /> 
    </DeleteParameters> 
    <InsertParameters> 
        <asp:Parameter Name="CartID" Type="String" /> 
        <asp:Parameter Name="ProductID" Type="String" /> 
        <asp:Parameter Name="Price" Type="Decimal" /> 
        <asp:Parameter Name="Quantity" Type="Int32" /> 
        <asp:Parameter Name="TimeStamp" Type="DateTime" /> 
    </InsertParameters> 
    <SelectParameters> 
        <asp:SessionParameter Name="CartID" SessionField="WilliamsFireShop_CartID"  
            Type="String" /> 
    </SelectParameters> 
    <UpdateParameters> 
        <asp:Parameter Name="Price" Type="Decimal" /> 
        <asp:Parameter Name="Quantity" Type="Int32" /> 
        <asp:Parameter Name="TimeStamp" Type="DateTime" /> 
        <asp:Parameter Name="original_CartID" Type="String" /> 
        <asp:Parameter Name="original_ProductID" Type="String" /> 
        <asp:Parameter Name="original_Price" Type="Decimal" /> 
        <asp:Parameter Name="original_Quantity" Type="Int32" /> 
        <asp:Parameter Name="original_TimeStamp" Type="DateTime" /> 
    </UpdateParameters> 
</asp:SqlDataSource> 
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"  
    SelectMethod="GetAllProducts" TypeName="WilliamsProducts.WilliamsProducts"> 
</asp:ObjectDataSource> 
 

This also happens with the Numeric Column type. What can I do to resolve this error without removing the data format string?
Tsvetoslav
Telerik team
 answered on 01 Jul 2010
2 answers
279 views
Hi!
I am trying to assess telerik components in my project, moving from your competitor.
I am trying to replace menu with radmenu.
I successfully created new Skin, based on Simple skin and trying to add "dropdown arrow feature" for root menu items which have child items.
I have read documentation and forum. For example this topic: 

But unfortunately couldn't find solution. It seems it is impossible.
I tried to change css styles for rmExpandDown selector, but failed to do anything.

Could anybody help me with this problem. Please show example how to do this using "Simple" skin.
Kamen Bundev
Telerik team
 answered on 01 Jul 2010
3 answers
443 views
Hi,

I have binded some data to radcombobox during pageload. This is rendered as multicolumned radcomboxbox. I need to add some more data dynamically after user inputs the value.

Please let me know how to achieve ths.
The below is what I have implemented but the data is not getting inserted in the dropdow

public

 

class ItemTemplate : ITemplate

 

{

 

public void InstantiateIn(Control container)

 

{

 

Literal lit = new Literal();

 

lit.Text =

"<div class='cmb_rdFnt cmb_ltFlt'>" + "ABC" + "</div> <div class='cmb_rdFnt cmb_ltFlt cmb_sp20'>"+"DEF"+"</div>"+"<div class='cmb_rdFnt cmb_ltFlt cmb_sp20'>"+"GHI"+"</div>";

 

container.Controls.Clear();

container.Controls.Add(lit);

}
// Page_load evenet

 

if

 

(!Page.IsPostBack)

 

{

 

PaymentSelectionData pmtSelData;

 

 

for (int i = 0; i < 5; i++)

 

{

pmtSelData =

new PaymentSelectionData();

 

pmtSelData.paymentTypeDesc =

"desc1" + i.ToString();

 

lstPmtSel.Add(pmtSelData);

}

RadComboBox1.DataValueField =

"refVal";

 

RadComboBox1.DataTextField =

"paymentTypeDesc";

 

RadComboBox1.DataSource = lstPmtSel;

RadComboBox1.DataBind();

 

}

 

 

 

 

 

else

 

 

 

 

 

{

 

 

 

 

 

RadComboBoxItem item = new RadComboBoxItem();

 

item.Attributes.Add(

"info", "Hello");

 

RadComboBox1.Items.Add(item);

 

ItemTemplate i1 = new ItemTemplate();

 

i1.InstantiateIn(item);

RadComboBox1.DataBind();

 

}

Yana
Telerik team
 answered on 01 Jul 2010
2 answers
168 views
Hello.I have used ContentAreaCssFile but i see that it's not applied in the preview area.
Any ideas?
tasos
Top achievements
Rank 1
 answered on 01 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?