Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
369 views

I want to create a RadGrid to use like a spreadsheet, where users can fill in the cells, add rows, and delete rows. We're doing that now with an Infragistics grid, which I want to replace. I've attached a pic of what it looks like, which I now want to do with a RadGrid (but with a comboxbox in the "Cost Center" field now).

After I created the columns, I ran the webpage, but the grid is blank -- it doesn't even show the column headers. All I want is an empty row for the user to enter values into (like my attached pic shows) after which they can add or delete rows. (I'll save/load the data into the grid later.)

My RadGrid is defined below, with various ColumnType and DataTypes. But when I run it, there's no grid on the page. What am I missing? Or is RadGrid meant only for display purposes? I found none of your demos allow the spreadsheet-like editing of cells, so am I using the wrong control?

 

 

        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None">  
            <HeaderContextMenu EnableAutoScroll="True">  
            </HeaderContextMenu> 
            <MasterTableView> 
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridCheckBoxColumn DataType="System.Boolean" HeaderText="Print" UniqueName="Print">  
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridCheckBoxColumn DataType="System.Boolean" HeaderText="Post" UniqueName="Post">  
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridBoundColumn HeaderText="Account Number" UniqueName="Account Number">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Detail Description" UniqueName="Detail Description">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridDropDownColumn HeaderText="Cost Center" UniqueName="Cost Center">  
                    </telerik:GridDropDownColumn> 
                    <telerik:GridNumericColumn DataType="System.Decimal" HeaderText="Quantity" UniqueName="Quantity">  
                    </telerik:GridNumericColumn> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 

 

Jeremy Yoder
Top achievements
Rank 1
 answered on 30 Mar 2010
0 answers
78 views

ASP.NET AJAX Controls : Rotator

Suggestion

1) Add a scroll bar which contain the total frame (ex. like a play video scroll bar) - it can fast to location frame
2) Add Play and Stop button -  Play for Autoscroll
3) Double Click - Enlarge frame
4) Print the frame

Thanks!

edward
Top achievements
Rank 1
 asked on 30 Mar 2010
10 answers
173 views
John John

Posted on on Mar 1, 2010

Hi,
  I have a problem in viewing text in the PDF file. I have 3 hyperlink controls as the following aspx code sicne my project scenario is like that. In viewing  the text of the controls in Grid has no problem. But in PDF file the position and text has been changed.

 <telerik:GridTemplateColumn HeaderText="URL" SortExpression="URL" DataField="URL" GroupByExpression="URL Group By URL" UniqueName="URL" HeaderStyle-Width="52%">  
                            <ItemTemplate>   
                                                                                                          
                               
                                  
                                <asp:HyperLink ID="URL" Text='Title1' runat="server"></asp:HyperLink>                                                                                    
                                <asp:Literal ID="literalUrl1" Text='Title2' runat="server"></asp:Literal> 
                                <asp:Literal ID="literalUrl2" Text='Title3' runat="server"></asp:Literal>                                  
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn>     

Say in simple the above text are ok with grid displayed like Title1,Titll2,Title3
But in PDF file it seems like Title2,title3,Title1 respectively

I dont know what to do to come text as an expected manner

-Thanks
Daniel
Telerik team
 answered on 30 Mar 2010
3 answers
214 views
Hello, I have a situation where I need to export a lot of data, however, I need to show only a few columns in the grid.  I tried adding all of the fields to the grid but have them invisible, however they do not then export.  Not thinking it would work I created a second grid and set it to visible false and of course I was right it did not work, I tried putting the grid in a table cell with a height of 0px but it expands for the grid anyway.

Basically, I need to export around 40+ fields to excel but I want to only show 5 in the grid on the page.

Is this possible or is there a workaround?

Jeff
Daniel
Telerik team
 answered on 30 Mar 2010
1 answer
285 views
Hi All

I have developed a web app using a webservice. Everything works fine in the development environment. I have moved the webservice to the production server in a test folder behind my main website. I can browse to the published service localy on the production server and i can access the remote service from my development machine.

If I run my web app in my development environment I can use the remote webservice no problem. If I move the web application to the production environment the browser outputs this error when the application performs the ajax login method.

The following javascript error is output to the browser
Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server.

The status code returned from the server was: 500
Source File: http://www.grav80.com/clients/callswharf/Redshift/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1247b7d8-6b6c-419f-a45f-8ff264c90734%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ad2d891f5-3533-469c-b9a2-ac7d16eb23ff%3a16e4e7cd%3a86526ba7%3aed16cbdc%3ab7778d6c
Line: 15

The Following error appears in the event log

Exception information: 
    Exception type: WebException 
    Exception message: Unable to connect to the remote server 
 
Request information: 
    Request URL: http://www.grav80.com/clients/callswharf/redshift/login.aspx 
    Request path: /clients/callswharf/redshift/login.aspx 
    User host address: 77.68.58.231 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 

You can view the behaviour in the test environment here.

You can view the service here 

Simon Child
Top achievements
Rank 1
 answered on 30 Mar 2010
2 answers
128 views
I see in the demo of the Grid control has a "3D" skin. Is this available?
Dan Linehan
Top achievements
Rank 1
 answered on 30 Mar 2010
6 answers
130 views
Hi,

I am trying to interact with the calendar control server side (c#)

I collect a number of dates from a database and alter the styling of these date cells. The dates from the database are "busy" dates.

So far I have managed to modify the background colour and fore colour of these cells but am unable to

1. Disable these dates completely so that they do not respond to a mouse click
2. Stop the hover style appearing when they mouse is hovered

Ideally I would like to:

1. Disable particular dates and set their styles on the server side
2. Set individual styling on particular days (like colour, hover style etc)

I am finding it particularly frustrating that there seems to be no server side ability to iterate through the dates and set individual css properties on an individual basis.

Please could you let me know if what I am trying to achieve is possible?

Thanks in advance.
Ben White
Top achievements
Rank 1
 answered on 30 Mar 2010
1 answer
93 views
Hello,telerik.
I met 2 questions where I start with Telerik.
1. How to scroll the position I want in Telerik grid?
For example: After I add new record to the table ,I return the grid list where I want  scrolling the position row i just added.
I look the help example implementing in the client side.how to implement in the server side?
2. About telerik schedule.
In scheduler , the editing form shows when I click the Appoinment.
In my project, Requirement is  Showing the detail form of the appointment that can not be  edited when I click the appointment
in scheduler.How can I do?

Please help me,thanks.
Carl
Top achievements
Rank 1
 answered on 30 Mar 2010
3 answers
185 views
Hello guys.

I have a GridDropDownColumn that is binded in needDataSource event. The GridDropDownColumn's properties is show below:

<telerik:GridDropDownColumn DataField="A017_dsc_tip" HeaderText="Tipo" ListDataMember="T017_tipo_telefone" 
SortExpression="A017_dsc_tip" ListTextField="A017_dsc_tip" ListValueField="A017_dsc_tip" UniqueName="A017_dsc_tip"> 
</telerik:GridDropDownColumn> 

Using the column like this, I have no problem with my grid, and I have some like:

Grid correct

but, I can't take the "ID" of the item, and when in editmode, I can't set the current item correctly. If I change the ListValueField to the correct data field I have some like this:

Grid incorrect

my server code is below:

protected void gdvTelefone_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
        { 
            GridEditableItem editedItem = e.Item as GridEditableItem; 
            GridEditManager editMan = editedItem.EditManager; 
 
            //Setando o dropdownlist dos tipos de telefone 
            GridDropDownListColumnEditor A017_dsc_tip = editMan.GetColumnEditor("A017_dsc_tip") as GridDropDownListColumnEditor; 
            string selectedValue = A017_dsc_tip.SelectedValue; 
            ObjectQuery<T017_TIPO_TELEFONE> query = entities.T017_TIPO_TELEFONE; 
            A017_dsc_tip.DataSource = query.AsQueryable(); 
            A017_dsc_tip.DataTextField = "A017_dsc_tip"; 
            A017_dsc_tip.DataValueField = "A017_cod_tip"; 
            A017_dsc_tip.DataBind(); 
            A017_dsc_tip.SelectedValue = selectedValue; 
        } 
    } 

What it not work? I'm following this thread:

http://www.telerik.com/community/forums/aspnet-ajax/grid/binding-programmatically.aspx

Thanks in advance.

Regards.
Simon
Telerik team
 answered on 30 Mar 2010
3 answers
80 views
Hey everyone,

I believe there is a current bug in the RadComboBox control.  We are currently using the Q3 2009 release of ASP.Net ajax Telerik controls and a client has reported seeing 404 errors through their request debugger.  After resolving the WebResource.axd call, this file is pTelerik.Web.UI|Telerik.Web.UI.Skins.Vista.ComboBox.rcbSprite.gif.

After searching the installed source code, I came up with no results for this file.  However, in previous versions, this file exists in some older skins.  We also do not seem to reference this file directly or through a WebResource call in our own app.  Is it possible that this file was deprecated in current releases but a bad reference still exists in the Vista skin?  Or is it more likely that it is a configuration issue on our part?  As an aside, we set the skins of most of our Telerik controls, including the RadComboBox, through a StyleSheetSkin.

Thanks so much,
Adam.g
Simon
Telerik team
 answered on 30 Mar 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?