Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
69 views
Hi
please find the attached the Screen capture.
We badly require to reomve blue colour from the image.
please find the attached ment
Vasil
Telerik team
 answered on 19 Jan 2011
1 answer
81 views
I am trying to add a radcombobox to every cell in the calender. but I get this error when I run the project:  
If I add a label as shown in one of your example it works fine but doesnt work with a radcombobox.
Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.
 Protected Sub RadCalendar1_DayRender(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs)
            Dim ddl As New RadComboBox
            ddl.Items.Add(New RadComboBoxItem("", ""))
            ddl.Items.Add(New RadComboBoxItem("H", "H"))
            ddl.Items.Add(New RadComboBoxItem("V", "V"))
            ddl.Items.Add(New RadComboBoxItem("I", "I"))
            ddl.Items.Add(New RadComboBoxItem("T", "T"))
            e.Cell.Controls.Add(ddl)
    End Sub


Heres the calendar source
 <telerik:RadCalendar ID="RadCalendar1" Runat="server" MultiViewColumns="3"
                   SelectedDate="" ViewSelectorText="x" ondayrender="RadCalendar1_DayRender"
                   CssClass="RadCalendarMultiView RadCalendarMultiView_Default">
                   <dayoverstyle cssclass="rcHover" />
                   <fastnavigationstyle cssclass="RadCalendarMonthView RadCalendarMonthView_Default" />
                   <disableddaystyle cssclass="rcDisabled" />
                   <WeekendDayStyle CssClass="rcWeekend" />
                   <viewselectorstyle cssclass="rcViewSel" />
                   <SelectedDayStyle CssClass="rcSelected" />
                   <calendartablestyle cssclass="rcMainTable" />
                   <OtherMonthDayStyle CssClass="rcOtherMonth" />
                   <outofrangedaystyle cssclass="rcOutOfRange" />      
               </telerik:RadCalendar>


Please advice how can I show a rad combo box in there..
Marin
Telerik team
 answered on 19 Jan 2011
3 answers
201 views
Hi,

I'm using the numerictextbox control with autopostback set to true. This results in postsbacks on changes as expected.
However when the value was already 0 and the user then clears that field to an empty string no postback occurs. The other way around, from empty string to 0 does post back.

How can I make sure clearing a 0 value to an empty string still results in a postback?

Thanks,
Frank.
Frank
Top achievements
Rank 1
 answered on 19 Jan 2011
1 answer
394 views
Hi,

In my RadGrid HeaderTemplate one checkBox control is there.My requirement is i need to get this checkBox control id RadGrid_DataBound event.

Note:
I need to get this checkBox control id RadGrid_DataBound event,not in RadGrid_ItemDataBound event.

How can i achieve this requirement.Please help me...

Thanks in advance...
Princy
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
236 views
I have a RadGrid where EditMode="popup" and the contents of the form is created dynamically by RadGrid.

If there is an error when the saves the data I'd like to show a message in the popup form and keep it open.

In the event UpdateCommand, i'm doing my logic.  If I get an error I set e.Canceled  = true and the popup stays open.
I haven't figured out how to add a message (for example a new LiteralControl) to the popup form.
Any ideas on how to do it?

Princy
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
74 views
Hi,

In my RadGrid HeaderTemplate one checkBox control is there.My requirement is i need to get this checkBox control id RadGrid_DataBound event.

How can i achieve this requirement.Please help me...

Thanks in advance...

Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
64 views
Hi Shinu,

 I am using RadCalendar and RadWindow in my app. I am displaying the holidays on my calendar.. when i am clicking on the date radwindow is opening...and immediately closed.. for that i given autopostback="false" in the RadCalendar... After giving that... the holidays is not dispalying on the calendar.. Tell me what is the solution for that..........could you please help me...
Mira
Telerik team
 answered on 19 Jan 2011
7 answers
104 views
Regards,
I have a problem with two RadTreeview, the scenario is:
1) In a WebUserControl, I have a radtreeview.
2) From the WebUserControl, I calling a aspx page is loaded in a RadWindow
3) This page contains another radtreeview
4) Before closing the child window, it runs a function that in turn calls a function of the parent window (as is in the examples of telerik).
5) The function of the parent window receives as argument the Treview RootNode of the child window with all the nodes that were created in the window.
6) The function of the parent window is to be inserted into specific nodes (in the parent window treeview)newly created nodes in the child window.
7) Therefore, from the function of the parent window, I need to use the method 'findNodeByValue' in order to know which node to insert the nodes created from the window.
8) The first time you invoke the function works fine (ie, the window opens, new nodes are created and inserted into the treview of the parent window and then closes the window).
9) But if I try to rerun the procedure immediately (open the window, create and insert nodes in the treeview of the parent window), it throws a javascript to use the method 'findNodeByValue'. The exception code is: '-2146823277' and the error message is: 'Can not execute code from a script Freed. "

It is noteworthy that in shaping the RadWindow is the property 'ReloadOnShow' to True because I require it to recharge the aspx of the window every time you open.

The truth did not find much relevant information about the javascript error and I found not applicable to the scenario that I mentioned.

Also, to clarify that by default, is not doing a recursive search on any node since it is assumed that the child page is refreshed every time you open (and actually does).

The next is the code of javascript function to receive the nodes and insert the nodes in the parent window treeview:

var ArbolPresupuestoConfigurator_ReceiveData = function (nodesConfig) {
    /*
    nodesConfig is a object passed to the function  and the following is the structure of the object
        var nodesConfig = {
        nodes: null,
        level: '',
        idFlota: 0
        }
    where 'nodes' is the object that contains the root node (with child nodes) from the child window.*/


        if (nodesConfig != null) {
            switch (nodesConfig.level) {
                case 'Flota':
                    var nodoFlota = nodesConfig.nodes.get_nodes().getNode(0)
                    if (nodoFlota != null) {
                        var esFlotaPersonalizada = nodoFlota.get_attributes().getAttribute('EsPersonalizada');
                        if (esFlotaPersonalizada == 'True') {
                            var nombreFlota = nodoFlota.get_text();
                        } else {
                            var idFlota = nodoFlota.get_value();
                            //The exception is fired here from the second time the function is called.
                            //treeArbolPresupuesto is the parent window treeview
                            var _currentNodoFlota = treeArbolPresupuesto.findNodeByValue(idFlota)
                            if (_currentNodoFlota != null) {                                
                                if (nodoFlota.get_nodes().get_count() > 0) {
                                    treeArbolPresupuesto.trackChanges();                                    
                                    var nuevaActividad = nodoFlota.get_nodes().getNode(0);                                    
                                    _currentNodoFlota.get_nodes().getNode(0).get_nodes().add(nuevaActividad);
                                    treeArbolPresupuesto.commitChanges();
                                }
                            }
                        }
                    }
                    break;
                case 'Actividad':
                    break;
                case 'Area':
                    break;
                case 'Sistema':
                    break;
                case 'SubSistema':
                    break;
                case 'Material':
                    break;
            }
        }
}
and the code caller function from child window is:

var wizardToolbar_HandleButtonClick = function (sender, eventArgs) {
    var button = eventArgs.get_item();
    var commandName = button.get_commandName();

    switch (commandName) {
        case 'SaveAll':
            //RootNode is the root node of the treeview in child window
            var rootNode = treeConfig.findNodeByValue('-100');
            nodesConfig.nodes = rootNode;
            GetRadWindow().BrowserWindow.ArbolPresupuestoConfigurator_ReceiveData(nodesConfig);
            GetRadWindow().close();
            break;
        case 'Cancel':
            //TODO: Pendiente implementar.
            GetRadWindow().close();
            break;
        case 'Undo':
            window.location.reload();
            break;
        case 'Help':
            //TODO: Pendiente implementar.
            break;
    }
}
Actually I am very upset with this problem since I have not found a solution and I promptly deliver development.

I appreciate any help you can provide.

Regards,

Camilo Bernal
Nikolay Tsenkov
Telerik team
 answered on 19 Jan 2011
7 answers
698 views
Hi,

I am using Nested grid in my app. i have three columns in my grid.

Three column like plan name(Label), max amount(label) and user enter amount (Text box)

all are using Itemtemplate. i want to avoid user enter amount should not greater then max amount. if user enter amount greater then max amount means alert message should be display like  (Plan name || cann't accept more then || max amount) onbluer time.

please anyone help me how to get entering text box row value in onbluer time.

Please help,
I have also attached image.


Thanks in Advance,
Dhamu,
Dhamodharan
Top achievements
Rank 1
 answered on 19 Jan 2011
1 answer
130 views
How to restrict a rad window in content page within a panel?
Code:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"  runat="server">
    
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" >
        <Windows>
            <telerik:RadWindow runat="server" Behavior="Default" InitialBehavior="None" VisibleOnPageLoad="True" ID="RadWindow1">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <asp:Panel ID="Panel1" BorderStyle="Dotted" runat="server" Height="1000px" Width="100%">
    </asp:Panel>
    
</asp:Content>

Princy
Top achievements
Rank 2
 answered on 19 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?