コード例 #1
0
 private bool IsSelectable(TreeSearchInfo info, RadTreeNode node)
 {
     //if (!info.AllowSelectFirstNode && node.ParentNode == null)
     //{
     //    base.RadAlert("En Üst Düğüm Seçilemez");
     //    return false;
     //}
     if (info.OnlySelectLastNode && node.Nodes.Count != 0)
     {
         base.RadAlert("Yalnızca En Alt Kayıdı Seçebilirsiniz");
         return false;
     }
     return true;
 }
コード例 #2
0
 public static void ClearCache(TreeSearchInfo treeSearchInfo)
 {
     HttpContext.Current.Session["$Search_Tree" + treeSearchInfo.SessionKeyName] = null;
 }
コード例 #3
0
 public static RadTreeNode GetSelectedNode(TreeSearchInfo treeSearchInfo)
 {
     return HttpContext.Current.Session["$Search_Tree" + treeSearchInfo.SessionKeyName] as RadTreeNode;
 }
コード例 #4
0
 private static void SetSelectedNode(TreeSearchInfo treeSearchInfo, RadTreeNode node)
 {
     HttpContext.Current.Session["$Search_Tree" + treeSearchInfo.SessionKeyName] = node;
 }
コード例 #5
0
//        #region |   TreeSearch   |
        public static void WriteTreeSearchJS(Page page, TreeSearchInfo treeSearchInfo, string title, string key, string functionName)
        {
            if (null == page)
                throw new ArgumentNullException("page");
            if (null == treeSearchInfo)
                throw new ArgumentNullException("treeSearchInfo");
            if (String.IsNullOrEmpty(title))
                throw new ArgumentNullException("title");
            if (String.IsNullOrEmpty(key))
                throw new ArgumentNullException("key");
            if (String.IsNullOrEmpty(functionName))
                throw new ArgumentNullException("functionName");

            page.ClientScript.RegisterClientScriptBlock(page.GetType(), key, @"<script type='text/javascript'>
                function " + functionName + @"() {
                    var wnd = radopen('../../AppX/Utility/TreeSearch/TreeSearchPage.aspx?Tree=" + Utility.ToQueryString(treeSearchInfo) + @"', 'RadWindow1');
                    wnd.set_title('" + title + @"');
                    wnd.setSize(850, 500);
                    wnd.center();
                    wnd.set_modal(true);
                    return false;
                }
            </script>");
        }