Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
Hi, it's my first go at Telerik controls.  Can't seem to get the Add New Record to show anywhere.  I'm working in Visual Studio 2010, .NET 4.0, Windows 7 and am using what is available for download as a trial.

snippets from my aspx file:

    <telerik:RadGrid ID="rgDealerMaintenance" AutoGenerateColumns="False"
        AllowAutomaticInserts="True" GridLines="None" ShowFooter="true" runat="server" >
    <MasterTableView EditMode="InPlace" DataKeyNames="RegistrationID" HeaderStyle-CssClass="body_text_black_BOLD">
    <CommandItemSettings AddNewRecordImageUrl="Images/AddRecord.gif" AddNewRecordText="Add New" />
    <Columns>
        <telerik:GridBoundColumn DataField="RegistrationID" Visible="false" />
        <telerik:GridBoundColumn UniqueName="txtFirstName" DataField="FirstName" HeaderText="First Name">
        </telerik:GridBoundColumn>
...
        <telerik:GridEditCommandColumn EditText="Edit" UniqueName="EditCommandColumn" UpdateText="Update" CancelText="Cancel" HeaderText="Edit">
        </telerik:GridEditCommandColumn>
        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" HeaderText="Delete">
        </telerik:GridButtonColumn>
    </Columns>
    </MasterTableView>
    </telerik:RadGrid>
the ShowFooter shows the footer, but doesn't put anything in it
what am I missing?

I don't want to put the add into the edit button - I am working with an application which contains an already written program which keeps the add and update separate and want to be consistant

Marianne Seggerman


Elliott
Top achievements
Rank 2
 answered on 25 May 2010
1 answer
144 views
Hi there.

This is my first trip with RadControls. I've created an usercontrol, which shows a Grid. My datasource is a DataTable, wich is populated on NeedDataSource event. I have to dynamically generate all columns of DataTable at runtime, so my ASCX file is pretty poor:

<TELERIK:RADGRID ID="RadGrid1" RUNAT="server" ALLOWSORTING="true">  
</TELERIK:RADGRID> 

Also i need to group data. Therefore, i add columnbound on codebehind. Here is the important part of NeedDataSource

            RadGrid1.DataSource = table;  
 
            RadGrid1.GroupingEnabled = true;  
            RadGrid1.AutoGenerateColumns = false;  
 
            GridBoundColumn boundcolumn;  
            foreach (DataColumn column in table.Columns)  
            {  
                if (column.ColumnName == "Name")  
                {  
                    continue;  
                }  
                boundcolumn = new GridBoundColumn();  
                boundcolumn.DataField = column.ColumnName;  
 
                boundcolumn.HeaderText = column.ColumnName;  
                  
                RadGrid1.MasterTableView.Columns.Add(boundcolumn);  
 
            }  
 
 
            GridGroupByExpression expression = new GridGroupByExpression();  
            GridGroupByField groupbyfield = new GridGroupByField();  
            groupbyfield.FieldName = "Name";  
            groupbyfield.HeaderText = " ";  
            groupbyfield.HeaderValueSeparator = string.Empty;  
            groupbyfield.FormatString = "{0}";  
            expression.SelectFields.Add(groupbyfield);  
 
            groupbyfield = new GridGroupByField();  
            groupbyfield.FieldName = "Name";  
            expression.GroupByFields.Add(groupbyfield);  
            RadGrid1.MasterTableView.GroupByExpressions.Add(expression);  
            RadGrid1.EnableViewState = true; 

All works fine and the output is really pretty. But if i collapse one group, all column headers will be lost. I've also implemented export to Excel and PDF. It generates a file, but there are much more columns and some values are System.Data.DataRowView. Maybe it's the same reason?

Please advise me. Thanks
Daniel
Telerik team
 answered on 25 May 2010
1 answer
150 views
hello,

im trying to do it on the server side but it seemed impossible? any css custom class?
Petio Petkov
Telerik team
 answered on 25 May 2010
1 answer
104 views

Petio Petkov
Telerik team
 answered on 25 May 2010
1 answer
133 views
Hello,

I'm working on a page that has a RadCanlendar control. What I want to do is when the user clicks on the date, if it has events on that day, the RadGrid that contains the detailed information of the events will display.   Now I don't know how to pass the value of the selected date to the grid.

Can anyone give me some idea? Many thanks !

Radoslav
Telerik team
 answered on 25 May 2010
1 answer
110 views
Hello all!
I need to group the hours displayed in WEEK view in blocks of 4 hours (8AM - 12, 12PM - 4PM, 4PM - 8PM, etc...) for each day, and preferably specify the height of the 4 hour blocks (I want to make the height of the 4 hour block smaller).

Then when a user clicks on a 4 hour block, an appointment is automatically created where there is no more input needed by the user (I can already specify the subject and description programmatically)...

Is any of this do-able?

Any and all help is appreciated.

Thanks.
Mark
Peter
Telerik team
 answered on 25 May 2010
1 answer
93 views
Hello,

I need some help her to store files uploaded via silverlight controls directly to database. Please refer to demo sample below
http://demos.telerik.com/aspnet-ajax/upload/examples/silverlight/defaultcs.aspx

I am on asp.net 4.0 with visual studio 2010.

Another question i have about using silverlight is that will it cause any issues if my entire applicaiton is on ssl (https)?

Thanks in advance
Mac
Genady Sergeev
Telerik team
 answered on 25 May 2010
1 answer
110 views
dgInvoice.DataSource = dtMainGrid;

thus like i got the records in dtMainGrid and put it into dgInvoice.DataSource at needdatasource event
This statement executed correctly at run time, but grid doesn't display any records

Dimo
Telerik team
 answered on 25 May 2010
1 answer
102 views
Hello,

I have a customized advanced form for the radscheduler.  I don't use the inline editor; we enter directly into the advanced editor.  Does web services work well with a customized form, or should I use the client-side API to do everything and call my own web service?

Thanks.
Peter
Telerik team
 answered on 25 May 2010
1 answer
69 views
I have a grid in a DNN module that is completly created in the page load and there are placeholders on the ascx code that the grid is rendered through.
I also want to allow scrolling on the grid but I am having dificulties with the appearance when doing so.
I found this Forum post that explains how to do this but I am not sure how this works under the circumstances.
Do I still use the Script at the top of my ASCX and since I am using placeholders and not mentioning the grid in the ASCX code at all where do I handle calling the script?

Thanks
Dimo
Telerik team
 answered on 25 May 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?