Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
206 views
Radgrid GridTemplateColumn RadNumericTextBox  when enter the number addition operation perform the total Amount show in grid footer without Autopostback client side code..
please help me...
Shinu
Top achievements
Rank 2
 answered on 19 Mar 2014
5 answers
350 views
Hi,
     I Want To Print A Grid Data A4 page on Button Click Event.How Can Do It Client Side Or Server Side.

My Grid Code Is:-

<telerik:RadGrid  ID="gv_UnitWiseCashFlow_Report" runat="server"
                                                AllowFilteringByColumn="True"  AllowSorting="True"
                                                ShowGroupPanel="True" AutoGenerateColumns="False" 
                                                ShowStatusBar="true" onneeddatasource="gv_UnitWiseCashFlow_Report_NeedDataSource"  OnItemCreated="gv_UnitWiseCashFlow_Report_ItemCreated"
onexcelexportcellformatting="gv_UnitWiseCashFlow_Report_ExcelExportCellFormatting" >
                                                <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
                                                        <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm"
                                                                    BorderStyle="Medium" BorderColor="#666666" PaperSize="A4" >
                                                    </Pdf>                                                       
                                                </ExportSettings>
                                                    <ClientSettings AllowDragToGroup="True" >
                                                        <Scrolling AllowScroll="true" UseStaticHeaders="true"  SaveScrollPosition="true"/>                                                                                   
                                                    </ClientSettings>
                                                    <MasterTableView  AutoGenerateColumns="false" >
                                                    <FilterItemStyle HorizontalAlign="Left" />
                                                        <NoRecordsTemplate>
                                                            <asp:Label ID="lbl_no_record" runat="server" Text="No record exist"></asp:Label>
                                                        </NoRecordsTemplate>
                                                        <Columns>          
                                                                <telerik:GridBoundColumn  DataField="RefNo" DataType="System.String" HeaderText="Unit Ref No" FilterControlAltText="Filter column column" UniqueName="RefNo" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                        
                                                                <telerik:GridBoundColumn  DataField="UnitNo" DataType="System.String" HeaderText="Unit No" FilterControlAltText="Filter column column" UniqueName="UnitNo" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">                                                                                                                                                                                                         
                                                                </telerik:GridBoundColumn>
                                                                 <telerik:GridBoundColumn  DataField="UnitType" DataType="System.String" HeaderText="Unit Type" FilterControlAltText="Filter column column" UniqueName="UnitType" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn  DataField="TenantName" DataType="System.String" HeaderText="Tenant Name" FilterControlAltText="Filter column column" UniqueName="TenantName" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>   
                                                                 <telerik:GridDateTimeColumn DataField="ContractStartDate" HeaderText="Contract Start Date"  FilterControlAltText="Filter column column" UniqueName="ContractStartDate" PickerType="DatePicker" FilterDateFormat="dd/MM/yyyy" DataFormatString="{0:dd/MM/yyyy}"   ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" ><ItemStyle Width="15%" /> </telerik:GridDateTimeColumn>     
                                                                <telerik:GridDateTimeColumn DataField="ContractEndDate" HeaderText="Contract End Date" FilterControlAltText="Filter column column" UniqueName="ContractEndDate" PickerType="DatePicker" FilterDateFormat="dd/MM/yyyy" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"><ItemStyle Width="15%" /></telerik:GridDateTimeColumn>                                                                                                                                                              
                                                                <telerik:GridBoundColumn  DataField="Rent" DataType="System.Decimal" HeaderText="Rent" FilterControlAltText="Filter column column" UniqueName="Rent" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                                                                          
                                                                <telerik:GridBoundColumn  DataField="Jan" DataType="System.Decimal" HeaderText="Jan" FilterControlAltText="Filter column column" UniqueName="Jan" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                              
                                                                <telerik:GridBoundColumn  DataField="Feb" DataType="System.Decimal" HeaderText="Feb" FilterControlAltText="Filter column column" UniqueName="Feb" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>
                                                                 <telerik:GridBoundColumn  DataField="March" DataType="System.Decimal" HeaderText="March" FilterControlAltText="Filter column column" UniqueName="March" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                              
                                                                <telerik:GridBoundColumn  DataField="April" DataType="System.Decimal" HeaderText="April" FilterControlAltText="Filter column column" UniqueName="April" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>
                                                                 <telerik:GridBoundColumn  DataField="May" DataType="System.Decimal" HeaderText="May" FilterControlAltText="Filter column column" UniqueName="May" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                              
                                                                <telerik:GridBoundColumn  DataField="Jun" DataType="System.Decimal" HeaderText="Jun" FilterControlAltText="Filter column column" UniqueName="Jun" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>
                                                                 <telerik:GridBoundColumn  DataField="July" DataType="System.Decimal" HeaderText="July" FilterControlAltText="Filter column column" UniqueName="July" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                              
                                                                <telerik:GridBoundColumn  DataField="Aug" DataType="System.Decimal" HeaderText="Aug" FilterControlAltText="Filter column column" UniqueName="Aug" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>   
                                                                  <telerik:GridBoundColumn  DataField="Sep" DataType="System.Decimal" HeaderText="Sep" FilterControlAltText="Filter column column" UniqueName="Sep" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                              
                                                                <telerik:GridBoundColumn  DataField="Oct" DataType="System.Decimal" HeaderText="Oct" FilterControlAltText="Filter column column" UniqueName="Oct" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>
                                                                 <telerik:GridBoundColumn  DataField="Nov" DataType="System.Decimal" HeaderText="Nov" FilterControlAltText="Filter column column" UniqueName="Nov" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>                                                              
                                                                <telerik:GridBoundColumn  DataField="Dec" DataType="System.Decimal" HeaderText="Dec" FilterControlAltText="Filter column column" UniqueName="Dec" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>  
                                                                  <telerik:GridBoundColumn  DataField="Total" DataType="System.Decimal" HeaderText="Total" FilterControlAltText="Filter column column" UniqueName="Total" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" >                                                                                                                                 
                                                                </telerik:GridBoundColumn>       
                                                                                                                               
                                                    </Columns>                                                   
                                                    </MasterTableView>                                                                                                        
                                            </telerik:RadGrid>
Please Provide Help Full Solution.

Thanks,
Rahul
Princy
Top achievements
Rank 2
 answered on 19 Mar 2014
3 answers
131 views
Hi,

I  am opening a contact form in a LightBox similar to the template demo. The form is a usercontrol inside the LightBox Item Template.
When the form is submitted - how can I keep the LightBox open so I can display a 'sent' message to the user? At present submitting the form closes the LightBox.

Cheers,

Jack 
Princy
Top achievements
Rank 2
 answered on 19 Mar 2014
1 answer
147 views
I'll try to get the week number from RadDatePicker SelectedDate

<telerik:RadDatePicker ID="rdpDatum" width="0" PopupDirection="BottomRight" Runat="server">
 <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" runat="server" />
 <DateInput style="display:none;" DisplayDateFormat="yyyy-MM-dd" runat="server" />
</telerik:RadDatePicker>

I found examples in the forum threads http://www.telerik.com/forums/radcalendar-weeknumber
But have error, see attached file.
Post is from 2010, tips on how I can get the week number?



Shinu
Top achievements
Rank 2
 answered on 19 Mar 2014
2 answers
122 views
I have modified a copy of the LightBox demo. I have three LightBox controls on the page, each includes an item template with  RadPageView set to a specific ContentUrl value. The actual URLs are identical, except for one parameter, which in this case are "about", "help" and "user".

I am not sufficiently familiar with client-side code, but I am pretty sure that the click events for the RadButtons could be modified to pass a parameter so that the URL parameter on RadPageView could be set, thus eliminating the need for three distinct LightBoxes. (because I might need a dozen more variations)

<script type="text/javascript">
    function OpenAboutLightBox() {
        var lightBox = $find('<%= AboutLightBox.ClientID %>');
        lightBox.show();
    }
    function OpenHelpLightBox() {
        var lightBox = $find('<%= HelpLightBox.ClientID %>');
        lightBox.show();
    }
 
    function OpenUserLightBox() {
        var lightBox = $find('<%= UserLightBox.ClientID%>');
                    lightBox.show();
                }
 
</script>

<telerik:RadLightBox ID="AboutLightBox" runat="server" Width="900px" Modal="True" PreserveCurrentItemTemplates="False" ShowLoadingPanel="False" ViewStateMode="Disabled" Height="460px">
    <ClientSettings>
        <AnimationSettings NextAnimation="CollapsingHorizontalStripes" PrevAnimation="VerticalResize" ShowAnimation="Resize">
        </AnimationSettings>
    </ClientSettings>
        <Items>
            <telerik:RadLightBoxItem>
                <DescriptionTemplate>
                    <div style="visibility:hidden;"></div>
                </DescriptionTemplate>
                <ItemTemplate>
                    <div style="padding: 0px; margin: 0px; overflow: hidden; position: relative;">
                        <telerik:RadMultiPage ID="RadMultiPage_About" runat="server" SelectedIndex="0">
                        <telerik:RadPageView ID="RadPageView_About" runat="server" ContentUrl="minimal_about.aspx"  Height="460" Width="900">RadPageView</telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </div>
                </ItemTemplate>
            </telerik:RadLightBoxItem>
        </Items>
</telerik:RadLightBox>
Tomica
Top achievements
Rank 2
 answered on 19 Mar 2014
2 answers
77 views
With reference to the enclosed screen-shot, I have highlighted the gray "border" area on a pane bar which uses the standard Metro skin.

I do not know what this "part" is called, it is not the border that is settable in properties or CSS.

I would like to change its color to match the border on the text box to the right.


Tomica
Top achievements
Rank 2
 answered on 19 Mar 2014
1 answer
93 views
I am using the default advanced form template option in Visual Studio 2012.  I see it save to XML, but I need it to save to SQL "appointment" table.  As well as add a new textbox "CarrierText" and RadComboBox "ddlVendors" that lists values from SQL table.   I got this to work "showing  the new controls" except how do I access the values in my new textbox and RadComboxbox when the user hits "save" in the .aspx page RadScheduler1_AppointmentInsert.  NOTE: the textbox is directly added to the form advancedform.ascx and the RadComboBox is added to the ResourceControl.ascx

 tried getting the Carrier text below but no object found.
Private Sub RadScheduler1_FormCreated(sender As Object, e As SchedulerFormCreatedEventArgs) Handles RadScheduler1.FormCreated

If e.Container.Mode = SchedulerFormMode.AdvancedEdit OrElse e.Container.Mode = SchedulerFormMode.AdvancedInsert Then
_carrier = DirectCast(e.Container.FindControl("CarrierText"), RadTextBox)

End If

End Sub

doug
Top achievements
Rank 2
 answered on 18 Mar 2014
6 answers
273 views
I have used the  GridClientSelectColumn in the RadGrid, The checkbox is not visible in the Grid both IE and Firefox,
I have verified the generated HTML code, The checkbox is there but That is not visible,

My code is given below....

 <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"  width="80%" height="275" AllowMultiRowSelection="true" >
                                <MasterTableView width="98%" NoMasterRecordsText="No records to display">
                                    <headerstyle HorizontalAlign="left" VerticalAlign="Middle" ></headerstyle>
                                    <alternatingitemstyle HorizontalAlign="Left"></alternatingitemstyle>
                                    <itemstyle HorizontalAlign="Left"></itemstyle>
                                     <columns>
                                         <telerik:GridTemplateColumn UniqueName="SrlNo" AllowFiltering="False" HeaderStyle-Width="30" ItemStyle-Width="30" HeaderText="SNo." >
                                              <itemtemplate>
                                                <asp:Label ID="lblSrlNo"  runat="server"  />&nbsp;&nbsp;                                                
                                              </itemtemplate>                                                                             
                                         </telerik:GridTemplateColumn>      
                                           <telerik:GridClientSelectColumn/>                                                                                                                                                               
                                          <telerik:GridTemplateColumn Visible="true" HeaderText ="Description">
                                              <ItemTemplate>
                                                <asp:HiddenField ID="hidTableid" runat="server" value='<%# Eval("Tableid") %>' />
                                                 <asp:Label ID="LblTblDesc" runat="server" Text=""><%#IIf(Eval("Description") = "", Eval("Name"), Eval("Description"))%></asp:Label>
                                              </ItemTemplate>
                                          </telerik:GridTemplateColumn>
                                         <telerik:GridBoundColumn DataField="Name" HeaderText="Table Name" UniqueName="TableName" Visible="false" HeaderStyle-HorizontalAlign ="left" ItemStyle-HorizontalAlign ="left" HeaderStyle-Width="200" ItemStyle-Width="200"></telerik:GridBoundColumn>                                         
                                         <telerik:GridBoundColumn DataField="TableID" UniqueName="TableID" Display ="false"></telerik:GridBoundColumn>                                       
                                    </columns>
                                  </MasterTableView>
                                   <ClientSettings EnableRowHoverStyle="true" Selecting-EnableDragToSelectRows="true">                                                               
                                        <Selecting AllowRowSelect="true" />                                                                   
                                    </ClientSettings>
                                    <SortingSettings  SortToolTip="Click here to sort"></SortingSettings>
                             </telerik:RadGrid>
Kiran
Top achievements
Rank 1
 answered on 18 Mar 2014
0 answers
145 views
I added a Loading Panel to a screen and it works find when running from the dev environment in vs2008 but when I move the changes to our test server I get
​Unknown server tag 'telerik:RadAjaxLoadinPanel' on the screen load.  The loading panel is being used on other pages with out issue.  Not sure what else needs to be moved to the test environment to fix this issue.
Eric Klein
Top achievements
Rank 1
 asked on 18 Mar 2014
4 answers
450 views
Hi and thanks in advance.

I created a custom control that uses a rad slider with item type set to item. As follows:

<td>
 <telerik:RadSlider ItemType="Item" SmallChange="1" TrackPosition="TopLeft"
  AutoPostBack="false" ShowDecreaseHandle="false" Width="490" LargeChange="0"
  OnClientValueChanged="rwc_Input_Slider_ValueChanged" OnValueChanged="radSlider1_ValueChanged"
  ShowIncreaseHandle="false" MinimumValue="0" MaximumValue="36" runat="server" ID="radSlider1">
 </telerik:RadSlider>
</td>

I am dynamically adding ticks on the server side. Here is the code:

private void CreateSliderTicks(RadSlider radSlider)
{
            int minuteTicks = 6;
            int hourTicks = 24;
            int dayTicks = 8;
 
            // add minute ticks to the graph
            for (int i = 0; i < minuteTicks; i++)
            {
                RadSliderItem minuteItem = new RadSliderItem();
                minuteItem.Value = (i * 10).ToString() + " " + Resources.Units.Minutes;
                //string testValue = minuteItem.Value.ToString();
                //minuteItem.Text = minuteItem.Value.ToString() + " minutes";
                radSlider.Items.Add(minuteItem);   
            }
 
            // add hour ticks to the graph
            for (int i = 1; i < hourTicks; i++)
            {
                RadSliderItem hourItem = new RadSliderItem();
                string units = "";//Resources.Units.Hours;
                if (i > 1)
                {
                    units = Resources.Units.Hours;
                }
                else
                {
                    units = Resources.Units.Hour;
                }
                hourItem.Value = i.ToString() + " " + units;
                //string testValue = hourItem.Value.ToString();
             
                radSlider.Items.Add(hourItem);
            }
 
            // add day ticks to the graph
            for (int i = 1; i < dayTicks; i++)
            {
                RadSliderItem dayItem = new RadSliderItem();
                string units = "";
                if (i > 1)
                {
                    units = Resources.Units.Days;
                }
                else
                {
                    units = Resources.Units.Day;
                }
                dayItem.Value = i.ToString() + " " + units;
                //string testValue = dayItem.Value.ToString();
               
                radSlider.Items.Add(dayItem);
            }
 }

The problem I am having is that the tick marks are showing once the radslider is rendered on the page. How can I hide these tick marks from showing? My understanding was that when you create an item type slider the tick marks go away, but this is not the case. Any help would be appreciated. I have included a screenshot for reference.
Thanks,
-Justin
Bozhidar
Telerik team
 answered on 18 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?