Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
Hi could anyone please guide me in the direction of how I can implement the following:
I am replacing the image of the node  by using the following code. but for some reason I cannot get the image changed. The text of the node changes correctly but the image is not working.

//when the node is edites  
 
function OnNodeEdited(nodetext,imageurl)   
 
{  
 
var tree = $find("<%= tvwUserWorkout.ClientID %>");  
 
tree.trackChanges();  
 
for (var i = 0; i < tree.get_nodes().get_count(); i++) {  
 
var node = tree.get_nodes().getNode(i);  
 
node.set_imageUrl(imageurl);  
 
node.set_text(nodetext);  
 
 
}  
 
tree.commitChanges();  
 
}  
 

many thanks

shahab
Top achievements
Rank 1
 answered on 25 Sep 2008
1 answer
100 views

When I open the page containing the webpart, it renders but with all of the RadPanelItem's open. Clicking on the PanelItems does nothing, they won't expand or collapse.

It basically opens like this:

=========
-
-
=========
-
-
=========
-
-
=========
-
-

... and the functionality is gone. Clicking the panel headers simply bolds the text, it doesn't expand/collapse.

Here is the code that creates it (sorry for the extra sharepoint stuff, but I thought it might be relevant)

 private void InitializeAccordion()  
        {  
            SPSite oSite = null;  
            SPWeb oSites = null;  
            SPList oList = null;  
              
            radAccordion = new RadPanelBar();  
            radAccordion.ID = "RadPanelBar1";  
            radAccordion.Attributes.Add("runat""server");  
            radAccordion.Skin = RadSkin;  
            radAccordion.Width = new Unit(500, UnitType.Pixel);  
            radAccordion.ExpandMode = PanelBarExpandMode.MultipleExpandedItems;  
            radAccordion.CollapseAnimation.Type = AnimationType.Linear;  
            radAccordion.CollapseAnimation.Duration = 200;  
            radAccordion.CollapseDelay = 0;  
            radAccordion.ExpandAnimation.Type = AnimationType.Linear;  
            radAccordion.ExpandAnimation.Duration = 200;  
            radAccordion.ExpandDelay = 0;  
            radAccordion.EnableViewState = false;  
 
            DataTable groupTable = new DataTable();  
            groupTable.Columns.Add("GroupName");  
            groupTable.PrimaryKey = new DataColumn[]{groupTable.Columns["GroupName"]};  
 
            DataTable listItems = new DataTable();  
            listItems.Columns.Add(TitleField + "1");  
            listItems.Columns.Add(DescriptionField + "2");  
            listItems.Columns.Add(GroupByField + "3");  
 
            try 
            {  
                string titleString, descriptionString, groupString;  
                oSite = new SPSite(this.Page.Request.Url.ToString());  
                oSites = oSite.OpenWeb();  
                oList = oSites.Lists[SelectedList];  
 
                foreach (SPListItem item in oList.Items)  
                {  
                    titleString = CheckFieldValue(item, TitleField);  
                    descriptionString = CheckFieldValue(item, DescriptionField);  
                    groupString = CheckFieldValue(item, GroupByField);  
 
                    listItems.Rows.Add(titleString, descriptionString, groupString);  
 
                    if(groupTable.Rows.Count == 0 || (groupTable.Rows.Count > 0 && !groupTable.Rows.Contains(groupString)))  
                    {  
                        groupTable.Rows.Add(groupString);  
                    }  
                }  
 
                foreach (DataRow row in groupTable.Rows)  
                {  
                    aPanelItem = new RadPanelItem(TrimField(row["GroupName"].ToString(), 90));  
                    aPanelItem.Attributes.Add("runat""server");  
                    aPanelItem.Controls.Add(CreateTable(listItems, row["GroupName"].ToString()));  
                    aPanelItem.Expanded = false;  
                    radAccordion.Items.Add(aPanelItem);  
                }  
            }  
            catch (Exception ex)  
            {  
            }  
            finally 
            {  
                if (oSites != null) oSites.Dispose();  
                if (oSite != null) oSite.Dispose();  
                if (oList != null) oList = null;  
            }  
        } 

and it's added to the page with this...

InitializeAccordion();  
 
            aTimer = new Timer();  
            aTimer.ID = "Timer1";  
            aTimer.Interval = 90000;  
 
            radPanel = new RadAjaxPanel();  
            radPanel.ID = "RadPanel1";  
            radPanel.LoadingPanelID = "RadLoadingPanel1";  
            radPanel.Controls.Add(radAccordion);  
            radPanel.Controls.Add(aTimer);  
 
            radLoadingPanel = new RadAjaxLoadingPanel();  
            radLoadingPanel.ID = "RadLoadingPanel1";  
            radLoadingPanel.Transparency = 30;  
            radLoadingPanel.BackColor = System.Drawing.Color.AliceBlue;  
 
            Controls.Add(radPanel);  
            Controls.Add(radLoadingPanel); 
Chad
Top achievements
Rank 1
 answered on 25 Sep 2008
2 answers
135 views
Is there any way to insert an image into the header of a detail table. I tried to use ItemCreated to insert the image, however I have set HierarchyLoadMode="ServerOnDemand" which means that the ItemCreated doesn't fire when the detail table is created? Is there anything similar to ItemCreated that I can access to do this when the detail table is created?

thanks

Kevin
Kevin
Top achievements
Rank 1
 answered on 25 Sep 2008
1 answer
114 views
I have a grid that implements filtering. The grid skin is Office2007 and I use this skin throughout many controls (as a theme), so I am not really able to change this. However, the Filter Options menu which implements the Office2007 skin is an extremely poor use of space. The menu is so tall that all the options aren't even visible on screen. I believe Telerik was working on changing the Menu Office 2007 skin, and perhaps they have done this, however I am unable to upgrade to the most recent version of Rad Grid for a variety of reasons. Is there a way of implementing a different skin in the Filter Options Menu than the grid.
Dimo
Telerik team
 answered on 25 Sep 2008
3 answers
241 views
Hi all,

I'm having a problem with the Q2 version of RadWindow for ASP.NET AJAX, I was updateing the binaries from Q1 to Q2 and now I get an errormessage

"The control with ID '<controlID>' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it."

I'm using the ToolkitScriptManager from the AJAX Toolkit on CodePlex and I am using the most recent version of that as well.

I'm building the solution with DotNet version 3.5SP1

If anyone can point me in the right direction that would be greatly appreciated.
Serrin
Top achievements
Rank 1
 answered on 25 Sep 2008
1 answer
106 views
HI:
I want to find a node,the node is the treeroot's child.I use FindNodeByValue method.
my progem is:

find_node = tree_root.Nodes.FindNodeByValue("C002417")

i have give my node set nodevalue,but i can't find it.
why?
Omarr
Top achievements
Rank 1
 answered on 25 Sep 2008
0 answers
139 views
Hi

Can you please help me with some code sample to bind dataset to RadSchedular in code - behind..

Thanks
Archan
Archan
Top achievements
Rank 1
 asked on 25 Sep 2008
0 answers
135 views
Nevermind I found the answer. you can delete this post
Mike
Top achievements
Rank 1
 asked on 25 Sep 2008
3 answers
82 views
I've written a HttpModule for sharepoint and need to open a RadWindow. I've proven that the HttpModule injects controls to the page by simply adding a dynamic label.

Here's the code I'm trying to use on the PreInit event in the HttpModule:

        private void Page_PreInit(object sender, EventArgs e)  
        {  
            Page page = HttpContext.Current.CurrentHandler as Page;  
            HttpContext oContext = HttpContext.Current;  
            SPContext oSPContext = SPContext.GetContext(oContext);  
 
            SPWeb oWeb = oSPContext.Web;  
 
            int intMill = DateTime.Now.Millisecond;  
            RadWindow RadWindow1 = new RadWindow();  
            RadWindow1.Skin = "Default";  
            RadWindow1.ID = "test" + intMill.ToString();  
            page.Master.Controls.Add(RadWindow1);  
        }  
 

A label control works fine but I can't get the RadWindow to appear. I've debugged it and saw no exceptions and no errors are generated.

Any ideas?

cheers,

Steve
Svetlina Anati
Telerik team
 answered on 25 Sep 2008
1 answer
183 views
Greetings,

How do I shift the RADDOCK commands e.g. minimize on the bar from showing them on the right to showing them on the left.

Has anyone come across such a fix?

Thanks,
Karim
Serrin
Top achievements
Rank 1
 answered on 25 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?