Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
HI,
I have an umbraco 6.0.3 install using uComponents 5.4.1.
I have setup a data grid data type that has two columns "Activities" which is a textbox and "Time" which is also a textbox.
It won't let me add multiple items unless i save the document on each item. If i add a second item without saving i can see the first item disappear.
Any help would be appreciated :)
Same problem here.
Any sugestions?
Got it:
The method CreateChildControls on DTG_DataEditor.cs of uComponents.DataTypes is not checking is the ViewState has values.
Just put this
if (!string.IsNullOrEmpty(this.DataString)) { this.data.Value = this.DataString; }
Before this
if (this.data.Value == null)
Regarding this problem, just made a pull request to uComponents:
https://ucomponents.codeplex.com/SourceControl/network/forks/TheKahuna/uComponents/contribution/4671
Hi Berto,
Brilliant news, i'm sure Lee Kelleher would appreciate this :) Sorry I didnt have a change to pull the code and look at it really.
looking at the code now it looks like this.data.Value = this.DataString;
was missed from the if else condition.
{
DtgHelpers.AddLogEntry(string.Format("DTG: No values exist in database for this property"));
this.data.Value = string.Empty;
}
else
DtgHelpers.AddLogEntry(
string.Format("DTG: Retrieved the following data from database: {0}", this.data.Value));
this.data.Value = this.DataString;
Hi Craig,
that code is not necessary on the else case, beacause it's already set with the values from the database (data.Value != null)
thanks berto
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Data Grid adding multiple item issues.
HI,
I have an umbraco 6.0.3 install using uComponents 5.4.1.
I have setup a data grid data type that has two columns "Activities" which is a textbox and "Time" which is also a textbox.
It won't let me add multiple items unless i save the document on each item. If i add a second item without saving i can see the first item disappear.
Any help would be appreciated :)
Same problem here.
Any sugestions?
Got it:
The method CreateChildControls on DTG_DataEditor.cs of uComponents.DataTypes is not checking is the ViewState has values.
Just put this
Before this
Regarding this problem, just made a pull request to uComponents:
https://ucomponents.codeplex.com/SourceControl/network/forks/TheKahuna/uComponents/contribution/4671
Hi Berto,
Brilliant news, i'm sure Lee Kelleher would appreciate this :) Sorry I didnt have a change to pull the code and look at it really.
looking at the code now it looks like this.data.Value = this.DataString;
was missed from the if else condition.
if (this.data.Value == null)
{
DtgHelpers.AddLogEntry(string.Format("DTG: No values exist in database for this property"));
this.data.Value = string.Empty;
}
else
{
DtgHelpers.AddLogEntry(
string.Format("DTG: Retrieved the following data from database: {0}", this.data.Value));
this.data.Value = this.DataString;
}
Hi Craig,
that code is not necessary on the else case, beacause it's already set with the values from the database (data.Value != null)
thanks berto
is working on a reply...