Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
Hi, I have found most schedular including your one, are focusing on scdueling tasks that took around several hours during a day. However, we have a client which wants to do a travel itneray plan, if the trip span accross 2 or 3 weeks or even 2 months, the schedular does not really design to do these things. For example, an item would be "stay in XXX hotel for 3 nights", you can drag and extend the time in day view, but in month view, it is not possible to drag and extend the number of nights to stay.

I was an telerik customer, and I would like to have this feature done in order to convince my manager to buy this control.

Thanks
Ben
Dimitar Milushev
Telerik team
 answered on 27 Jun 2008
3 answers
253 views
Hi,

I'm starting the painful process of converting to the new rad controls. One of the issues I'm having is the ability to select an item in the buttons collection of the RadToolBarSplitButton class on the server-side during the page load. Previously (old controls) I had a RadComboBox in the toolbar and would select the combo box item. I decided to try the new SplitButton and I'm trying to implement the same logic with no luck. I've tried setting the main split button's text and value, but after doing that the text/value never changes regardless of what selection I make from the drop down.

Thanks,
Bruce
Peter
Telerik team
 answered on 27 Jun 2008
4 answers
164 views
I have a CSS style for my page that sets the background to a gradient.

background: url(../images/global/bg.png) 50% 50% repeat-x;

On my page, I have an editor that now has this gradient as the background. i would like for the background of the editor to be white. How can I do this?

Thanks for any help.

Rumen
Telerik team
 answered on 27 Jun 2008
3 answers
356 views
I have the following Template column in my grid and am having problems setting the value for the edit template's numeric text box. When I click on edit I get the following error "Specified cast is not valid." If I hard code the value or use a standard text box this doesn't happen. Any thoughts?

Thanks,
Bill

                            <rad:GridTemplateColumn HeaderText="Min Value" UniqueName="MinimumValue2" > 
                                <ItemTemplate> 
                                    <asp:Label runat="server" ID="lblMinValue" Text='<%# DataBinder.Eval(Container.DataItem, "MinimumValue") %>' /> 
                                </ItemTemplate> 
                                <EditItemTemplate> 
                                    <rad:RadNumericTextBox ID="tbMinValue" runat="server"  MinValue="0" MaxValue="2147483647" Value='<%# (double)DataBinder.Eval(Container.DataItem, "MinimumValue") %>' > 
                                    </rad:RadNumericTextBox> 
                                </EditItemTemplate> 
                            </rad:GridTemplateColumn> 
 
Sebastian
Telerik team
 answered on 27 Jun 2008
1 answer
261 views
Is there is a way to make a RadAjaxLoadingPanel appears in a modal mode with everything around darker?
Thanks,
Eric
Sebastian
Telerik team
 answered on 27 Jun 2008
1 answer
156 views

I have used RadMenu for a long time with no problems.  But now a problem occurred on only one user control but not others.

My web app has one default page that uses a master page containing a menu. Many user controls are loaded on this default page but, depending on menu choice, only one user control is visible.

The menu does not display properly for one of the user controls. But why? And how to troubleshoot?

It looks like the menu has not enough space so it wraps (from one line to 2 lines) and its display overlaps other controls on the page.

I could send a screen shot showing good / bad menu, and below is a "view source" of the page containing the bad menu.

************** view source ******

Paul
Telerik team
 answered on 27 Jun 2008
2 answers
339 views
Hi guys,

I'm trying to achieve something like this: http://www.telerik.com/DEMOS/ASPNET/Prometheus/Dock/Examples/AutoPostBack/DefaultCS.aspx

I read on this forum it's not smart to use the RadAjaxManager, so I'm basically following the online demo exactly. I just want to ajaxify all the dockcommands.

I have an asp updatepanel in the page where the docks are:
<asp:updatepanel runat="server" id="UpdatePanel1"> 
    <contenttemplate> 
        <asp:label runat="server" id="Label1" enableviewstate="false" style="color: green; display: block;" /> 
    </contenttemplate> 
    <triggers> 
        <asp:asyncpostbacktrigger controlid="dockArticles" eventname="WhatShallIPutHere?" /> 
    </triggers> 
</asp:updatepanel> 

Then there is the dock:

             <telerik:raddock OnCommand="RadDock_Command" runat="server" id="dockArticles" title="Greinar & pistlar" width="250px" AutoPostBack="True" style="margin-bottom: 10px;"> 
                <Commands> 
                    <telerik:dockclosecommand AutoPostBack="true" Text="Loka" /> 
                    <telerik:dockexpandcollapsecommand AutoPostBack="true" Text="Minnka" /> 
                    <telerik:dockpinunpincommand AutoPostBack="true" Text="Festa" /> 
                    <telerik:dockcommand autopostback="true" name="MoreArticles" Text="Fjölga greinum" CssClass="comAddItems" /> 
                    <telerik:dockcommand autopostback="true" name="LessArticles" Text="Fækka greinum" CssClass="comRemoveItems" />                     
                </Commands>                                 
                <contenttemplate> 
                    <D10:Articles ID="D10Articles" Runat="Server" /> 
                </contenttemplate> 
            </telerik:raddock> 


The problem is that I always get the error:  Could not find an event named 'LessArticles' on associated control 'dockArticles' for the trigger in UpdatePanel 'UpdatePanel1'.


where  'LessArticles' can be substituted with anything. As you can see, LessArticles is the name of one of my two custom commands. Or so I thought...


Regards,
-DJ-
-DJ-
Top achievements
Rank 1
 answered on 27 Jun 2008
2 answers
222 views
Hello,

I'm loading a tree from my database inside of Page Load with the following code:

   if (!Page.IsPostBack) { 
            string query = "SELECT id, node_name, node_type,"+ 
                " default_value, attributes, parent_id FROM default_tree"; 
            dataSource = MyMasterPage.executeSQLQuery(query); 
            Hashtable hash = new Hashtable(); 
            foreach (DataRow dr in dataSource.Rows) { 
                int id = Convert.ToInt32(dr["id"]); 
                string node_name = dr["node_name"].ToString(); 
                string node_type = dr["node_type"].ToString(); 
                string value = dr["default_value"].ToString(); 
                string attributes = dr["attributes"].ToString(); 
                int parent_id = Convert.ToInt32(dr["parent_id"]); 
                RadTreeNode node = new RadTreeNode(node_name); 
               
               //here I want to be able to customize the node 
                node.Value = parent_id + ';' + node_type + ';' + value + ';' + attributes; 
                hash.Add(id, node); 
                if (parent_id == 0) { 
                    optionsTree.Nodes.Add(node); 
                } else { 
                    RadTreeNode parent = (RadTreeNode)hash[parent_id]; 
                    parent.Nodes.Add(node); 
                } 
            } 
        } 


Based on the node_type value, I want to change the node in the tree.

The possible special node types are:
List (drop down list)
Header (uneditable)
Number (textfield)
String (textfield)
Password (passwordfield)
Boolean (checkbox)

How do I change the type of node that this is in the tree?  I tried to figure out how to add a custom template here but couldn't figure it out.

Thanks
Ed Bassin
Top achievements
Rank 1
 answered on 27 Jun 2008
4 answers
275 views
Hi,

I'm having a problem that I can't seem to get around. I have a radGrid with names in it. Above it is a standard hyperlink that users will click on to filter the records using a radWindow. The grid fills using the NeedDataSource event.

The filter hyperlink fires a client-side javascript event:

function ShowFilter() 
    { 
      //Call existing global function to obtain a reference to the window manager 
      var oManager = GetRadWindowManager(); 
      //Show a particular existing window 
      oManager.open (null,"winFilter"); 
    } 

This works fine and opens the form. The user clicks on the appropriate filters and closes the window, which fires this function:

function FilterEmployees(radWindow) 
{ 
   var oValue = radWindow.argument; 
                 
   var ajaxManager = $find("<%= ampAssessment.ClientID %>"); 
   ajaxManager.ajaxRequest("Filter:" + oValue); 
               
} 

This code correctly fires the radAjaxManager and passes the correct values to codebehind. The problem is that the radGrid with names is not in the declarative list of <AjaxSettings> to get updated. I have a section in the <AjaxSettings> that updates panels as a result of the AjaxManager ajaxRequest (I use the client-side calls for updating the panels when someone clicks on a name in the grid). However, I don't want to add the grid to the list of <UpdatedControls> because the grid is the control that starts the update in this case (client-side row selection fires a javascript routine).

What I want is when the ajaxRequest or Rebind is completed, the grid and only the grid will update. This is not currently happening and I've tried all sorts of client and server side code without success. Is there a way to programatically do this in the ajaxRequest or Rebind?

Rob
Nikolay Rusev
Telerik team
 answered on 27 Jun 2008
2 answers
110 views
Hi, I am currently trying to format a simple autogenerated EditForm that places all of the editable Fields under it's apropriate column, all in a single row. In order to do that, I'm using the ColumnNumber Property of the <EditFormSettings> that I set to the number of column that I have in the grid then I set the order of the columns using the EditFormColumnIndex attribute.

My problem is that I can't find a way to hide the labels that contains header texts causing redundancy from text appearing in both the header and the column and a lot of space usage. Is there any simple way to not show those labels ?

Thank you for any help you can provide.

-Rémi-


Rémi
Top achievements
Rank 1
 answered on 27 Jun 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?