Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
169 views
Hi,
How can I use radwindow with asp button runat server. At the moment, it closes my radwindow after the postback. Reason why I use asp button coz I will update first needed changes before it will show radwindow to show the preview. Using input type button works and it doesn't close my radwindow but then I cant update preview for my rad window for I need to save first some data to database before showing its preview..

Any help would be greatly appreciated.

Thanks in advance,
RJ
RJ
Top achievements
Rank 1
 answered on 24 Nov 2009
12 answers
309 views
Hi,

I'am trying to create a Publishing Page with HTML content inside.
The Web in what i try to create the page has both radEditor features(RadEditorFeatureRichHtml and RadEditorFeatureRichText) activated.

My code looks like that.
PublishingPage currentPage = ......; 
SPFile spFile = currentPage.ListItem.File; 
SPListItem fileItem = spFile.Item; 
fileItem[FieldId.PublishingPageContent] = htmlContent; 
newFileItem.Update(); 

 The Html content starts for example with that:
<table class ="testClass" cellspacing="0" cellpadding="0" border="0"

After the update() method is called the saved output looks like
<table class =testClass cellspacing=0 cellpadding=0 border=0


Also comments like
<!-- comment -->
are stripped.

I've discovered serveral ways to get the content into the field. I even put the content through filestream into the
field but sharepoint always strips the characters.I also tried to Encode the content but this also not worked.

If I call the RadEditor through the graphical interface and set the EditModes to HTML and then paste my html code it works fine and the content is saved in the correct form. I thought if your editor is able to save html content without stripping, there must be a way to save it through the api.

Please tell me if there are any possibilities to save the content through the API.


Thanks and greets Torsten
Alan Coulter
Top achievements
Rank 1
 answered on 24 Nov 2009
3 answers
154 views
Hi. Is there any way possible to use a radTextBox to pull data in a load on demand way similar to this:

http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx

But for a textbox so that it could be have similar search functionality to the Google search's auto-populate? Are there any guides for this yet? Is this possible?

Any assistance would be appreciated. :)
David
Top achievements
Rank 1
 answered on 24 Nov 2009
2 answers
112 views
Hi,

Please tell me how to get the reference for the col span template column value like in demo ...
( Have to make conditional formatting for the value) ..
Thank you so much..
Rgd,,

              Contact Detail
Contact Name | Contact Title
---------------------------------------------
value 1            |  value 2
value 1.1         |  value 2.1


//
if value 1 is > 0 , color = red
if value 2 is < 100, color = blue




VIRUX
Top achievements
Rank 1
 answered on 24 Nov 2009
1 answer
143 views
I need to build an editable grid that allows some segment of the user-base the ability to use the app via a low bandwidth.  I went down the road of binding everything server-side, then allowing updates via a webservice (NOT using the RadGrid editforms, but rather using my own hidden div).  The problem I ran into is - how do I "insert" an item into the grid if I'm not using the inherent editform.  Is there a better way?

What architecture / best practices can I use to minimize postbacks and grid rebinds (it's not obvious to me at this point, so any insight would be greatly appreciated). 
Schlurk
Top achievements
Rank 2
 answered on 23 Nov 2009
10 answers
248 views
Using the latest release of RadGrid for ASP.Net AJAX and Visual Studio 2008 SP1

In design view, I can see images for control buttons like filter and paging.

However, at run-time those images change to blank HTML buttons.

They still work, but it's just ugly.

Any idea what I'm doing wrong?

-Charles
Sasha Dossantos
Top achievements
Rank 1
 answered on 23 Nov 2009
4 answers
190 views
Hello,
I want to show commnad button in a grid accroding to object's Active boolean field. When it is true, it should show "Deactivate" text, when it is false "Activate" text. What is the best practice to do this behaviour with radgrid.

Thank you.
umit celik
Top achievements
Rank 1
 answered on 23 Nov 2009
1 answer
160 views
I have an asp.net page that has a Treeview control.  The Treeviwe control consists of "Controller" nodes and "Reader" nodes.  The reader nodes are children to the Controller nodes.  So fully expanded, my control should look somethign like this:

++ Root Node
    -- Controller Node
        -- Reader Node
        -- Reader Node
    -- Controller Node

This Treeview control is built entirely from the page's code-behind.  I have several context menus based on the type of node.  The problem is that when I right-click, the context menu wil only display on the "root node".  I cannot get a context menu to display on any other node.

I have alternately set the EnableContextMenu on the nodes without any effect.  I have included a simplified version of the source code that creates the nodes.

So, any help would be greatly appreciated.  Here's the code:

            try 
            {  
                tvStatus.Nodes.Clear();  
 
                RadTreeNode Root = new RadTreeNode(Resources.Globals.MenuCommandStatus);  
                Root.EnableContextMenu = false// I DON'T want a context menu on the root node  
 
                                // controller menu  
                RadTreeViewContextMenu mnuController = new RadTreeViewContextMenu();  
                mnuController.ID = "mnuController" + DateTime.UtcNow.ToString();  
                mnuController.SkinID = "WebBlue";  
 
                RadMenuItem miControllerInit = new RadMenuItem(Resources.Globals.MenuInitialize);  
                miControllerInit.SkinID = "WebBlue";  
 
                RadMenuItem miSyncController = new RadMenuItem(Resources.Globals.MenuSyncControllerTimeMsg);  
                miSyncController.SkinID = "WebBlue";  
 
                mnuController.Items.Add(miControllerInit);  
                mnuController.Items.Add(miSyncController);  
 
                // Reader menu  
                RadTreeViewContextMenu mnuReader = new RadTreeViewContextMenu();  
                mnuReader.ID = "mnuReader" + DateTime.UtcNow.ToString();  
                mnuReader.SkinID = "WebBlue";  
 
                RadMenuItem miGrantAccess = new RadMenuItem(Resources.Globals.MenuGrantAccess);  
                miGrantAccess.SkinID = "WebBlue";  
 
                RadMenuItem miLockReader = new RadMenuItem(Resources.Globals.MenuLockReader);  
                miLockReader.SkinID = "WebBlue";  
 
                RadMenuItem miUnlockReader = new RadMenuItem(Resources.Globals.MenuUnlockReader);  
                miUnlockReader.SkinID = "WebBlue";  
 
                RadMenuItem miBeepReader = new RadMenuItem(Resources.Globals.MenuBeepReader);  
                miBeepReader.SkinID = "WebBlue";  
 
                RadMenuItem miStopAlarm = new RadMenuItem("Turn Off Alarm");  
                miStopAlarm.SkinID = "WebBlue";  
 
                mnuReader.Items.Add(miStopAlarm);  
                mnuReader.Items.Add(miGrantAccess);  
                mnuReader.Items.Add(miLockReader);  
                mnuReader.Items.Add(miUnlockReader);  
                mnuReader.Items.Add(miBeepReader);  
 
 
                // controller menu  
                RadTreeViewContextMenu mnuController = new RadTreeViewContextMenu();  
                mnuController.ID = "mnuController" + DateTime.UtcNow.ToString();  
                mnuController.SkinID = "WebBlue";  
 
                RadMenuItem miControllerInit = new RadMenuItem(Resources.Globals.MenuInitialize);  
                miControllerInit.SkinID = "WebBlue";  
 
                RadMenuItem miSyncController = new RadMenuItem(Resources.Globals.MenuSyncControllerTimeMsg);  
                miSyncController.SkinID = "WebBlue";  
 
                mnuController.Items.Add(miControllerInit);  
                mnuController.Items.Add(miSyncController);  
 
                // Reader menu  
                RadTreeViewContextMenu mnuReader = new RadTreeViewContextMenu();  
                mnuReader.ID = "mnuReader" + DateTime.UtcNow.ToString();  
                mnuReader.SkinID = "WebBlue";  
 
                RadMenuItem miGrantAccess = new RadMenuItem(Resources.Globals.MenuGrantAccess);  
                miGrantAccess.SkinID = "WebBlue";  
 
                RadMenuItem miLockReader = new RadMenuItem(Resources.Globals.MenuLockReader);  
                miLockReader.SkinID = "WebBlue";  
 
                RadMenuItem miUnlockReader = new RadMenuItem(Resources.Globals.MenuUnlockReader);  
                miUnlockReader.SkinID = "WebBlue";  
 
                RadMenuItem miBeepReader = new RadMenuItem(Resources.Globals.MenuBeepReader);  
                miBeepReader.SkinID = "WebBlue";  
 
                RadMenuItem miStopAlarm = new RadMenuItem("Turn Off Alarm");  
                miStopAlarm.SkinID = "WebBlue";  
 
                mnuReader.Items.Add(miStopAlarm);  
                mnuReader.Items.Add(miGrantAccess);  
                mnuReader.Items.Add(miLockReader);  
                mnuReader.Items.Add(miUnlockReader);  
                mnuReader.Items.Add(miBeepReader);  
 
                // add menus to treeview control                  
                tvStatus.ContextMenus.Add(mnuController);  
                tvStatus.ContextMenus.Add(mnuReader);  
 
 
        // get data and populate controller nodes  
                EncAccess.AccessWS.Controller[] lstControllers = ws.Controller_GetAll(false);  
 
                string ImageUrl = string.Empty;  
                string ControllerName = string.Empty;  
 
                foreach (EncAccess.AccessWS.Controller controller in lstControllers)  
                {  
                    // get status of Controller  
                    bool bOnline = IsControllerOnline(controller);  
                      
                    if (bOnline == true)  
                    {  
                        ControllerName = controller.HostName + " (Online)";  
                        ImageUrl = "Images/flag_green.png";  
                    }  
                    else 
                    {  
                        ControllerName = controller.HostName + " (Offline)";  
                        ImageUrl = "Images/flag_yellow.png";  
                    }  
 
                    // create node for controller  
                    RadTreeNode ndController = new RadTreeNode(Resources.Globals.MenuController + " - " + ControllerName);  
                    ndController.Value = controller.ControllerID.ToString();  
                    ndController.ContextMenuID = "mnuController";  
                    ndController.EnableContextMenu = true;  
                    ndController.ImageUrl = ImageUrl;  
 
                    // get all the readers for this controller  
                    EncAccess.AccessWS.Reader[] lstReaders = ws.Reader_GetByControllerID(controller.ControllerID, false);  
 
                    RadTreeNode ndReaderRoot = new RadTreeNode(Resources.Globals.MenuReaders);  
 
                    foreach (EncAccess.AccessWS.Reader rdr in lstReaders)  
                    {  
                        EncAccess.AccessWS.ReaderStatusEnumeration status = ws.Reader_GetReaderStatus(rdr.ReaderID);  
 
                        string ReaderName = rdr.ReaderName;  
 
                        switch (status)  
                        {  
                            case EncAccess.AccessWS.ReaderStatusEnumeration.IN_ALARM:  
                                ReaderName += " (Status = ALARM)";  
                                ImageUrl = "Images/flag_red.png";  
                                break;  
                            case EncAccess.AccessWS.ReaderStatusEnumeration.FORCED_DOOR_OPEN:  
                                ReaderName += " (Status = Forced Door Open)";  
                                ImageUrl = "Images/flag_yellow.png";  
                                break;  
                            case EncAccess.AccessWS.ReaderStatusEnumeration.DOOR_OPEN:  
                                ReaderName += " (Status = Door Open)";  
                                ImageUrl = "Images/doorgroup.jpg";  
                                break;  
                            case EncAccess.AccessWS.ReaderStatusEnumeration.DOOR_CLOSED:  
                                ReaderName += " (Status = Door Closed)";  
                                ImageUrl = "Images/flag_green.png";  
                                break;  
                        }  
 
                        RadTreeNode ndReader = new RadTreeNode(ReaderName);  
 
                        ndReader.Value = rdr.ReaderID.ToString();  
                        ndReader.ContextMenuID = "mnuReader";  
                        ndReader.ImageUrl = ImageUrl;  
 
                        ndReaderRoot.Nodes.Add(ndReader);  
                    }  
 
                    ndController.Nodes.Add(ndReaderRoot);  
 
                    Root.Nodes.Add(ndController);  
                }  
 
                Root.Expanded = true;  
                tvStatus.Nodes.Add(Root);  
            }  
            catch (Exception ex)  
            {  
                throw ex;  
            }  
        }  
 


Roland
Top achievements
Rank 1
 answered on 23 Nov 2009
1 answer
113 views
Hi,
       When I look at the live demos solution that comes with the Telerik Rad Grid, there are icons for delete, filter, refresh, sort, and add column. However when I create my grid I can see the filter icons in design mode, but they are not there in runtime.

How can I get these icons to display without having to add an icon for each individual column as this is not done in the demo

Regards

Robert

Schlurk
Top achievements
Rank 2
 answered on 23 Nov 2009
4 answers
284 views
Ah, this used to be sooooooooooo easy ... place a RadAjaxManager in the control then use the SetFocus() method to move the focus around the web user controls as needed.

Now that only one RadAjaxManager can exist per .aspx page, this has become rather a nightmare. For me at least. And I've searched and searched and none of the solutions mentioned have worked for me.

I'm hopeful though. :)

  • Scenario: I've a default.aspx page. Kinda like a master page I suppose, but it is not a "Master Page". When I call this default.aspx page, I pass in a menuId value via the query string. Based on that menuId value, I load a particular web user control ascx into a placeholder on that .aspx. The .aspx page contains the RadScriptManager and the RadAjaxManager.
  • Constraint: I have to be able to set the focus at will via the C# code behind, from within any given loaded web user control, after any page load, post back, or ajax request. (Oh and please do not refer me to client-side examples; I've seen some here, and just can't manage to do the translation from client-side to code-behind from w/i a web user control; I need a translator :0) )
  • Would Like: a reusable solution as I do not want to have to recreate a chunk of code or javascript on each user control in general principle not to mention (though I am mentioning it aren't I?) to accomplish what used to be an oh so very simple one-liner.

Thanks in advance for any suggestions!

Rebecca Rasmussen
Top achievements
Rank 2
 answered on 23 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?