Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
403 views

Dear users,

 

 

I need to know the last version of Telerik UI that i can use with .NET 3.5 , currently i'm using 2012.1.411.35.

 

Thank you in advance,

Cordially

Rumen
Telerik team
 answered on 05 Sep 2019
12 answers
2.5K+ views
(Q2 2009 version)
Hi, i'm triying to export to excel from my radgrid from buttons on <commandItemTemplate>  tags like this

<MasterTableView CommandItemDisplay="Top" CellSpacing="0" ShowGroupFooter="true" AllowMultiColumnSorting="true" ShowFooter="true" DataKeyNames="NombreTipoCuenta" >                                                                                     
                                        <CommandItemTemplate> 
                                            <asp:ImageButton runat="server" ID="btnExcelExport" ImageUrl="~/images/page_excel.png" OnClick="btnExcelExport_Click" AlternateText="Excel" ToolTip="Excel" />  
 
                                                                                                                                
                                        </CommandItemTemplate> 

but when i click on my button, commanditem hides, and doesn`t work , when i copy this outside the grid it works

<asp:ImageButton runat="server" ID="btnExcelExport" OnClick="btnExcel_Click" ImageUrl="~/images/page_excel.png"  AlternateText="Excel" />  
                                 <telerik:RadGrid   
                                            AutoGenerateColumns="False"  
                                            ID="tk_Grid"  
                                            AllowPaging="True"  
                                            PageSize="20"  
                                            runat="server"  
                                            GridLines="None" 
                                            ShowFooter="false"  
                                            ShowGroupPanel="false" 
                                            style="margin-top: 0px"  
                                            BorderStyle="None"                                              
                                            CssClass="Grid" onitemdatabound="tk_Grid_ItemDataBound" Skin="Default" 
                                            >                                                                      

this is the code behind for both mehods
 protected void btnExcelExport_Click(object sender, ImageClickEventArgs e) 
    { 
 
        tk_Grid.ExportSettings.ExportOnlyData = true; 
        tk_Grid.ExportSettings.IgnorePaging = true; 
        tk_Grid.ExportSettings.OpenInNewWindow = false; 
        tk_Grid.MasterTableView.ExportToExcel(); 
    } 

thanks, Gino.




Kalai
Top achievements
Rank 1
 answered on 05 Sep 2019
1 answer
166 views

Hi,

I have been trying to use programmatic binding based on the following demo https://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/programmatic/defaultcs.aspx but have been having a problem in getting the key value back into the asp.net code behind.

 

The code is (effectively) the same as the example except I am binding to an entity that has a Guid as a key rather than the EmployeeId in the example and I have added a "delete" button using the following

          <telerik:GridButtonColumn UniqueName="DeleteButtonColumn" ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure?" ConfirmDialogType="Classic" ConfirmTitle="Are you sure?" />

I have set up the DataKeyNames and ClientDataKeyNames in the MasterTableView to be DataKeyNames="GUID" and ClientDataKeyNames="GUID"

In the code behind I have added an ItemCommand event that gets called, however

(GridDataItem)e.Item.GetDataKeyValue("GUID") is blank

(GridDataItem)e.Item.KeyValues contains "{GUID:""""}"

 

Can I use programmatic binding method with a GridButtonColumn with type ImageButton in this way?

Attila Antal
Telerik team
 answered on 04 Sep 2019
2 answers
427 views

Hi Telerik Team,

 

Our company is working on upgrade application to cloud environment. We are using RadAsyncUpload control on teleirk 2014.2.724.40 version and found  an issue with TemporaryFolder. Can we customized how to read / write files in TemporaryFolder ?

 

Thanks in advance,

Lan

lan luo
Top achievements
Rank 1
Iron
 answered on 04 Sep 2019
13 answers
468 views
Hi there,

"The RadToolTip's designed behavior is to show always in the visible browser area. Therefore, when it should exceed the screen bounds it recalculates its coordinates and reposition."

The above statement is not always true, please see the attached screenshot. When the tooltipmanager showing up, 80% of the time it does the reposition, but sometimes not, the bottom part of the tooltipmanager is hidden from the bottom of the screen, i need to scroll down to see the entire tooltip.

Any suggestions?

Thanks,
Meng
Rumen
Telerik team
 answered on 04 Sep 2019
5 answers
269 views
Hello, I have a missing form label while running WAVES tool on telerik:RadDatePicker control.  I added DateInput-Label="hello" and it's clear the error but I do not want to see "hello" label.  I tried to add a class visuallyhidden but it's not working.  Is there any other way? Thank you.

<telerik:RadDatePicker ID="txtPlanEffectiveDate" runat="server" DateInput-DateFormat="MM/dd/yyyy"
Calendar-EnableAriaSupport="true" Calendar-EnableKeyboardNavigation="true">
</telerik:RadDatePicker>
Rumen
Telerik team
 answered on 03 Sep 2019
1 answer
246 views

When resizing large images using the imageEditor Resize tool, the width and height being reported in the UI is cropped at 3 characters.  So when a large image (eg.  1280x1024) is being resized, the user can get confused.  

To repeat this, just visit the online demo: https://demos.telerik.com/aspnet-ajax/imageeditor/examples/resize/defaultcs.aspx

and choose 1280x1024 in the Preset Size drop-down.  You'll see that the width and height being reported is '128' and '102' respectively (the ending zeros in both numbers are not visible to the user).  

Vessy
Telerik team
 answered on 02 Sep 2019
1 answer
187 views

Hello,

I am having an issue with RadEditor and the attribute DialogCssFile. I have previously posted this on stackoverflow, but have not yet got a reply. The basic question is

I have a Telerik RadEditor (2017.3.913.45) control with custom/unembedded skin (created using the themebuilder on telerik), and when I enter a value for the DialogsCssFile attribute, the markup of the page changes, meaning that my custom skin is not applied to the editor anymore.

Why is this a problem? Well the css inside the dialog for Find/replace for example didn't display correct, and having done some research, I needed to do some @imports into a customDialog.css file and drop that into the DialogsCssFile attribute.
As soon as I do this, the generated markup in the page for RadEditor changes from

Radeditor RadEditor_MyCustomSkin reWrapper

to

Radeditor MyCustomSkin reWrapper

meaning that my radeditor Skin is not applied to the editor, If I remove the DialogCssFile then the editor skin loads correctly, but the dialogs look wrong. In the Page source, the Window is a div within the page, and not an iFrame

Am I doing something wrong here?

 

For more detail, see my question on Stack Overflow:

https://stackoverflow.com/questions/48497461/telerik-radeditor-css-dialog-classes-overwriting-main-skin

 

Rumen
Telerik team
 answered on 02 Sep 2019
5 answers
223 views
The stripped down version of our scenario is this:

We have two buttons behind one ajax panel.  When clicked, the first button needs to show one loading panel, and then second button needs to show a different loading panel when it is clicked.  We cannot place these items into separate ajax panels, they need to stay within the same panel (one button updates some properties on the other button).  Is there any way to change which loading panel gets triggered based on which button was clicked?
Attila Antal
Telerik team
 answered on 02 Sep 2019
1 answer
626 views

I have a radgrid storing key data from a SQL stored procedure. My grid is as follows:

      <telerik:RadGrid ID="keyGrid" runat="server" DataSourceID="Keys" AutoGenerateEditColumn="True">
            <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
                <MasterTableView AutoGenerateColumns="False" DataSourceID="Keys">
                    <Columns>
                        <telerik:GridBoundColumn DataField="SerialNumber" DataType="System.Int32" FilterControlAltText="Filter SerialNumber column" HeaderText="SerialNumber" SortExpression="SerialNumber" UniqueName="SerialNumber" ReadOnly="True"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Type" FilterControlAltText="Filter Type column" HeaderText="Type" SortExpression="Type" UniqueName="Type" ReadOnly="True"></telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn DataField="Status" FilterControlAltText="Filter Status column" HeaderText="Status" SortExpression="Status" UniqueName="Status">
                            <EditItemTemplate>
                                <asp:DropDownList ID="DropDownList1" runat="server">
                                    <asp:ListItem>Assigned</asp:ListItem>
                                    <asp:ListItem>Lost</asp:ListItem>
                                    <asp:ListItem>Lost and Reassigned</asp:ListItem>
                                    <asp:ListItem>Returned</asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="StatusLabel" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="ApprovedBy" FilterControlAltText="Filter ApprovedBy column" HeaderText="ApprovedBy" SortExpression="ApprovedBy" UniqueName="ApprovedBy" ReadOnly="True"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DateTime" FilterControlAltText="Filter DateTime column" HeaderText="DateTime" SortExpression="DateTime" UniqueName="DateTime" DataType="System.DateTime" ReadOnly="True"></telerik:GridBoundColumn>
                          </Columns>
        </MasterTableView>
           </telerik:RadGrid>

 

I have set up the update command through the data source configuration wizard, same as how I set up my data source for the grid itself. Code follows:

            <asp:SqlDataSource ID="Keys" runat="server" ConnectionString="<%$ ConnectionStrings:KeyTracking.My.MySettings.dbKeyTracking %>" SelectCommand="sp_Show_keys" SelectCommandType="StoredProcedure" UpdateCommand="sp_Update_key" UpdateCommandType="StoredProcedure">
             
                
                <SelectParameters>
                    <asp:ControlParameter ControlID="employeeCB" Name="empID" PropertyName="SelectedValue" Type="Int32" />
                </SelectParameters>
                <UpdateParameters>
                    <asp:Parameter Name="empNo" Type="Int32" />
                    <asp:Parameter Name="status" Type="String" />
                </UpdateParameters>
            </asp:SqlDataSource>

 

When I hit edit in my grid column, it pops up as it should, only editing Key Status. That is the only thing that will need updating. I can select a new value in the drop box that populates, hit save, and it close. The problem is, it does not refresh my radgrid to show the update. I am using an update procedure to perfom the update to the database, as follows:

CREATE proc [dbo].[sp_Update_key]
(@empNo as Int,
@status as varchar (50),
@SN as Int,
@type as varchar (50),
@approved as varchar (50),
@datetime as datetime
)

as

begin

update dbo.Keys
set Status=@status

where EmpID=@empNo
end 
GO

 

Where am I going wrong here?

I am still new and learning, so I can't quite figure out where things aren't firing correctly. 

 

Eyup
Telerik team
 answered on 02 Sep 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?