3 Answers, 1 is accepted
Hi Agustin,
You can access the the RadConfirm button via standard jQuery and change its text in a similar way:
$telerik.$(".rwConfirmDialog .rwOkBtn")[0].textContent = "new OK"
Another possible option is to implement a custom ConfirmTemplate, so you will be able to access the defined buttons directly by ID after that:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<ConfirmTemplate>
<div class="rwDialog rwConfirmDialog">
<div class="rwDialogContent">
<div class="rwDialogMessage">{1}</div>
</div>
<div class="rwDialogButtons">
<button id="confirmOKCancel" type="button" class="rwOkBtn" onclick="$find('{0}').close(true); return false;">##LOC[OK]##</button>
<button id="confirmCancelBtn" type="button" class="rwCancelBtn" onclick="$find('{0}').close(false); return false;">##LOC[Cancel]##</button>
</div>
</div>
</ConfirmTemplate>
</telerik:RadWindowManager>
Regards,
Vessy
Progress Telerik
Hi Vessy, thank you for your reply.
But my question is about how to modify the ConfirmText property inside the ConfirmSetting object of a RadButton
<telerik:RadButton ID="btSaveAllocation" runat="server" Text="Save" OnClick="btSetAllocationStatus_Click">
<ConfirmSettings Title="Set End Date" ConfirmText="Are you sure you want to modify the Project Allocation Status?" />
</telerik:RadButton>
It is possible to access directly to this property using javascript?
Hi,
Thank you for the clarification, Agustin. The only way to update the confirmText of RadButton from the client-side for the moment is to set it through the private functionality object of the control:
$find("btSaveAllocation")._functionality.confirmText = "new confirm text here"
Regards,
Vessy
Progress Telerik