Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
246 views

In RadTreeView control if we click on parent node with out expanding its children then in OnClientNodeChecked event its showing children nodes count as 0.

Code

<Rad:RadTreeView ID="tvwTreeDetails" runat="server" Width="400px"  AfterClientCheck="AfterCheckLookup" OnClientNodeChecked="AfterCheck" OnClientNodeClicked="AfterCheck" OnClientNodeClicking="AfterCheck"
                        OnClientNodeChecking="ClientNodeChecking" MultipleSelect="true" CheckBoxes="true" TriStateCheckBoxes="true" ></Rad:RadTreeView>

function AfterCheck(sender, args) {
    var node = args.get_node();

Shinu
Top achievements
Rank 2
 answered on 24 Oct 2013
2 answers
50 views
I have a radcalendar that works fine until I add MultiViewRows="3". Then the OnDayRender event does not fire on page load. OnDayRender fires if  go forward or back, just not the first time it loads. If I change it to MultiViewRows="1" it works fine. How do I get it working  the first time it loads with MultiViewRows="3"? I am using Telerik version 2013.3.1015.35.

This is my control:

<telerik:RadCalendar  ID="cldDates" runat="server" AutoPostBack="true" OnDayRender="rCalander_Render"  ShowRowHeaders="false" ShowOtherMonthsDays="false" MultiViewRows="3" Skin="Simple">
</telerik:RadCalendar>


This is my OnDayRender function:



        List<DateTime> enddates = new List<DateTime>();
        List<DateTime> StartDates = new List<DateTime>();
        public void rCalander_Render(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
        {
 
            var bookingdates2 = from d in DbContext.ihh_Bookings where d.lngHouseID == HouseID && d.dtmEndDate >= new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1) && (d.lngBookingStatusID != 7 && d.lngBookingStatusID != 1 && d.lngBookingStatusID != 10) select d;
 
 
            foreach (ihh_Booking w in bookingdates2)
            {
 
 
                //var bookingdates = from d in DbContext.ihh_HouseBookings_Webs where d.HouseID == HouseID select d;
                //foreach (ihh_HouseBookings_Web w in bookingdates)
                //{
 
                if (e.Day.Date == w.dtmStartDate)
                {
 
                    StartDates.Add(w.dtmStartDate.Value);
                }
                if (e.Day.Date >= w.dtmStartDate && e.Day.Date <= w.dtmEndDate)
                {
                    e.Day.IsSelectable = false;
                    e.Cell.BackColor = System.Drawing.Color.Red;
                    e.Cell.ToolTip = "Booked";
                    cldDates.SpecialDays.Add(e.Day);
 
                }
 
                if (e.Day.Date == w.dtmEndDate)
                {
                    e.Day.IsSelectable = false;
                    e.Cell.BackColor = System.Drawing.Color.FromArgb(Convert.ToInt32("1EA7D8", 16));
                    e.Cell.ToolTip = "Check Out";
                    cldDates.SpecialDays.Add(e.Day);
                    enddates.Add(w.dtmEndDate.Value);
                }
 
 
            }
            foreach (DateTime t in StartDates)
            {
 
                if (enddates.Contains(t) && e.Day.Date == t)
                {
                    e.Day.IsSelectable = false;
                    e.Cell.BackColor = System.Drawing.Color.Purple;
                    e.Cell.ToolTip = "Check out/In";
                    cldDates.SpecialDays.Add(e.Day);
                }
 
            }
            DateTime dtStartDate = (cldDates.CalendarView as Telerik.Web.UI.Calendar.View.MonthView).MonthStartDate;
            DateTime dtEndDate = (cldDates.CalendarView as Telerik.Web.UI.Calendar.View.MonthView).MonthEndDate;
 
            if ((e.Day.Date < dtStartDate || e.Day.Date > dtEndDate))
            {
                // e.Cell.Visible = false;
                e.Cell.BackColor = System.Drawing.Color.White;
 
            }

        }
Michael
Top achievements
Rank 1
 answered on 24 Oct 2013
1 answer
103 views
Hi,

We have a code where we upload files using AsyncUpload control and as soon as the file is uploaded that will be added to the Radgrid control. Max of 5 uploads in allowed.
 This functionality is working fine in IE10,Chrome and firefox. But for IE8, after a file is uploaded it is added to the grid and if again a new file is uploaded, the previous file is updated with the new file in the grid instead of adding a new row. and when we click on send the file is not at all saved.A dummy click is called after the file upload to add the file to the grid. Can you please help us in this issue

thanks in Advance

Regards,
Mary
Mary Presciba
Top achievements
Rank 1
 answered on 24 Oct 2013
1 answer
166 views
Hi all,

i need to print multiple bar codes by using telerik report tool.. when i click the print button the all bar-code label need to populated on report viewer and need to print from there itself.. i don't find any supporting links in telerik reporting module.. so please help me to achieve my goal... 
its urgent requirement for me..

Thanks and Regards,

Prassin
Arron
Top achievements
Rank 1
 answered on 24 Oct 2013
1 answer
99 views
Hi,
I have a radtab on my page with some child menu options.
The problem I am having is that when the child menus are displayed.
There is a space showing at the corner of the main rad tab that contains the child menu.
Also, I would like to know if its possible to change the orientation on the child menus.

Thanks.
Princy
Top achievements
Rank 2
 answered on 24 Oct 2013
2 answers
473 views
Hi,

Please could someone advise as to how to access the value of radiobutton selected.

This is the radiobuttonlist:

<telerik:GridTemplateColumn UniqueName="ShotEastWest" ColumnEditorID="ShotEastWest" HeaderText="Shot East/West" Visible="false">
                           <ItemTemplate>
                               <%# Eval("ShotEW")%>
                           </ItemTemplate>
                           <EditItemTemplate>
                               <asp:RadioButtonList ID="rdShotEastWest" runat="server" RepeatDirection="Horizontal">
                                   <asp:ListItem Text="East" Value="1"></asp:ListItem>
                                   <asp:ListItem Text="West" Value="2"></asp:ListItem>
                               </asp:RadioButtonList>
                           </EditItemTemplate>
                       </telerik:GridTemplateColumn>

I think the VB.NET I am using is wrong:

Dim radioShotEastWest As RadioButtonList = TryCast(edit("ShotEastWest").Controls(0), RadioButtonList)
Dim ShotEastWest As Integer = radioShotEastWest.SelectedValue


Thanks, Ida
Ida
Top achievements
Rank 1
 answered on 24 Oct 2013
1 answer
96 views
Can the RadCaptcha work in the InsertItemTemplate of a ListView?

When I try to insert a record the ErrorMessage is displayed.  I'm guessing I'll have to move the fields to insert a new record out of the ListView, but I thought I'd check to see if there's a workaround.

Thanks!
Marin Bratanov
Telerik team
 answered on 24 Oct 2013
1 answer
68 views
Hi, i have a radgrid binding with needdatasoure and i have a filter on one of my column.
 
I would like when the filter return "No Record":
 1. insert a new record in my database (that responds to the request)
 2. rebind the datagrid
 3. reapply the filter (programmatically in codebehind).
 4. Select the good row automatically by programmatically
 5. edit the row automatically (not push the button edit)

What is the best way or if you have a sample..

thank for your great help..

Sylvain
Eyup
Telerik team
 answered on 24 Oct 2013
1 answer
57 views
My application is currently using Themes so that each client using the application can have its own look and feel.  This involves styling many of the telerik controls manually and not using the telerik skins.  However, some of the telerik controls will not be modified and will be using a skin and not all skinned controls will be using the same skin.

My question is, "What is the best way to deal with the styles/skins for the telerik controls keeping in mind that they can be changed for each client?"

I have been using the style builder to customize the controls I need and places that css into a telerik.css and then attaching that style sheet to the page. This method works but I just want some ideas / input on what other people are doing.

Thanks


Shinu
Top achievements
Rank 2
 answered on 24 Oct 2013
1 answer
78 views
Hi telerik team,
I have below code put on radScheduler <AdvancedInsertTemplate> and <AdvancedEditTemplate> inside UpdatePanel.

It base to select resource shows up. Select a resource it shows up works fine. but when mouse over other radcontrols, like mouse over subject textbox(radtextbox),or  save button or RadDateTimePicker,  below radio buttons disappears. I search online not find answers. Please help. Thanks in advance.

The radio buttons as below:
<telerik:RadButton ID="rbroom1" runat="server" ToggleType="Radio" ButtonType="ToggleButton" Text="Room1" GroupName="forReserve" AutoPostBack="false"  Checked="true" />
                                <telerik:RadButton ID="rbroom2" runat="server" ToggleType="Radio" ButtonType="ToggleButton" Text="Room2" GroupName="forReserve" AutoPostBack="false" />
                                <telerik:RadButton ID="rbroom3" runat="server" ToggleType="Radio" ButtonType="ToggleButton" Text="Room3" GroupName="forReserve" AutoPostBack="false" />
Princy
Top achievements
Rank 2
 answered on 24 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?