Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
208 views
Hi,
    In Asp.net ReportViewer got predefined skins ? like, slik,bootstrap,office 2010 Black, office 2010 Blue or from Theme builder can create custom skins ?.


Thanks
Rumen
Telerik team
 answered on 22 Jan 2020
1 answer
121 views

I have several RadGrids nested within their own ASP.NET UpdatePanels which are within an ASP.NET MultiView. I'm experiencing issues when it comes to exporting the RadGrid to Excel.

 

I know that the control needs to be registered to allow a PostBack, but I want to specifically register the in-built ExportToExcel button. In the ItemCreated event, I was able to identify GridCommandItems and register them as PostBackControls, but this is also registering the "Add New Record" button, causing a PostBack to occur if they click the "Add New Record" button.

 

Is there any way to programmatically identify JUST the "Export to Excel" Command Item?

Chris
Top achievements
Rank 1
 answered on 21 Jan 2020
6 answers
383 views
Scenario / Requirements:

I want to have a grid that looks and behaves almost exactly like excel.  Try to remember this key point.

I want to be able to move around in the grid with my arrow keys (Ignore, I have read the various posts on this)
I want to be able to edit any cell that currently has focus.  No, I don't want to click an Edit button first.  If I am in the cell and hit a key, I am editing the cell.

MOST IMPORTANT:
**After** I edit a cell, I need to do a partial postback to the server, where I will recalculate several other cells(columns) in the datasource bound to this control, using the updated value in the calling cell.  (The caluclations are performed on the server). Then, after the calculations are complete, I want the cell's row to update with the new values in the underlying dataset.   ***AND**, surprisingly, I don't want to lose focus of the control that received it after I updated the first cell.

As far as I know, I have looked at all of the examples on your website, so I think this scenario extends a bit beyond the standard examples.

So, is this possible with RadGrid, and if so, could you give me a few hints of how to do it?
Attila Antal
Telerik team
 answered on 21 Jan 2020
3 answers
200 views

When specific condition met i am giving datasource to combobox and for the first time it binds and item are showing in the combox.. but the problem is when i am trying to bind again with different datasource it get stuck. Item are not showing in combobox.

asp code:

<asp:Label ID="Label1" runat="server" Text="" Visible="false"><img src="../../../Resources/images/dependent16x16(2).png" alt="dependent" /></asp:Label>
                         <telerik:RadToolTip RenderMode="Lightweight" ID="RadToolTip1" runat="server" TargetControlID="Label1" Width="320px"
                          RelativeTo="Element" Position="MiddleRight" HideEvent="ManualClose" EnableRoundedCorners="true" OffsetX="2"
                          EnableShadow="true" ShowEvent="OnMouseOver" >
                            <asp:Literal ID="Literal36" runat="server" Text="Dependents"></asp:Literal>            
                            <telerik:RadComboBox ID="cmbDependent" runat="server" MarkFirstMatch="true" RenderMode="Lightweight" AllowCustomText="false"  Width="220px" EmptyMessage="Select Dependent"
                             OnSelectedIndexChanged="cmbDependent_SelectedIndexChanged" AutoPostBack="true" ZIndex="50001" >
                            </telerik:RadComboBox>
                         </telerik:RadToolTip>

 

C# binding function

private void BindDependents()
        {
            cmbDependent.ClearSelection();
            cmbDependent.DataSource = objMedicalInsuranceRepository.GetDependent(txtStaffNo.Text.Trim());
            cmbDependent.DataValueField = "VALUE";
            cmbDependent.DataTextField = "NAME";
            cmbDependent.DataBind();
        }

 

my query:

public DataTable GetDependent(string pBadgeNo)
        {
            query = "SELECT S_S_N VALUE,INITCAP(FIRST_NAME||' '||IFSAPP.COMPANY_PERSON_API.GET_NAME('990',PERSON_ID))||' - '||RELATIONSHIP_TYPE NAME FROM "+
                    "IFSAPP.EMPLOYEE_DEPENDENT_TAB WHERE PERSON_ID ='" + pBadgeNo + "'";
 
            return objDBHelper.ExecuteDataTable(query);
        }

 

 

please help.. 

Rumen
Telerik team
 answered on 21 Jan 2020
1 answer
92 views

Hello,

I'd like to implement a jQuery "DateRangePicker with Times" found here in a RadGrid EditFormTemplate.

When the following code is outside of the RadGrid, all works as expected: 

<div class="col-md-4 col-md-offset-2 demo">
    <center>
        <input type="text" id="config-demo" class="form-control">
    </center>
</div>
 
<script type="text/javascript">
    $('#config-demo').daterangepicker({
        "timePicker": true,
        "linkedCalendars": false,
        "startDate": "01/11/2020",
        "endDate": "01/17/2020"
    }, function (start, end, label) {
        console.log("New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + ' (predefined range: ' + label + ')");
    });
</script>

 

However, when the code is inserted into the <FormTemplate> blocks, it does not work. Can anyone help with what I might be missing? All the required references (.js, .css) are available to be downloaded as a ZIP on the page linked above.

Alternatively, I'm open to listen to any recommendations on how to achieve a similar result as linked above via Telerik controls.

 

Thanks!

Rumen
Telerik team
 answered on 21 Jan 2020
3 answers
412 views

I have a Visual Studio 2015 web project that uses RadScheduler and RadEditor.

I just downloaded the latest Telerik version (2016.3.1027) and updated the project.

Now when I build the solution, I get the following errors:

Unknown server tag 'dc:TableDesign'.....file: TableWizard.ascx.....Line: 844

Unknown server tag 'Telerik:TableBorder'.....file: TableProperties.ascx.....Line: 362

 

 

Rumen
Telerik team
 answered on 21 Jan 2020
3 answers
211 views

Hello,

I'm really hoping somebody can shed light onto why code that was working in an earlier version of RadGrid no longer works after updating to the latest version of Grid.  This code was working fine before the update.  Now, although it sets the Enables property as expected (and I see this in the console) the change is not rendered on the grid.  Am I doing something wrong?  Or did this functionality actually get broken?  It was a very easy way to disable a row.  I understand there are other ways to do this, but they require more code.  Seems silly that this would be taken away and I'm hoping I am wrong.  Thanks!

 

Public Sub rgbt_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgbt.ItemDataBound

 Dim item As GridDataItem = CType(e.Item, GridDataItem)
                Dim lblEmpMsg As Label = CType(e.Item.FindControl("lblEmpMsg"), Label)
                Dim empMsgVal As String = lblEmpMsg.Text

                If (empMsgVal = "" Or IsDBNull(empMsgVal)) Then
                    item.Enabled = True
                Else
                    item.Enabled = False
                End If

End sub

 

Thanks!

Acadia
Top achievements
Rank 1
Iron
 answered on 21 Jan 2020
8 answers
931 views
I've successfully bound my RadGrid to an ArrayList and the data is displaying correctly. I need to add a checkbox and a dropdown list to the front of each row. I've added the checkbox, but am not sure how to add the drop down list. The data for the drop down list is independent of the data used to populate the grid. How can I add a column which contains the drop down?

Thanks.
lenard
Top achievements
Rank 1
 answered on 21 Jan 2020
1 answer
72 views

Hi Support team,

May I know how to access the LastModifiedDate for the file uploaded through RadAsyncUpload before saveas?

I need to check whether the file modified before or not.

As I can see from the tutorial:-
 - The property is available only in RadAsyncUpload control when FileApi module is used

I not able to have this LastModifiedDate with my below code. Please advise. Thanks

foreach (UploadedFile f in RadAsyncUpload1.UploadedFiles)
{

    //f.LastModifiedDate - this is not available

}

 

Peter Milchev
Telerik team
 answered on 20 Jan 2020
7 answers
2.3K+ views

I have a RadioButtonList on an ASP.Net page with VB.net as the code-behind.

The RadioButtonList has 4 items with 2 columns.  Originally I had it set up where RepeatDirection is Horizontal and Direction is Horizontal. 

The problem I am having is that the 2 rows of the items are too close together.  That especially is a problem when displaying the page on a 10.1" tablet in portrait position because it makes it really hard to select an item in the second row.

Changing the RepeatDirection and Direction to Vertical helped to give more space which looks on a PC and a 10.1" tablet in landscape position.  But it is still too close on a 10.1" tablet in portrait position.

I have tried using "padding" in CSS for the RadioButtonList but that only changes the spacing around the RadioButtonList.

Please help me with this.

Here is my RadioButtonList:

<telerik:RadRadioButtonList runat="server" ID="rrblSortBy" RepeatDirection="Vertical" RenderMode="Lightweight" AutoPostBack="False" Direction="Vertical" Skin="Glow" Columns="2" SelectedIndex="0" SelectedValue="Supplier">
    <Items>
        <telerik:ButtonListItem Selected="True" Text="Supplier" Value="Supplier" />
        <telerik:ButtonListItem Text="Serial No." Value="Serial No." />
        <telerik:ButtonListItem Text="RSDC Part No." Value="RSDC Part No." />
        <telerik:ButtonListItem Text="Customer" Value="Customer" />
    </Items>
</telerik:RadRadioButtonList>

 

Sincerely,

Keith Jackson

Peter Milchev
Telerik team
 answered on 20 Jan 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?