Is there a masked textbox for Kendo-UI - kendo-ui

I have not found any kind of masked input support for KendoUI is there anything planned for a future release? Can I have access to a preview version?

From release 2014.1.321 there are masked input. The name of the widget is kendoMaskedTextBox and the documentation can be found here.
Some examples on how to use can be found on their demo page and is as simple as:
Phone number:
<input id="phone_number" value="555 123 4567"/>
$("#phone_number").kendoMaskedTextBox({
mask: "(999) 000-0000"
});
Credit card:
<input id="credit_card" value="1234 1234 1234 1234"/>
$("#credit_card").kendoMaskedTextBox({
mask: "0000 0000 0000 0000"
});
The mask definition syntax is:

No, it does not exist yet
UNDER REVIEW · Kenshin, Kendo UI Team
ADMIN
Kenshin, Kendo UI Team (Admin, Kendo UI) responded · Nov 22, 2011
Masked input widget will be contemplated for the future versions of Kendo UI.
Please everyone add your votes!!!
Update:
ADMIN Kenshin, Kendo UI Team (Admin, Telerik Kendo UI) responded ·
March 20, 2014 Masked textbox widget is included in Q1 2014.
Update 2: Documentation Link!

Related

Connections entity - Audit menu missing

We have migrated a CRM 2011 successfully to Dynamics 365, Version 9.
We have determined that the audit history for connections is not present in the UI.
Is it because the connection form is still in CRM 2011 style (out-of-the-box)? If so, where do you find the connection audit history?
Auditing is enabled in CRM, on the connection entity and also some fields are configured for auditing.
I would assume this is expected behavior & working as per design in various CRM versions.
Connection entity Form editor showing left navigation with "Audit History" menu.
Actual Connection form rendering is not showing the left navigation. I remember this was the case with CRM 2011 form also.
If you want to show the "Audit history" explicitly, you can always go for some unsupported solution like discussed here.
Keep an iframe & point the url something like this: (Obviously you have to script to parameterize it)
https://devcrm.crm.dynamics.com/userdefined/areas.aspx?formid=52078acf-77c4-4e18-86b8-ebffcafc0698&inlineEdit=1&navItemName=Audit History&oId={3877A32E-EA20-E911-A952-000D3A34E213}&oType=3234&pagemode=iframe&rof=true&security=852023&tabSet=areaAudit&theme=Outlook15White
Code from the above UG discussion link:
function buildIframeSource() {
var url = window.parent.Xrm.Page.context.getClientUrl();
var recordId = window.parent.Xrm.Page.data.entity.getId().replace("{", "").replace("}", "");
var element = document.getElementById("areaAuditFrame");
element.src = url + "/userdefined/areas.aspx?formid=52078acf-77c4-4e18-86b8-ebffcafc0698&inlineEdit=1&navItemName=Audit%20History&oId=%7b" + recordId + "%7d&oType=10270&pagemode=iframe&rof=true&security=852023&tabSet=areaAudit&theme=Outlook15White";
};

Dynamics 365 Get Guid Button

Does anyone know of a managed solution to import into Dynamics 365 that adds functionality for a custom button to copy the Guid of any entity to your clipboard?
In a previous environment we used this one
Of course this can't be imported into the newer Dynamics 365.
I know how to parse out the Guid from the URL, but the button to autocopy it to the clipboard was amazing.
The Chrome Extension Level Up has button for Record Id, or you can use the bookmarklet code. Just add the below code to a bookmark in your browser:
//get record id
javascript: (function () { var form = $("iframe").filter(function () { return $(this).css("visibility") == "visible" })[0].contentWindow; window.prompt("Copy to clipboard: Ctrl+C, Enter", form.Xrm.Page.data.entity.getId().slice(1, -1)) })();
Try Level Up for Dynamics 365 Chrome Extension, it provides a great variaty of common JScript actions and shortcuts to help with extensibility, diagnostics and administration
if what you need is to pulish an option to your user to get the GUID of a record and prevent the execution of other JS logic such as display all hidden attributes, then you will have to create a ribbon button and execute JS logic contained in a webresource, to make it compatible with CRM v9 and forward, past the execution context to your function (PrimaryControl) and call the native Xrm function executionContext.getFormContext().data.entity.getId()
Another extremely useful Chrome called Dynamics Power Pane. Use it together with Level Up for Dynamics 365 will be very powerful.

Show warning on page only when IE7

I want to show a warning on a particular page I have if and only if the user is using IE 7.
I am currently seeing an issue where if the user is using IE 8 in compatibility mode they are seeing this warning message, the logic is as follows:
Please note: Some customers using Internet Explorer 7 web browser may not be able to use parts of this site. You may wish to upgrade.
How can I fix the page so that the customer is only shown this warning if they are really using IE7?
The specifics depends on the web framework in use (asp.net etc), but you can check the browser version by checking the user agent submitted by the browser. Each browser will have a unique user agent that includes the version number as well. The user agent will be in the http request.
Here's a link with a few options if you're using asp.net
http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx
<script type="text/javascript">
var $buoop = {vs:{i:7,f:5,o:12,s:5,n:9}};
$buoop.ol = window.onload;
window.onload=function(){
try {if ($buoop.ol) $buoop.ol();}catch (e) {}
var e = document.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", "//browser-update.org/update.js");
document.body.appendChild(e);
}
</script>

Using Windows Phone WIde Tiles with Cordova

How do you specify an image for WideTile on the Windows Phone when using Cordova?
Unfortunately, this option [Wide Live Tile] is not supported at present time. I'll create a feature request for WP8 and WP7.8. Most likely updated version of LiveTiles plugin will be landed to the following place
https://github.com/apache/incubator-cordova-wp8/tree/master/plugins/www/plugins/LiveTiles
UPDATE
Updated version could be found here
https://github.com/sgrebnov/incubator-cordova-wp8/tree/master/plugins/www/plugins/LiveTiles
Sample usage
navigator.plugins.liveTiles.updateAppTile(success, fail, {
title: document.getElementById('title').value,
image: 'Images/appbar.next.rest.png',
count: document.getElementById('count').value,
backTitle: 'Back title',
backContent: 'Back side',
backImage: 'Images/appbar.close.rest.png',
smallImage: 'Images/appbar.save.rest.png',
wideContent: 'This is wide content',
wideImage: 'Images/appbar.stop.rest.png',
wideBackImage: 'Images/appbar.feature.video.rest.png'
});

Dynamics CRM MessageBox

I have some JavaScript in Dynamics that does some work and needs to prompt the user with a Yes/No question.
I'd like to have the popup themed like the rest of Dynamics. Is there any page I can use with window.ShowModalDialog or some part of the API to provide a standard looking Dynamics message box?
Thanks.
there isn't a built-in feature to prompt the user in Dynamics CRM using javascript, however, you could build one the use the OpenDialog function to prompt it like Dynamics CRM does using one of these JS functions
Xrm.Utility.openDialog //2016
Xrm.Internal.openDialog //2015 - 2013
Hope it helps
No, CRM doesn't have any function like that built in. You'll have to create your own page.
Maybe you can use a managed solution here https://alertjs.codeplex.com/
The latest Javascript API has the following method, its simple and amazing.
var confirmStrings = { text:"This is a confirmation.",cancelButtonLabel:"No", title:"Confirmation Dialog" };
var confirmOptions = { height: 200, width: 450 };
Xrm.Navigation.openConfirmDialog(confirmStrings, confirmOptions).then(
function (success) {
if (success.confirmed)
console.log("Dialog closed using OK button.");
else
console.log("Dialog closed using Cancel button or X.");
});
Maybe you can use "dialogs" and trigger that to open by using a javascript?
You can use the dialog template found in the SDK to create a dialog with CRM 4.0 look and feel:
(SDK Path)\visualstudiotemplates\cs\addonwebpage
Hope that the below code snippet would be helpful
protected void doBatch()
{
if (Box::yesNo("Vent radioactive gas?", DialogButton::No) == DialogButton::Yes)
{
super();
}
}

Resources