Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 views
Hi

I have just started using RadControls and I must say they are really elegant!
 
What I am trying to achieve is the possibility to show only a subset of available
database columns in the grid view, with the autogenerated edit popup showing
a fuller set of fields for editing.

I set the Visible property of columns I didn't want in the grid view to 'false' but it also
removes that item from the popup form. Can I get round this?

If not, what is the best way to achieve this?

I do this very frequently for clients (using the less elegant  grid/form view), so I am trying
to find the most efficient approach.

Can someone point me in the right direction? I am hoping it is just setting a few properties...

Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 19 Dec 2008
6 answers
255 views
Hi,

We are using the RadGrid on pages that also contain other fields that will be updated to the database.  For example, we might have a page with textboxes and other controls to add/edit a master record, and then use the RadGrid to add/edit associated detail records.

We want to update all of the detail records in the RadGrid at the same time that we update the master record, in a SQL transaction.

Presently, we have the RadGrid data-bound to a LLBLGen datasource (although for this discussion I believe we can just assume that we are using a normal SQLDataSource).  As we add/update/delete records in the grid, they are being updated immediately in the datasource.

Does anyone have any suggestions on how we can have all of the add/update/delete functionality in the grid take place internally (either client or server side), and then be mass-updated to the database when we are in our transaction to update the entire page?

Thanks.
jlehew
Top achievements
Rank 1
 answered on 19 Dec 2008
5 answers
161 views
I tried using the detailed template ( <NestedViewTemplate>), in the Rad Grid.  When I click on the down arrow, I loose the entire grid altogether.

it is very simple, i just have this
       <NestedViewTemplate>
            Hello Test
        </NestedViewTemplate>

John Giblin
Top achievements
Rank 1
 answered on 19 Dec 2008
1 answer
92 views
I have a grid with 4 filterable columns. We want the endusers to be able to press ENTER and have it, by default, select "EqualTo" and filter the grid. This functionality is working on 3 of the 4 columns, by adding:

CurrentFilterFunction

 

="EqualTo" AutoPostBackOnFilter="true"

 


However, the 4th column is a GridMaskedColumn, and acts odd. I'm using Q3 2008 .NET3.5 version of the rad controls. When the user hits enter from the masked column, you can breifly see a menu popup at the location of the mouse cursor. If I disable AutoPostBackOnFilter I can then figure out that the menu is actually from the 1st column, not the 4th (Masked) column. Either way, when the page reloads it shows everything in its previous state, completely ignoring what is in the GridMaskedColumn filter (whats even more weird is it persists the text in the box -- but dosn't filter on it).

Here's the code, any help would be greatly appriciated:

 

<telerik:GridMaskedColumn UniqueName="SSN" HeaderText="SSN" DataField="SSN" CurrentFilterFunction="EqualTo"

 

 

FilterControlWidth="80px" Mask="###-##-####">

 

<

 

ItemStyle CssClass="certcolpadding"></ItemStyle>

 

 

</telerik:GridMaskedColumn>

 

Georgi Krustev
Telerik team
 answered on 19 Dec 2008
1 answer
142 views
Hi All,
This is Kunal from Bangalore.
I am using a rad Date Time Picker inside my rad grid.
I wasnt to know as to how can I associate the rad Date Time Picker column to a data field.
I am using a Stored procedure from the code behind to bind the rad grid.
I am using the following assembly:

Assembly

="RadCalendar.Net2"

 


And this is the peice of code that I have written.

<

rad:GridTemplateColumn HeaderText = "test Time" UniqueName="Test_Time" DataField="BEGINTIME">

 

 

<EditItemTemplate>

 

 

<radCln:RadDateTimePicker ID="radCal" runat="server" Culture="English (United States)" >

 

 

 

<DateInput runat="server" />

 

 

</radCln:RadDateTimePicker>

 

 

</EditItemTemplate>

 

 

</rad:GridTemplateColumn>

 

 


Please specify related pointers.

Regards,
Kunal






Iana Tsolova
Telerik team
 answered on 19 Dec 2008
1 answer
146 views

Hi All,
This is Kunal from Bangalore.
I am using a rad grid which has some grid Drop Down Columns.
When I am in the edit mode of the rad grid, these drop downs show a huge amount of data.
Can we can set the property to specify the number of records to be displayed at a time?

Regards,
Kunal

Iana Tsolova
Telerik team
 answered on 19 Dec 2008
1 answer
143 views
Hi All,

I have taken a grid view control in a user control file "Orders.ascx".
when I am opening this page, where this user control has been used in IE6, then it works fine
but when I am using IE7 then this is not being resized while reorder is woring fine in both of Internet Explorer versions.

Code snippet is as follows:

 

 

 

<telerik:RadGrid ID="RadGrid1" AllowMultiRowSelection="false" runat="server" Skin="Outlook"

 

 

Width="100%" PageSize="16" Height="420" BorderStyle="None" AllowPaging="True" AutoGenerateColumns="False"

 

 

GridLines="None">

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="true">

 

 

<ClientEvents OnRowDblClick="OpenCustomerProduct" />

 

 

<Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="true"

 

 

AllowColumnResize="True"></Resizing>

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="True" />

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<HeaderStyle CssClass="gridHeader" />

 

 

<MasterTableView CommandItemDisplay="None" TableLayout="Fixed"

 

 

EditMode="EditForms" AutoGenerateColumns="False">

 

 

<PagerStyle Wrap="false" Mode="NextPrevAndNumeric" PrevPageImageUrl="Images/arrowLeft.gif"

 

 

NextPageImageUrl="Images/arrowRight.gif" NextPageText="Next" PrevPageText="Prev" />

 

 

Prangadj
Top achievements
Rank 1
 answered on 19 Dec 2008
1 answer
76 views
Hi,

We have a Master/child page.  In the master page we have placed the standard script manager and standard update panel.  In our child page we use the RadGrid.  I've included the RadAjaxControlLoadingPanel.  But it doesn't show up.  In the grid we also have included the statusbar and there the text "loading...." is showing perfectly.

Anybody knows how to show the LoadingPanel?

Txs inadvance.
kind regards
Iana Tsolova
Telerik team
 answered on 19 Dec 2008
3 answers
272 views
I have a main form containing a RadCalendar.  When the user selects a date on the calendar, a RadWindow opens a child window where some data is loaded for the specific date selected.  When the user closes the RadWindow, I want the calendar to be refreshed.  Currently, in my main form, I have the following logic, which works perfectly when the form first loads.  I want the calendar to be refreshed when the child window closes.

protected void RadCalendar1_DayRender1(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
    DateTime currentCalendarDate = e.Day.Date;

    // some logic here to check a database table for the currentCalendarDate to
    // see if some data has been imported for that date.

    if (dataIsImport == true)
    {
        drTradeHistoryHeader = dtTradeHistoryHeader[0];
        
TableCell currentCell = e.Cell;
        currentCell.Style[
"background-color"] = "lemonchiffon";
        currentCell.Text =
"Imported" + "<br/>" + currentCalendarDate.Day.ToString();
    }
}

Thank You,

David Nowak.

Sebastian
Telerik team
 answered on 19 Dec 2008
1 answer
71 views
Is there a way to change the edit box and the toolbar sizes?  The default sizes are pushing some web parts off into some white space.

Thanks,
Michael
Stanimir
Telerik team
 answered on 19 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?