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
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();
<telerik:RadCalendar ID="cldDates" runat="server" AutoPostBack="true" OnDayRender="rCalander_Render" ShowRowHeaders="false" ShowOtherMonthsDays="false" MultiViewRows="3" Skin="Simple"> </telerik:RadCalendar>
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; } }
