private void SetupDropdown() { var configScript = AjaxHelper.GetKendoComboBoxConfigScript("GetAllApplicationUserList", "ApplicationUserFullName", "ApplicationUserFullName", txtUserName.ClientID); ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "kendoScript" + "ApplicationUserId", configScript, true); var str = new StringBuilder(); str.AppendLine("$(document).ready(function ()"); str.AppendLine(" {"); str.AppendLine("$.ajax("); str.AppendLine(" {"); str.AppendLine("type: \"POST\","); str.AppendLine("url: \"http://localhost:53331/API/AutoComplete.asmx/GetComputerList\","); //str.AppendLine("data:\"{\'primaryEntity\':\'" + PrimaryEntity + "\',\'txtName\':\'" + name + "\',\'AuditId\':\'" + SessionVariables.RequestProfile.AuditId + "\'}\","); str.AppendLine("contentType: \"application/json; charset=utf-8\","); str.AppendLine("dataType: \"json\","); str.AppendLine("success: function (msg)"); str.AppendLine(" {"); str.AppendLine("$(\"#" + txtServerName.ClientID + "\").kendoAutoComplete({"); str.AppendLine(" dataSource: msg.d,filter: \"startswith\""); str.AppendLine(" });"); str.AppendLine(" }"); str.AppendLine(" });"); str.AppendLine(" });"); configScript = str.ToString(); ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "kendoScript" + "Computer", configScript, true); }
public override string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcControlHolder) { if (fieldName == "ApplicationId") { TextBoxApplicationIdClientId = txtBox.ClientID; } var configString = string.Empty; switch (fieldName) { case "Functionality": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetFunctionalityList", "Name", "FunctionalityId", plcControlHolder, TextBoxApplicationIdClientId); break; case "SystemEntityType": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "systemEntityTypeId", plcControlHolder); break; case "ApplicationId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationList", "Name", "ApplicationId", plcControlHolder); break; case "FunctionalityActiveStatus": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityActiveStatusList", "Name", "FunctionalityActiveStatusId", plcControlHolder); break; } return(configString); }
public override string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcControlHolder) { if (fieldName.Equals("ApplicationId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationList", "Name", "ApplicationId", plcControlHolder)); } return(string.Empty); }
public override string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcControlHolder) { if (fieldName.Equals("NotificationPublisherId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetNotificationPublisherList", "Name", "NotificationPublisherId", plcControlHolder)); } if (fieldName.Equals("NotificationEventTypeId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetNotificationEventTypeList", "Name", "NotificationEventTypeId", plcControlHolder)); } return(string.Empty); }
public override string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcControlHolder) { if (fieldName.Equals("ProjectId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetProjectList", "Name", "ProjectId", plcControlHolder)); } if (fieldName.Equals("ClientId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetClientList", "Name", "ClientId", plcControlHolder)); } return(string.Empty); }
public override string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcControlHolder) { if ((!fieldName.Equals("CategoryLike")) && (!fieldName.Equals("Value"))) { if (fieldName.Equals("ApplicationUser")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "ApplicationUserName", "ApplicationUserId", plcControlHolder)); } else { return(AjaxHelper.GetKendoComboBoxConfigScript("Get" + fieldName + "List", "Name", "" + fieldName + "Id", plcControlHolder)); } } return(string.Empty); }
public override string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcControlHolder) { if (fieldName.Equals("SystemEntityId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", plcControlHolder)); } else if (fieldName.Equals("EntityKey")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", plcControlHolder)); } else if (fieldName.Equals("CreatedByPersonId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "ApplicationUserId", plcControlHolder)); } else if (fieldName.Equals("AuditActionId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetAuditActionList", "Name", "AuditActionId", plcControlHolder)); } else if (fieldName.Equals("TraceId")) { return(AjaxHelper.GetKendoComboBoxConfigScript("GetTraceList", "Name", "TraceId", plcControlHolder)); } return(string.Empty); }
public virtual string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, HtmlGenericControl divControlContainer) { var configString = string.Empty; switch (fieldName) { case "ApplicationId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationList", "Name", "ApplicationId", divControlContainer, false); break; case "ApplicationUserId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "ApplicationUserId", divControlContainer); break; case "EntityId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetEntityList", "FullName", "EntityId", divControlContainer); break; case "ScheduleStateId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetScheduleStateList", "Name", "ScheduleStateId", divControlContainer); break; case "PersonId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "ApplicationUserId", divControlContainer); break; case "ProjectId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetProjectList", "Name", "ProjectId", divControlContainer); break; case "ReleaseLogId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseLogList", "Name", "ReleaseLogId", divControlContainer); break; case "ReleasePublishCategoryId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleasePublishCategoryList", "Name", "ReleasePublishCategoryId", divControlContainer); break; case "ReleaseIssueTypeId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseIssueTypeList", "Name", "ReleaseIssueTypeId", divControlContainer); break; case "PrimaryEntity": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", divControlContainer); break; case "ModuleId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetModuleList", "Name", "ModuleId", divControlContainer); break; case "ReleaseFeatureId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseFeatureList", "Name", "ReleaseFeatureId", divControlContainer); break; case "ScheduleDetailActivityCategoryId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetScheduleDetailActivityCategoryList", "Name", "ScheduleDetailActivityCategoryId", divControlContainer); break; case "FunctionalityOwner": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityOwnerList", "Name", "Value", divControlContainer); break; case "Application": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationList", "Name", "ApplicationId", divControlContainer); break; case "FunctionalityActiveStatus": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityActiveStatusList", "Name", "Value", divControlContainer); break; default: break; } return(configString); }
public virtual string LoadKendoComboBoxSources(string fieldName, TextBox txtBox, PlaceHolder plcHolder) { var configString = string.Empty; switch (fieldName) { case "ApplicationId": case "SubscriberApplicationId": case "PublisherApplicationId": case "Application": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationList", "Name", "ApplicationId", plcHolder, true); break; case "ApplicationUserId": case "ApplicationUser": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "ApplicationUserId", plcHolder); break; case "UserName": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "FullName", plcHolder); break; case "Task": case "TaskId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskList", "Name", "TaskId", plcHolder); break; case "CompetencyId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetCompetencyList", "Name", "CompetencyId", plcHolder); break; case "ScheduleDetailActivityCategory": case "ScheduleDetailActivityCategoryId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetScheduleDetailActivityCategoryList", "Name", "ScheduleDetailActivityCategoryId", plcHolder); break; case "Activity": case "ActivityId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskList", "Name", "TaskId", plcHolder); break; case "EntityId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetEntityList", "FullName", "EntityId", plcHolder); break; case "ScheduleStateId": case "ScheduleStateName": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetScheduleStateList", "Name", "ScheduleStateId", plcHolder); break; case "DeliverableArtifactId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetDeliverableArtifactList", "Name", "DeliverableArtifactId", plcHolder); break; case "DeliverableArtifactStatusId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetDeliverableArtifactStatusList", "Name", "DeliverableArtifactStatusId", plcHolder); break; case "Person": case "PersonId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserList", "FullName", "ApplicationUserId", plcHolder); break; case "ProjectId": case "Project": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetProjectList", "Name", "ProjectId", plcHolder); break; case "FeatureXFeatureRuleId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetProjectList", "Name", "ProjectId", plcHolder); break; //case "ReleaseLogId": // configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseLogList", "Name", "ReleaseLogId", plcHolder); // break; case "ReleasePublishCategoryId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleasePublishCategoryList", "Name", "ReleasePublishCategoryId", plcHolder); break; case "ReleaseIssueTypeId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseIssueTypeList", "Name", "ReleaseIssueTypeId", plcHolder); break; case "ThemeId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetThemeList", "Name", "ThemeId", plcHolder); break; case "ThemeCategoryId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetThemeCategoryList", "Name", "ThemeCategoryId", plcHolder); break; case "ThemeKeyId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetThemeKeyList", "Name", "ThemeKeyId", plcHolder); break; case "Entity": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetEntityList", "items", "SystemEntityTypeId", plcHolder); break; //case "ModuleId": // configString = AjaxHelper.GetKendoComboBoxConfigScript("GetModuleList", "Name", "ModuleId", plcHolder); // break; //case "ReleaseFeatureId": // configString = AjaxHelper.GetKendoComboBoxConfigScript("GetReleaseFeatureList", "Name", "ReleaseFeatureId", plcHolder); // break; case "FunctionalityActiveStatus": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityActiveStatusList", "Name", "Value", plcHolder); break; case "TaskEntityId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskEntityList", "Name", "TaskEntityId", plcHolder); break; case "TaskTypeId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskTypeList", "Name", "TaskTypeId", plcHolder); break; case "TaskScheduleId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskScheduleList", "Name", "TaskScheduleId", plcHolder); break; case "TaskPackageId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetTaskPackageList", "Name", "TaskPackageId", plcHolder); break; case "FunctionalityImage": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityImageList", "Name", "FunctionalityImageId", plcHolder); break; case "Title": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityImageList", "Name", "FunctionalityImageId", plcHolder); break; case "ProfileTitle": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetApplicationUserProfileImageMasterList", "Title", "Title", plcHolder); break; case "FeatureOwnerStatusId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureOwnerStatusList", "Name", "FeatureOwnerStatusId", plcHolder); break; case "DeveloperRoleId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetDeveloperRoleList", "Name", "DeveloperRoleId", plcHolder); break; case "FunctionalityImageAttribute": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityImageAttributeList", "Name", "FunctionalityImageAttributeId", plcHolder); break; case "Module": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetModuleList", "Name", "ModuleId", plcHolder); break; case "FunctionalityId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFunctionalityList", "Name", "FunctionalityId", plcHolder); break; case "QuestionCategoryId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetQuestionCategoryList", "Name", "QuestionCategoryId", plcHolder); break; case "Category": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetQuestionCategoryList", "Name", "QuestionCategoryId", plcHolder); break; //case "SystemEntityType": //case "SystemEntityTypeId": //case "PrimaryEntity": // configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", plcHolder); // break; case "SubscriberApplicationRoleId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSubscriberApplicationRoleList", "Name", "SubscriberApplicationRoleId", plcHolder); break; case "ParentMenuId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetParentMenuList", "MenuDisplayName", "MenuId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "ModuleId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetModuleList", "Name", "ModuleId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "NeedId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetNeedList", "Name", "NeedId", plcHolder); break; case "UseCaseId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseList", "Name", "UseCaseId", plcHolder); break; case "ProjectUseCaseStatusId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetProjectUseCaseStatusList", "Name", "ProjectUseCaseStatusId", plcHolder); break; case "UseCaseWorkFlowCatgeoryId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseWorkFlowCatgeoryList", "Name", "UseCaseWorkFlowCatgeoryId", plcHolder); break; case "UseCaseStepId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseStepList", "Name", "UseCaseStepId", plcHolder); break; case "UseCaseActorId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseActorList", "Name", "UseCaseActorId", plcHolder); break; case "UseCaseRelationshipId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUseCaseRelationshipList", "Name", "UseCaseRelationshipId", plcHolder); break; case "FeatureId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureList", "Name", "FeatureId", plcHolder); break; case "FeatureRuleId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureRuleList", "Name", "FeatureRuleId", plcHolder); break; case "FeatureRuleStatusId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetFeatureRuleStatusList", "Name", "FeatureRuleStatusId", plcHolder); break; case "TabParentStructureId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetTabParentStructureList", "Name", "TabParentStructureId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "ReleaseFeatureId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetReleaseFeatureList", "Name", "ReleaseFeatureId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "ReleaseLogId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetReleaseLogList", "Name", "ReleaseLogId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "NotificationEventTypeId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetNotificationEventTypeList", "Name", "ReleaseLogId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "NotificationPublisherId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetNotificationPublisherList", "Name", "ReleaseLogId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "SystemEntityTypeId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", plcHolder); break; case "SystemEntityType": //case "SystemEntityTypeId": case "PrimaryEntity": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetSystemEntityList", "EntityName", "SystemEntityTypeId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "FieldConfigurationModeId": configString = AjaxHelper.GetCascadeKendoComboBoxConfigScript("GetFieldConfigurationModeList", "Name", "FieldConfigurationModeId", plcHolder, BaseSearchFilterControl.TextBoxApplicationIdClientId); break; case "EntityDateRangeStateTypeId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetEnityDateRangeStateList", "Name", "EntityDateRangeStateId", plcHolder); break; case "UserLoginStatusId": configString = AjaxHelper.GetKendoComboBoxConfigScript("GetUserLoginStatusList", "UserLoginStatusCode", "UserLoginStatusId", plcHolder); break; case "ExcludeItems": configString = AjaxHelper.GetKendoComboBoxConfigScript("CheckExcludeItemsListBoxItems", "Name", "Value", plcHolder, false); break; default: break; } return(configString); }