Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
261 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
163 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
93 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
144 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
149 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
146 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
78 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
280 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
72 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
1 answer
173 views
I have a tree view and I dynamically add textboxes to some nodes. See the code below. I have upgraded to the latest Q3 release thinking that might fix it, no dice.

The tree and textboxes render fine. The problem is a user cannot use the mouse or any other method of selecting all the text in the text box. It appears the tree intercepts the events the textbox is firing, I'm not sure.

How do I allow a user to select text in the text box?

public void InstantiateIn(Control container) {

var 

 

factTextBoxControl = new TextBox {

 

ID = container.UniqueID +

"RadTextBox",

 

 

SkinID =

"treeTextBox",

 

 

Width =

Unit.Pixel(FactGridTemplateBuilder.Width),

 

 

Text = node.Value,
EnableViewState =

false

 

 

 

};

 

 

 

 

factTextBoxControl.Text = Context.FactValue.Value;

node.Controls.Add(factTextBoxControl);

}

Yana
Telerik team
 answered on 19 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?