AJAX :: Data List Edit Not Working?
Mar 1, 2011i have data list in update panel edit delete commands are not working
if i remove update panel then it is working fine
i have data list in update panel edit delete commands are not working
if i remove update panel then it is working fine
my code:
[Code]....
when i click on the "edit" button on the commandField, nothing happens
I'm using MaskedEditExtender for numeric field (i.e.%). In that field, user can enter the percent value between 1 and 100 and also decimals like 12.34. Doing this, I have used this code which is not working.
<ajaxToolKit:MaskedEditExtender ID="TestDetailsControl_maxTotalScoreMaskedEditExtender"
runat="server" Enabled="True" ErrorTooltipEnabled="True" Mask="999.99"
MaskType="Number" AutoComplete="true" AutoCompleteValue="" InputDirection="LeftToRight"
[code]...
I cannot get my reorderlist item to convert to the edit item template correctly for some reason on the first click. On the second click it appears though everytime!
Here is my code which should set the item into edit mode:
protected void rlReorder_ItemCommand(object sender, ReorderListCommandEventArgs e)
{
ReorderList sendingList = (ReorderList)sender;
sendingList.EditItemIndex = e.Item.ItemIndex;
}
I am working on an app and have added masked edits to some of the textboxes. On Google Chrome v6.0.472.62 the backspace button is inoperative along with the delete button. I have found no method around this. It also functions incorrectly on the ajax toolkit website: [URL]
Chrome is fairly popular and I doubt I can use this code with this issue.
I have a reorder list with edit and delete buttons.
i need to click twice to get the event fired.
I have put one mask edit extender for a textbox which is inside a Gridview templete field and the MaskType="Number
Mask="99,99,999.99"My problem is described below Commas are not dispalying inside the GRidView.After clicking in the textbox its coming and immediately vanishing.
e.g. after typing it should come like this 34,56,789.00 but its coming like 3456789.00
I just implemented a simple Ajax drop down list. The problem I'm facing is that when I run the project I will not be able to select the values from drop down even though there are 4 values coming in.
Here is my code:
Default.aspx
[Code]....
Default.aspx.cs
[Code]....
I did the tutorial for the ReorderList on the asp.net site: http://www.asp.net/ajax/tutorials/drag-and-drop-via-reorderlist-cs and everything works perfectly. But for some reason when I switch out the references and use the same code for my db table the changes aren't saving. In other words when I use the db table called 'AJAX' that I created based on the tutorial everything works perfectly, but when I use it on my table ('projects') the changes don't save to the db. I can't think of anything in the db that would be causing this to happen.
Here's my code:
//This works
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="asm" runat="server" />
<div>
<asp:ReorderList ID="rl1" runat="server"
SortOrderField="position"
[Code]....
I am using ajax cascading dropdown list one of my program. my code given below.
<asp:DropDownList ID="drpSeason" runat="server"></asp:DropDownList>
<cc1:CascadingDropDown ID="drpSeason_CascadingDropDown" runat="server" Enabled="True"
TargetControlID="drpSeason" ServicePath="Cascade.asmx" ServiceMethod="GetDropDownCategories" Category="category" PromptText="[Season]"> </cc1:CascadingDropDown>
<asp:DropDownList ID="drpb_SalesNo" runat="server" Width="70px"></asp:DropDownList>
<cc1:CascadingDropDown ID="drpb_SalesNo_CascadingDropDown" runat="server" Enabled="True"
TargetControlID="drpb_SalesNo" ParentControlID="drpSeason" ServicePath="Cascade.asmx"
ServiceMethod="salesNo" Category="Sales" PromptText="[Sale]"> </cc1:CascadingDropDown>
And my webservice code given below:
[Code] ....
My Cascading dropdown list work properly. But when I am trying to save my data by below code:
[Code] ....
My Add button doesn't post back. If I delete my cascading dropdown then my code work properly.
I am using Visual Studio 2008 and created a simple ASPX page with two drop downs in it. I am using the Update Panel so that when any item is seleted in drop down 1 the second drop down selected item will change accordingly.
I was hoping the update panel will not fix the page refreshing but I am not sure what is wrong since I still see the Page refresh.
see the code below I am using.
[Code]....
I am using gridview for my application, in the grid i am using dropdown list for two columns ,It's working when i run my application but when i am edit application ddl can't show the editable data ( it show only select).And one more thing that two columns are interrelated , one ddl(Itemgroup) is connected with(ItemName).
View 2 RepliesIs there any good solution to maintain listing conditions such as page#, search text when navigates from list -> edit -> list ?
When goes to edit it just pass id as below and lost whole listing condition.
<%= Html.ActionLink("Edit", "Edit", new { id = id })%>
I have two InlineEditBox.NET controls in a template field inside a GridView. When displayed in the GridView, the first row is OK, but starting with the second row, the controls are automatically displayed in edit mode when the page loads, and I can't figure out why.
[Code]....
I have packed the access 2007 project management database and moved it to SQL Server. I'm aware that SQL doesn't populate dropdown lists for the Status and completion Percentage columns. I have to have this done by April 21 and my professor is just now telling me he won't accept the textbox inputs due to data integrity and I don't have time to rebuild this entire site.
View 3 RepliesI'm attempting to display some data in a list view with an edit button beside them so I can edit them in a different form. I want to get the currently selected item but it's always -1 and the selectedndex doesn't seem to fire.
View 7 RepliesI have a gridview. Every time i click on the Edit command, it caused the Delete command fired. This gridview works fine on the test site, but it does not work on the live site.
Do you know what causes this issue?
I have a Members table with the following fields: LastName, FirstName, Address, CityID, ProvinceID, PostalCode.
I have added another field for the MemberTitleID.
During the Gridview Edit mode, I am trying to enable setting the MemberTitle using a drop-down list as shown below:
[Code]....
When I added the new field MemberTitleID in the Members Table, all of them were left un-initialized.
Here is the error I get when I click the edit button on the grid view :
[Code]....
[Code]....
i have a dropdown list in edit mode and read only mode. If users upload pictures, i want them to chose a category for the uploaded pics and display it in a gridview as below.(See Picture below). When i include "SelectedValue='<%# Bind("CategoryID")" in edit and item template mode, i get this error "'PictureReadOnlyCategories' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value "
When i removed the "SelectedValue='<%# Bind("CategoryID")" from edit and item template, i get the result on the pic below(screenshot). If u can see the pic below the category is not selected, it just display the -- No Category -- even when i chose a category for the pic. I want when a pic is uploaded and i category chosen, to display on the gridview. The code for the error message is below:
<EditItemTemplate>
<asp:DropDownList ID="pictureEditCategories" runat="server"
AppendDataBoundItems="True"
DataSourceID="categoriesDataSource"
DataTextField="Name" DataValueField="CategoryID"
SelectedValue='<%# Bind("CategoryID")
%>' ValidationGroup="PictureEdit" >
<asp:ListItem Value=""
Text="--No Category -- "/>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:DropDownList ID="PictureReadOnlyCategories" runat="server"
AppendDataBoundItems="True" DataSourceID="categoriesDataSource"
DataTextField="Name" DataValueField="CategoryID" Enabled="False"
SelectedValue='<%# Bind("CategoryID")
%>' ValidationGroup="PictureEdit"
>
<asp:ListItem Value="">-- No Category --</asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Title"
SortExpression="Title">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" EnableViewState="False"
Text='<%# Bind("Title") %>'></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server"
ControlToValidate="TextBox1"
Display="Dynamic"
ErrorMessage="must enter a title"
ValidationGroup="PictureEdit"></asp:RequiredFieldValidator>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Title")
%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description"
SortExpression="Description">
<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" Columns="25" Rows="4"
Text='<%# Bind("Description")
%>' TextMode="MultiLine"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server"
ControlToValidate="TextBox2"
Display="Dynamic"
ErrorMessage="you must enter a description"
ValidationGroup="PictureEdit"></asp:RequiredFieldValidator>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Description")
%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Date Added"
SortExpression="UploadedOn">
<EditItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Bind("UploadedOn")
%>'></asp:Label>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("UploadedOn")
%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:ImageField DataImageUrlField="PictureID"
DataImageUrlFormatString="~/UploadedImages/{0}.jpg"
HeaderText="Image"
ReadOnly="True">
<ControlStyle Width="100px"
/>
</asp:ImageField>
</Columns>
<EditRowStyle BackColor="#2461BF"
/>
<FooterStyle BackColor="#507CD1"
Font-Bold="True" ForeColor="White"
/>
<HeaderStyle BackColor="#507CD1"
Font-Bold="True" ForeColor="White"
/>
<PagerStyle BackColor="#2461BF"
ForeColor="White" HorizontalAlign="Center"
/>
<RowStyle BackColor="#EFF3FB"
/>
<SelectedRowStyle BackColor="#D1DDF1"
Font-Bold="True" ForeColor="#333333"
/>
<SortedAscendingCellStyle BackColor="#F5F7FB"
/>
<SortedAscendingHeaderStyle BackColor="#6D95E1"
/>
<SortedDescendingCellStyle BackColor="#E9EBEF"
/>
<SortedDescendingHeaderStyle BackColor="#4870BE"
/>
</asp:GridView>
I am using a dropdownlist inside Edit template of a formview,, the problem it is not saving the value ,, Here is my code : I am only updating the (status)
[Code]....
I have been using a datagrid on various pages. For some reason it stopped working. When pressing the Edit to make a change to the record, the page posts back two times and the record does not go into the edit mode. I am using IE 7 for my browser. Below is my code.
[code]....
I have a Gridview for which I have provided Sorting, Edit functionality. I am not able to perform EDIT when I perform Sorting. After sorting edit is set on some other row. I think there is some problem with the index it is taking..
[Code]...
For the life of me I can't figure out why I can't put my gridview in edit mode. I am using an ObjectDataSource, maybe that has something to do with it. The problem is that the gridview won't go into edit mode when the edit is pushed. Here is some of my code:
ObjectDataSource:
[Code]....
GridView:
[Code]....
I will troubleshoot my Match class methods after I get the gridview edit mode working.
Using C# and sql server. I have a gridview which is populated using a sql query. I have 5 columns in the gridview ( projectid,project name,description,date,status). I'm using the Edit/update option that is available in the gridview to edit/update a user selected row. When I use this Text boxes appear. I want to have a drop down list for status instead of a text box with values Started,Inprocess,Complete, Inhold.
View 3 RepliesI wanted to populate the dropdown list when selecting the edit button based on the officeid from the gridview.
My code:
<
asp:GridView
ID="gridassignserv"
runat="server"
[Code]....