Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

How to Hide Custom buttons for Selected Row Using Kendo API

$
0
0

Dear Experts,

Am Using Kendo HTML Grid like Bellow

1.if i have clicked on Submit Button want to Hide Submit Button Based on Status 

Here am Able to Hide the Button Based on Status like Bellow

My Problem is if i have any other status like draft also Submit button is in Hidden Mode or if i have added other record means am not able to submit the button and also i cont able to to any other process like(if i have clicked on Approve Button It is not Working Non other Buttons are Working)

For to Hide the Buttons am Using Bellow Code

jQuery("#subdiv1 tbody tr .k-grid-Submit").each(function () {
debugger;

var currentDataItem = jQuery("#subdiv1").data("kendoGrid").dataItem(jQuery(this).closest("tr"));


if(currentDataItem.pcl_travelplanactivitystatus.value==798330003)
{
jQuery(".k-grid-edit").remove();
}
if(currentDataItem.pcl_travelplanactivitystatus.value==798330003)
{
jQuery(".k-grid-Submit").remove();
}

});

Can any one Help on this 

Thanks 

Shankar


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>