Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
198 views

Hello,

I am trying to pass two parameters (Red and Blue outlined in attachment) to a radWindow via a Cell double click, which I will then populate a grid. I am able to pass the datakey (Red outlined) value on row double click thanks to this demo, but have had no luck in capturing the Column name to use in the querystring. 

Is there a Cell Double click event that I can use to make this happen or can this be done with Row Double click that captures the cell index I click on? 

The second attachment shows the window opened based on the demo link, but how can I get the querystring URL to show:

Bklg_SupportStatusWIPDetails.aspx?MPC=ABAL1TC7XB00?AREA=DB

where Area is another parameter in my datasource that is looking for the column name. 

Thank you in advance!

 

 
 
   
Peter Milchev
Telerik team
 answered on 24 Apr 2017
1 answer
55 views

To run a vb.net 2010 web form application, I have previously used Telerik ASP.NET UI ASO.NET_AJAX_2016 Dev.msi download files so the application would run successfully.
In the past I have found out that if I do not have the current Telerik tool installed, the application had unpredictable results. Basically when the .net application ran on the test application server, I got errors when I accessed the Telerik tool contained within the .net application. Is this still the same issue? Can I continue to use the version of the Telerik tool the application is accessing currently ? If so, can you tell me how long I can continue to use the same version of the Telerik tool?

If not, can you tell me what version of the Telerik tool I need to install?
**I am asking this question since I do not know if my latest install of the Telerik ASP.NET UI ASO.NET_AJAX_2017_1_228_Dev.msi installed correctly.

Marin Bratanov
Telerik team
 answered on 24 Apr 2017
3 answers
435 views
Hi,

In my radGrid i am placing CheckBox on both the ItemTemplate,HeaderTemplate.My requirement is that if i select checkbox in HeaderTemplate then all the chackBoxes in ItemTemplate  should be selected.If i de-select checkBox in HeaderTemplate then all the checkBoxes in ItemTemplate should be de-selected.

How can i achieve this requirement.Please help me...

Thanks in advance...
Abdul
Top achievements
Rank 1
 answered on 24 Apr 2017
4 answers
189 views
We have a user using Safari 3.1 (on Mac OS X 10.4) who reports that when he clicks on the RadComboBox nothing happens.  The combobox doesn't drop down as it should.  Are there any known issues with RadComboBox and Mac Safari?  I am running the latest version of Prometheus on the website.  Here is the RadComboBox in my aspx page:

<

telerik:RadComboBox ID="rcbProcessGroup" DataSourceID="dsGetProcessGroups" runat="server" Skin="WebBlue" AppendDataBoundItems="true" Font-Size="12px" AutoPostBack="true" DataTextField="ProcGroupName" DataValueField="PgrpID" Width="196px">
<Items>
<telerik:RadComboBoxItem runat="server" Text="All Processes" Value="0" />
</Items>
</telerik:RadComboBox>

Jason
Top achievements
Rank 1
 answered on 24 Apr 2017
2 answers
415 views
Hi 

I want to add validation for Radcombobox which contains checkboxes for multiple selection. The issue is the custom validation handler is getting fired on page load. I want to get if fired every time when the user clicks on submit.

Please find the code below ;

<telerik:RadComboBox ID="ddlAcc"  runat="server" DataValueField="Value" DataTextField="Text" Width="270" AllowCustomText="true" ExpandDirection="Up"   AutoPostBack="true" Height="150" CausesValidation="true" HighlightTemplatedItems="true" OnItemDataBound="ddlAcc_ItemDataBound" OnSelectedIndexChanged="ddlAcc_SelectedIndexChanged">
                    <HeaderTemplate>
                      <asp:CheckBox runat="server"  ID="SelectAll" />
                      <asp:Label runat="server" ID="hdrLabel" Font-Bold="false" AssociatedControlID="SelectAll">Select All</asp:Label>
                  </HeaderTemplate>
                  <ItemTemplate>
                      <div onclick="StopPropagation(event)">
                          <asp:CheckBox runat="server" ID="chk1" />
                          <asp:Label runat="server" ID="label1" Font-Bold="false" Font-Size="Smaller" AssociatedControlID="chk1"><%# DataBinder.Eval(Container, "Text") %></asp:Label>
                      </div>
                  </ItemTemplate>
              </telerik:RadComboBox>   
               <asp:CustomValidator ID="cvAccNos" runat="server" ErrorMessage="<%$ Resources: ErrorMessages, error.missing.accountnumber %>"
                      OnServerValidate="cvAccNos_ServerValidate" ControlToValidate="ddlAcc"
                      Text="<%$ Resources: ErrorMessages, error.validatoricon %>"  EnableClientScript="False" />

In the code behind :

protected void cvAccNos_ServerValidate(object sender, ServerValidateEventArgs args)
       {
           args.IsValid = !string.IsNullOrEmpty(GetCheckBoxValues());
       }

Please help . This is urgent
sharon
Top achievements
Rank 1
 answered on 24 Apr 2017
3 answers
181 views

Hi All

We have a radgrid with has several columns, that when viewed on a mobile device is too wide for the viewport. This is simply because of the number of columns.

We are using Bootstrap and the page is responding correctly.

Before I code it to hide columns on smaller devices, has anyone had this problem before? and what is the fix? Can you get the grid to scale for example?

Andy

 

 

Eyup
Telerik team
 answered on 24 Apr 2017
1 answer
372 views

While I read many posts about this issue, none seem to fit my particular problem.

I have a very simple web form, with a grid, which is not ajaxified, in server side code, I call a complex object that returns a simple list of items as a datatable and set it as datasource for my grid. The grids works and displays all OK, however when I try to export to xlsx (and actually any supported format), nothing happens after calling MasterTableView.ExportToExcel().

I did verified that the grdWarranties items is not empty and that the datasource is not lost. Below substract of the web page and the server side code to execute the export:

Protected Sub btnExport_Click(sender As Object, e As Telerik.Web.UI.ImageButtonClickEventArgs) Handles btnExport.Click
 
        grdWarranties.Page.Response.ClearHeaders()
        grdWarranties.Page.Response.Cache.SetCacheability(HttpCacheability.Private)
 
        grdWarranties.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.Xlsx
        grdWarranties.ExportSettings.IgnorePaging = False
        grdWarranties.ExportSettings.ExportOnlyData = True
        grdWarranties.ExportSettings.OpenInNewWindow = True
        grdWarranties.MasterTableView.ExportToExcel()
 
    End Sub

 

<asp:Panel runat="server">
               <table  class="WarrantyCheckTable" style="margin-top:15px">
                   <tr>
                       <td style="width:15%">
                           <telerik:RadLabel ID="RadLabel1" Text="Type or paste in your Landis+Gyr serial numbers:" runat="server" Font-Size="Small" Font-Italic="True"></telerik:RadLabel>
                           <telerik:RadTextBox ID="txtMSNs" runat="server" TextMode="MultiLine" BorderColor="#7AB800" BorderWidth="1px" Height="93%" Width="100%" Wrap="False" ></telerik:RadTextBox>
                       </td>
                       <td style="width:5%">
                           <telerik:RadImageButton ID="btnGo" runat="server" Text="Go!" Skin="Telerik"></telerik:RadImageButton>
                       </td>
                       <td >                           
                           <telerik:RadGrid ID="grdWarranties" runat="server" AllowSorting="True" AutoGenerateColumns="False" ShowGroupPanel="True" Width="100%" ViewStateMode="Enabled" RenderMode="Lightweight" >
                               <GroupingSettings CollapseAllTooltip="Collapse all groups" />
                               <ExportSettings ExportOnlyData="True" FileName="WarrantyData" OpenInNewWindow="True">
                                   <Excel FileExtension="xlsx" Format="Xlsx" />
                                   <Csv EncloseDataWithQuotes="False" />
                               </ExportSettings>
                               <ClientSettings AllowDragToGroup="True">
                                   <Scrolling AllowScroll="True" ScrollHeight="600px" UseStaticHeaders="True" />
                               </ClientSettings>
                               <MasterTableView>
                                   <Columns>
                                       <telerik:GridBoundColumn DataField="MSN" FilterControlAltText="Filter colMSN column" HeaderText="MSN" UniqueName="colMSN">
                                           <FooterStyle HorizontalAlign="Center" />
                                           <ItemStyle HorizontalAlign="Left" />
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn DataField="CSN" FilterControlAltText="Filter colCSN column" HeaderText="CSN" UniqueName="colCSN">
                                           <FooterStyle HorizontalAlign="Center" />
                                           <ItemStyle HorizontalAlign="Left" />
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn DataField="METERTYPE" FilterControlAltText="Filter colType column" HeaderText="Type" UniqueName="colType">
                                           <FooterStyle HorizontalAlign="Center" />
                                           <ItemStyle HorizontalAlign="Left" />
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn DataField="CATALOG" FilterControlAltText="Filter colCatalog column" HeaderText="Catalog" UniqueName="colCatalog">
                                           <FooterStyle HorizontalAlign="Center" />
                                           <ItemStyle HorizontalAlign="Left" />
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn DataField="SOLDDATE" FilterControlAltText="Filter colSoldDate column" HeaderText="Ship Date" UniqueName="colSoldDate" DataFormatString="{0:MMM dd, yyyy}" DataType="System.DateTime">
                                           <FooterStyle HorizontalAlign="Center" />
                                           <ItemStyle HorizontalAlign="Left" />
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn DataField="WARRANTY" FilterControlAltText="Filter colWarranty column" HeaderText="Warranty Status" UniqueName="colWarranty">
                                           <FooterStyle HorizontalAlign="Center" />
                                           <ItemStyle HorizontalAlign="Left" />
                                       </telerik:GridBoundColumn>
                                   </Columns>
                               </MasterTableView>
                               <FilterMenu RenderMode="Lightweight">
                               </FilterMenu>
                               <HeaderContextMenu RenderMode="Lightweight">
                               </HeaderContextMenu>
                           </telerik:RadGrid>
                            
                       </td>
                   </tr>
               </table>
           </asp:Panel>
Eyup
Telerik team
 answered on 24 Apr 2017
0 answers
1.2K+ views

Hi,

The error appear in Google Chrome, in IE works fine. 

I use RadScheduler and when i move or resize an appointment i get this : [Violation] Forced reflow while executing JavaScript took  "N" ms.

After this error, i can't move or resize that or other appointment, with this error:

"Uncaught TypeError: Cannot read property 'viewPartIndex' of null
    at c.Scheduler.WeekModel._getTimeFromIndex (Telerik.Web.UI.WebResource.axd:8315)
    at c.Scheduler.WeekModel.getTimeSlotFromDomElement (Telerik.Web.UI.WebResource.axd:8310)
    at c.RadScheduler._initializeResizingState (Telerik.Web.UI.WebResource.axd:6567)
    at c.RadScheduler._onResizeGripMouseDown (Telerik.Web.UI.WebResource.axd:6549)
    at Telerik.Web.UI.Scheduler.EventMap._onDomEvent (Telerik.Web.UI.WebResource.axd:5003)
    at HTMLDivElement.<anonymous> (Telerik.Web.UI.WebResource.axd:6)
    at HTMLDivElement.b (Telerik.Web.UI.WebResource.axd:616)"

But... After i resize the browser, all works fine.

ionel
Top achievements
Rank 1
 asked on 23 Apr 2017
6 answers
1.3K+ views
Greetings,

Here is a good example of how to use an Excel spreadsheet as the data source for a RadGrid...

http://www.telerik.com/forums/rad-grid-import-from-excel

Is there a way to modify this example to use a spreadsheet data source that was uploaded with RadAsyncUpload without saving the xlsx to the server first - like a file stream or something?  Any advice or examples would be appreciated.

Thanks!

Matt
Kallie
Top achievements
Rank 1
 answered on 23 Apr 2017
2 answers
156 views
I have a pre-existing set of styles in use for an application I'm building and the RadMaskedTextbox creates a <div /> wrapper around the control, with 
RadInput RadInput_Default

in the class declaration for the div. Is it possible to remove these? They override some of my default styling, so I'd rather they just don't get attached upon render at all if possible. This is for version 2017.1.228.45.

Thanks!

Scott
Top achievements
Rank 1
 answered on 22 Apr 2017
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?