Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
250 views
In one of my "Timesheet" application, the user has to enter around 300 rows in a single session.  I want to give him an Excel-like data entry form where he can do bulk data entry.  I tried to use the RadGrid for this purpose, but user has to click at the "Insert and Add" buttons at every row that he enters.  

Is there a way to use RadGrid where the user keeps on entering records and in the end executes a single Batch Insert. I don't mind if the user has to insert, for example, 100 blank records and then fill them one by one. 

What I want to achieve is that there is no button-click and no post-back until he explicitly does so.

Any suggestion.

 Tariq
Vlad
Telerik team
 answered on 10 Jul 2008
1 answer
133 views
I'm using the latest of the RadGrid for AJAX. 

I'm trying to figure out how to show preview information in relation to the row they selected.  If they want to actually open the form, there will be an Open button on the preview form.

Your help would be much appreciated.

AV


Vlad
Telerik team
 answered on 10 Jul 2008
3 answers
128 views
Hi all
 
I am using webBlue skin for my grid ,I have pager for grid also .At one time it show 10 record per page ,but there is gap between grid data and pager .I just want that no space between grid data and  pager.
thanks in advance  
     
Vlad
Telerik team
 answered on 10 Jul 2008
2 answers
140 views
I'm moving a RadComboBox to LoadOnDemand.  I'm using the code supplied in the example but get an error when I click on the ComboBox and the ItemsRequested sub is called.

It's a JavaScript alert:
Ojbect reference not set to an instance of an object.s[{},{"value":"Item 1\u0027"},{"value":"Item 2\u0027"}...more items...,{"value":"Item 20\u0027"}]_$$_<li class="rcbItem ">Item 1</li><li class="rcbItem ">Item 2</li>...more items...<li class="rcbItem ">Item 20</li>_$$_$$_False

Suggestions?
Bob
Top achievements
Rank 1
 answered on 10 Jul 2008
2 answers
481 views
I was wondering if anyone could tell me how to select the appropriate radio button from a radio button list located in a grid pop up edit box?  I've been searching for hours.  My code is below with the bold area on the control.  I have no problem doing text boxes, etc. using <%# Eval("variablename") %> but get really confused otherwise.  Any input would be great.  Thanks.


<telerik:RadGrid runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" Width="450px" DataSourceID="SqlDataSource1"
            Skin="Hay"
            ShowStatusBar="True" GridLines="None">
            <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />
            <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="spotlight_id" DataSourceID="SqlDataSource1" EditMode="PopUp">
                <EditFormSettings PopUpSettings-Modal="true"></EditFormSettings>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType=ImageButton>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridTemplateColumn UniqueName="active" Visible="false" HeaderText="Active">
                        <EditItemTemplate>
                            <asp:RadioButtonList id="active" runat="server">
                                <asp:ListItem Value="0">No</asp:ListItem>
                                <asp:ListItem Value="1">Yes</asp:ListItem>
                             </asp:RadioButtonList>

                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="docdate" Visible="false" HeaderText="Document Date">
                        <EditItemTemplate>
                            <telerik:RadDatePicker ID="docdate" runat="server" Skin="Hay" Calendar-Skin="Hay" Calendar-EnableNavigationAnimation="true">
                            </telerik:RadDatePicker>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

                    <telerik:GridTemplateColumn HeaderText="Title" UniqueName="title" SortExpression="resource_name">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblTitle" Text='<%# Eval("title") %>' />
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox runat="server" Style="width: 205px; margin-left: 3px;" ID="txbTitle"
                                Text='<%# Bind("title") %>' />
                            <asp:RequiredFieldValidator ID="Requiredfieldvalidator1" runat="server" ControlToValidate="txbTitle"
                                ErrorMessage="Please enter a title." Display="Dynamic" SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    
                    <telerik:GridTemplateColumn HeaderText="Viewable Date" UniqueName="viewabledate" SortExpression="viewabledate">
                        <ItemTemplate>
                            <asp:Label ID="lblViewableDate" runat="server" Text='<%# Eval("viewabledate") %>'>
                            </asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridButtonColumn ConfirmText="Are you sure you wish to delete this item?" Text="Delete" CommandName="Delete"
                        UniqueName="column" ButtonType=ImageButton>
                    </telerik:GridButtonColumn>
                </Columns>
                <EditFormSettings EditColumn-ButtonType="ImageButton" EditColumn-InsertImageUrl="~/images/Update.gif">
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                    <PopUpSettings ScrollBars="None" />
                </EditFormSettings>
                <ExpandCollapseColumn Visible="False" Resizable="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
            </MasterTableView>
            <ClientSettings AllowRowsDragDrop="True">
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="true"/>
                    <ClientEvents OnRowDropping="onRowDropping" />
                </ClientSettings>
        </telerik:RadGrid>
Derek
Top achievements
Rank 1
 answered on 10 Jul 2008
2 answers
238 views
I would like to swap out my asp:DropDownList with your ComboBox but I need to have these two things solved first.

1. How do you set the default item? below is the asp:DropDownList
 DropDownList1.Items.FindByValue("0").Selected = true 

2. How do you add an item to the list and have it at the top when binding other items from a database? below is the asp:DropDownList
 userList.TypeID = (int)Enumeration.ContactType.Consultant;  
 DropDownList1.DataSource = userList.GetUsersByContactType;  
 DropDownList1.DataTextField = "CONTACT_NAME";  
 DropDownList1.DataValueField = "ID";  
 DropDownList1.DataBind();  
 DropDownList1.Items.Add(new ListItem("All", "0")); //This Line

Thanks for the help!
Mike
Top achievements
Rank 1
 answered on 10 Jul 2008
9 answers
302 views
 Hello Everybody,
i have hierarchical structure of RadGrid
for outer grid i got no of checkboxes selected using

grid.MasterTableView.SelectedRows.length

 
 how to find out numbers of checkboxes selected for inner grid ( GridTableView )


Thanks in Advance

Amol

Veli
Telerik team
 answered on 10 Jul 2008
1 answer
60 views

Dear All,

I am novice of Telerik Rad Control,

In Rad 2008 Ajax/Common/CancelAJax  eg  --> I am trying to do in Master Page - Content Placeholder - ASPX Page.
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="OnRequestStart"

JAvASCRIPT FUNCTION
function OnRequestStart(ajaxPanel, eventArgs)
{
var eventTarget = eventArgs.EventTarget;
if (eventTarget == "<%= Button1.ClientID %>")
{
return false;
}
}

------------------
"<%= Button1.ClientID %>") is producing error as shown below
error :-
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

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.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

 Please Help,..

Thanks in Advance,
Uday Kumar Lazurus

Vlad
Telerik team
 answered on 10 Jul 2008
1 answer
92 views
Hello,

Can you please tell me how I can manually raise a client-side dayRender event in javascript?

Thanks,
Tom
Missing User
 answered on 10 Jul 2008
7 answers
319 views
Hi,
    I am working with the RADMASKEDTEXTBOX with a mask value of ###-###-####
on calling the document.forms[0].reset(),the value of the textbox becomes -- and the regularexpression validator fires.Can this be avoided??
Dimo
Telerik team
 answered on 10 Jul 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?