Hi,
1. The first step is to create a copy of web part and controls which are used by this web part.
2. Then you can make following changes in copy of control:
c:\<project>60\CMSModules\Membership\FormControls\Users\SelectUser.ascx.csin the metho SetepControls() you need to register following event:
usUsers.OnAdditionalDataBound += new CMSAdminControls_UI_UniSelector_UniSelector.AdditionalDataBoundEventHandler(usUsers_OnAdditionalDataBound);
Then in its implementation call:
object usUsers_OnAdditionalDataBound(object sender, string sourceName, object parameter, string value)
{
switch (sourceName.ToLowerInvariant())
{
case "itemname":
{
DataRowView drv = (parameter as DataRowView);
// Get item ID
string itemID = drv[ReturnColumnName].ToString();
// Get item name
string itemName = GetItemName(drv.Row);
if (Enabled)
{
val = "<div class=\"SelectableItem\" onclick=\"US_ProcessItem('" + ClientID + "', '" + ValuesSeparator + "', document.getElementById('chk" + checkBoxClass + "_" + ScriptHelper.GetString(itemID).Trim('\'') + "'), true); return false;\">" + HTMLHelper.HTMLEncode(TextHelper.LimitLength(itemName, 100)) + "</div>";
}
else
{
val = "<div>" + HTMLHelper.HTMLEncode(TextHelper.LimitLength(itemName, 100)) + "</div>";
}
break;
}
return "EEE";
}
return value;
}
To see the change replace above method with the below one as a test:
object usUsers_OnAdditionalDataBound(object sender, string sourceName, object parameter, string value)
{
switch (sourceName.ToLowerInvariant())
{
case "itemname":
return "EEE";
}
return value;
}
In the code above you can generate the link to the edit page instead of string "EEE".
Best regards,
Ivana Tomanickova