Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
397 views
Hi,

I tried to export RadGrid to Excel into Biff format. I have a Template Column format like this :

<telerik:GridTemplateColumn UniqueName="Projection3" DataField="Projection3" HeaderText="Projection 3" HeaderStyle-Width="130px" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
    Aggregate="Sum" DataType="System.Decimal" FooterStyle-HorizontalAlign="Right" FooterText=" " FooterAggregateFormatString="{0:### ### ### ##0}">
    <ItemTemplate>
        <%# String.Format("{0:### ### ### ##0;(### ### ### ##0);0}", Eval("Projection3"))%>
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadNumericTextBox ID="rntbProjection3" runat="server" Width="100%" Text='<%# Bind("Projection3")%>' MaxValue="999999999" MinValue="-999999999" CssClass="NumberAlignRight">
            <NumberFormat DecimalDigits="0" />
            <IncrementSettings InterceptArrowKeys="false" />
        </telerik:RadNumericTextBox>
    </EditItemTemplate>
</telerik:GridTemplateColumn>

The SuppressColumnDataFormatStrings=True don't work with template column.

Settings of export grid are :
.ExportSettings.IgnorePaging = True
.ExportSettings.ExportOnlyData = True
.ExportSettings.OpenInNewWindow = True
.ExportSettings.SuppressColumnDataFormatStrings = True
.ExportSettings.HideStructureColumns = False


How can change the export format of this column to {0:0} when i export my RadGrid.

ty




Kostadin
Telerik team
 answered on 24 Oct 2013
1 answer
157 views
Does combobox support item grouping? I want a tree like structure to be created inside the combobox without using the item template.
A sample
Smartphone
  Apple
  Motorola
Laptop
  MacBook
  HP

like this.
 
Shinu
Top achievements
Rank 2
 answered on 24 Oct 2013
1 answer
98 views
Hi ,

I have a rad scheduler appointment issue when i have appointment for two days for eg. 18 and 19 which is one appointment for two days. if i want to edit my appointment i can only change from 18. i cannot click or do anything from 19. Please see the attach image which will make more sense of my problem.

Like in image scheduler2.png if i right click i will see the options for edit or delete but if i right click next day(scheduler3.png) it won't give me my options even they are single appointment.

Thank you
Plamen
Telerik team
 answered on 24 Oct 2013
3 answers
341 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
289 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
70 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
137 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
217 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
124 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
544 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?