Click here to Skip to main content
15,917,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: issue with boolean datatype Pin
bigphish7-Jun-10 19:29
bigphish7-Jun-10 19:29 
GeneralRe: issue with boolean datatype Pin
bigphish7-Jun-10 21:10
bigphish7-Jun-10 21:10 
AnswerRe: issue with boolean datatype Pin
J$8-Jun-10 13:22
J$8-Jun-10 13:22 
QuestionLogin Problem Pin
Gjm7-Jun-10 3:53
Gjm7-Jun-10 3:53 
AnswerRe: Login Problem Pin
Not Active7-Jun-10 4:46
mentorNot Active7-Jun-10 4:46 
GeneralRe: Login Problem Pin
Gjm7-Jun-10 7:00
Gjm7-Jun-10 7:00 
GeneralRe: Login Problem Pin
walterhevedeich7-Jun-10 16:11
professionalwalterhevedeich7-Jun-10 16:11 
QuestionDatepicker Issues for Cloned Row: Pin
Shubhangi12347-Jun-10 3:22
Shubhangi12347-Jun-10 3:22 
Hi Everyone,

There is a problem that I'm facing w.r.t the datepicker in JQuery (.net 4.0).
I'm creating a clone of the existing row on add-button click. The existing row has two textboxes for editing(datepicker), add-button, remove-button.
On click of add-button, a row is appended (parent row is cloned). Cloning is done using following code (For cloned row there is no add-button):

var newFromDateInput = $("<input />").attr("class", removedFromDateInput.attr("class"))
                    .attr("id", removedFromDateInput.attr("id"))
                        .attr("name", removedFromDateInput.attr("name"))
                            .removeClass("hasDatepicker");

    var newToDateInput = $("<input />").attr("class", removedToDateInput.attr("class"))
                    .attr("id", removedToDateInput.attr("id"))
                        .attr("name", removedToDateInput.attr("name"))
                            .removeClass("hasDatepicker");

    removedFromDateInput.after(newFromDateInput);
    removedToDateInput.after(newToDateInput);

    removedFromDateInput.remove();
    removedToDateInput.remove();

    //clonedRow.find(".datePicker").datepicker();
    InitializeDatePickers();


The code for InitializeDatePickers() is as follows:

function InitializeDatePickers() {
    ConsoleLog();
    var maxDate = $("#model_BenefitPeriodEndDate").val();
    var minDate = $("#model_BenefitPeriodStartDate").val();

    $(".datePicker").datepicker({
        onSelect: function(dateText, inst) {
            MarkRecalculateThisBenefit(this);
        },
        maxDate: new Date(maxDate),
        minDate: new Date(minDate),
        changeMonth: true,
        changeYear: true
    });

    ApplyDatePickerTextBoxKeyPress(".datePicker");
}

Problem faced: While editing the dates for cloned row using datepicker, the datepicker is updating the parent row instead of cloned row.

Thanks.
QuestionDesign Problem... Pin
priyareguri7-Jun-10 2:32
priyareguri7-Jun-10 2:32 
AnswerRe: Design Problem... Pin
Jamil Hallal7-Jun-10 2:57
professionalJamil Hallal7-Jun-10 2:57 
Questionget number of month detween 2 date Pin
Amit Patel19857-Jun-10 0:30
Amit Patel19857-Jun-10 0:30 
AnswerRe: get number of month detween 2 date Pin
Not Active7-Jun-10 0:42
mentorNot Active7-Jun-10 0:42 
Answerfind answer Pin
Amit Patel19857-Jun-10 0:52
Amit Patel19857-Jun-10 0:52 
GeneralRe: find answer Pin
Not Active7-Jun-10 4:51
mentorNot Active7-Jun-10 4:51 
Questionon dropdownlist selected indexchange event the fiel upload data is lost Pin
developerit7-Jun-10 0:08
developerit7-Jun-10 0:08 
AnswerRe: on dropdownlist selected indexchange event the fiel upload data is lost Pin
Eduard Keilholz7-Jun-10 0:17
Eduard Keilholz7-Jun-10 0:17 
GeneralRe: on dropdownlist selected indexchange event the fiel upload data is lost Pin
The solution7-Jun-10 0:42
The solution7-Jun-10 0:42 
GeneralRe: on dropdownlist selected indexchange event the fiel upload data is lost Pin
developerit7-Jun-10 1:49
developerit7-Jun-10 1:49 
AnswerRe: on dropdownlist selected indexchange event the fiel upload data is lost Pin
maltova8-Jun-10 0:09
maltova8-Jun-10 0:09 
QuestionGet month name and last date form date time Pin
Amit Patel19857-Jun-10 0:04
Amit Patel19857-Jun-10 0:04 
AnswerRe: Get month name and last date form date time Pin
Eduard Keilholz7-Jun-10 0:15
Eduard Keilholz7-Jun-10 0:15 
GeneralRe: Get month name and last date form date time Pin
maltova8-Jun-10 0:29
maltova8-Jun-10 0:29 
AnswerRe: Get month name and last date form date time Pin
Refwah8-Jun-10 5:01
Refwah8-Jun-10 5:01 
Questionproblem in displaying money in grid view. Pin
souravghosh186-Jun-10 23:07
souravghosh186-Jun-10 23:07 
AnswerRe: problem in displaying money in grid view. Pin
michaelschmitt6-Jun-10 23:29
michaelschmitt6-Jun-10 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.