Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
316 views

Hi,

I am quite new to the usage of telerik controls .I have encountered some  issues  while using the telerik radbarcode control.

I had tried to display a vertical barcode on the page by placing the radbarcode control in DIV  and then rotating the div by applying the various transforms and filter/-ms-filter(for IE browser).

This worked fine with all the other browsers except IE8,IE7( though I applied the required filter/-ms-filter). Can you please help me out with this.

<script type="text/javascript">

window.onload = function () {

if ($.browser.msie && parseInt($.browser.version, 10) == 8) {

       

            document.getElementById('rotateDiv').style.msfilter = "progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=1, M21=-1, M22=1, SizingMethod='auto expand')";

            document.getElementById('rotateDiv').style.filter = "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"

          

          ;

         }

}

</script>

<body>

<form id="form1" runat="server">

  <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

    <div id="rotateDiv" style=" margin-top:10px;">    Hello

    <telerik:RadBarcode ID="RadBarcode1" runat="server" ShortLinesLengthPercentage="70" ShowChecksum="False"  Type="Code25Interleaved" height="70"   Text="0010129000798200"></telerik:RadBarcode></div>

</form>

</body>

Is there any property which can render the telerik radbarcode vertically???



Thanks,
Deepika

Deepika
Top achievements
Rank 1
 answered on 24 Oct 2013
1 answer
274 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
63 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
125 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
197 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
116 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
521 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
127 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
92 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
70 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?