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

 

I can not get this simple required field validator column to trigger. I've followed the examples and tried various different syntax options. Can anyone shed lany light on why this isn't firing?

<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="true" AllowPaging="true"
                        ItemType="MYCOMPANY.BusinessData.BusinessObjects.Participant"  
                        AutoGenerateColumns="False" AutoGenerateDeleteColumn="true"
                        AutoGenerateEditColumn="True" 
                        GroupPanelPosition="Top" Skin="Metro">
                        <%--<ValidationSettings EnableValidation="true" CommandsToValidate="PerformInsert" />--%>
                        <MasterTableView CommandItemDisplay="Top" AllowAutomaticInserts="true" InsertItemDisplay="Top" DataKeyNames="ParticipantID" 
                            InsertMethod="insertParticipant" DeleteMethod="deleteParticipant" UpdateMethod="updateParticipant" SelectMethod="getParticipants" 
                            PageSize="12">
                                <Columns>
                                <telerik:GridBoundColumn DataField="Username" HeaderText="Username" UniqueName="Username" ColumnEditorID="Username">
                                    <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
                                        <RequiredFieldValidator SetFocusOnError="true" ErrorMessage="* - Required Field" ForeColor="Red" Font-Bold="true" />
                                        <ModelErrorMessage ModelStateKey="Username" AssociatedControlID="Username" SetFocusOnError="true" ForeColor="Red"                                                   Font-Bold="true" />

                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>

 

 

Thanks in advance!

Michael

Michael
Top achievements
Rank 1
 answered on 19 Apr 2016
4 answers
293 views

Hi,

I need to modify the filter for radgrid.

As per the requirement i have to use different filter option for different column and reduce the filter option(only contain filter) for default radgrid headercontect type of filter.

Please find the requirement and current implement of rad grid filter.

Any sample code with be greatly helpful.

Thanks.

Maria Ilieva
Telerik team
 answered on 19 Apr 2016
3 answers
244 views

Hi,

I am using the RadAutoCompleteBox in a sharepoint visual webpart.  I have all the values when I load the webpart.

I am setting the DataSource for the RadAutoCompletebox in page load, but everytime I enter text in the AutoCompleteBox is does a post back.  If I disable postpack, I don't see any type ahead data. 

How do I configure the RadAutoCompleteBox so that I provide it the data it needs at pageload and then it should not do any postbacks?

A related question:

How do I configure RadAutoCompleteBox to function on the client side where it calls a asmx webservice to get the data?

Ivan Danchev
Telerik team
 answered on 19 Apr 2016
1 answer
161 views

There is a problem with deleting files in a grid in Chrome and Opera browser.
When using the confirmation with radwindows does not run the javascript code.

This error is easily reproducible in the Telerik demo in this example (http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/manual-crud-operations/defaultcs.aspx).

 

Thanks in advance.

 

 

 

Maria Ilieva
Telerik team
 answered on 19 Apr 2016
1 answer
126 views

Hi everybody,

we've recently updated to Telerik 2016 Q1 SP1 with latest Hotfix.

I am still facing some minor issues with the HTMLChart. There is a class called .k-chart-tooltip and after the upgrade this class is totally missing.
The html-markup is still referencing to this class but it can not be found in the resources, it is not there. Any help on this?

Another thing is that i give the possibility to make a cahrt 'small' or 'big'. The javascript code for this functionality looks like this:

function makeSmallGraph(chart) {
            if (chart == null) { chart = $find('<%=cGraph.ClientID%>'); }
                         
            chart._chartObject.options.series[0].labels.visible = false;
            chart._chartObject.options.series[1].labels.visible = false;
            chart._chartObject.options.series[2].labels.visible = false;
            chart._chartObject.options.series[3].labels.visible = false;
            chart._chartObject.options.title.visible = false;
            chart._options.valueAxis[0].title.visible = false;
            chart._chartObject.options.valueAxis.title.visible = false;
            chart._options.categoryAxis.title.visible = false;
            chart._chartObject.options.categoryAxis.title.visible = false;
 
            chart.repaint();
        }
 
        function makeBigGraph(chart) {
            if (chart == null) { chart = $find('<%=cGraph.ClientID%>'); }
                         
            chart._chartObject.options.series[0].labels.visible = true;
            chart._chartObject.options.series[1].labels.visible = true;
            chart._chartObject.options.series[2].labels.visible = true;
            chart._chartObject.options.series[3].labels.visible = true;
            chart._chartObject.options.title.visible = true;
            chart._options.valueAxis[0].title.visible = true;
            chart._chartObject.options.valueAxis.title.visible = true;
            chart._options.categoryAxis.title.visible = true;
            chart._chartObject.options.categoryAxis.title.visible = true;
 
            chart.repaint();
        }

 

After calling 'makeBigGraph' there are no more tooltips showing up. after calling 'makeSmallGraph' tooltips are back! Why?
We used version 2015 Q1 before upgrading to the latest build and i had none of the Problems described.

Kind regards

Philipp

Philipp
Top achievements
Rank 1
 answered on 19 Apr 2016
1 answer
96 views

I'am loading data using the Entity Framework into the RadGridView an I'am using the default filter popup control. The problem is that the Entity Framework can throw exceptions when something is wrong with the data. In this case the rows are still displayed but these exceptions are causing trouble with the filter control. (There are no items in the top list to choose from)

Is it possible to get the filter control to work even when exceptions are occuring? Or can I maybe go arround this problem by building my own filter control?

Konstantin Dikov
Telerik team
 answered on 19 Apr 2016
1 answer
78 views

Hi Telerik,

I am using Telerik.Web.UI Version 2016.1.113.45.

The grid which I am using is dynamically generated with static header and frozen columns and scrollbar.

Till date, grid was loading/binding properly before I set the column width of certain columns from Pre_render event. At this moment the grid is losing it's original width due to which even scrollbar is going off. Table layout is also set to default "Auto".

I have attached 2 screenshot of before and after behavior of the grid once I set the width in the PreRender event(code added below) explicitly from code behind

ascx page:

<telerik:RadGrid ID="dgEscrow" runat="server" GridLines="None" EnableEmbeddedSkins="false" AutoGenerateColumns="false" ShowFooter="true" CssClass="esGridTable">
    <HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
    <ClientSettings>
        <ClientEvents OnGridCreated="setScrollerDimensionsEscrow" />
        <Scrolling AllowScroll="true" SaveScrollPosition="true" />
    </ClientSettings>
</telerik:RadGrid>

 

after adding the below code, the grid starting displaying in a squuezed form:

Protected Sub dgEscrow_PreRender(sender As Object, e As EventArgs) Handles dgEscrow.PreRender
        For Each column As GridColumn In dgEscrow.MasterTableView.Columns
            If column.UniqueName = "File #_String" Then
                column.HeaderStyle.Width = Unit.Pixel(95)
            End If
            If column.UniqueName = "Lot/Unit_String" Then
                column.HeaderStyle.Width = Unit.Pixel(90)
            End If
            If column.UniqueName = "Status_String" Then
                column.HeaderStyle.Width = Unit.Pixel(95)
            End If
        Next
    End Sub

It will be of great help if you guys update me at the earliest.

Thanks

 

Maria Ilieva
Telerik team
 answered on 19 Apr 2016
1 answer
143 views

Hi  im using a treeview with page method load on demand mode.

1. I want to expand and check all child nodes when user checks a certain node. How can i managed to do this?

2. I want to use filtering on this treeview is it possible?

Dimitar
Telerik team
 answered on 19 Apr 2016
1 answer
101 views

IsSeparator not work in Lightweight RenderMode ...

 

 

Dim NewForeningItem As New RadComboBoxItem()
rcbForeningar.Items.Insert(i, NewForeningItem)
NewForeningItem.IsSeparator = True

Magdalena
Telerik team
 answered on 19 Apr 2016
1 answer
46 views

I have a RadGrid on the page which is using the Bootstrap skin. The grid displays perfectly fine, but the paging buttons are using css from the rest of the project which is altering its appearance, as shown in the screenshot attached.

Is there anyway to just use the skin and avoid css from the project interring with it.

It appears to be mainly from the .button, input[type="button"], input[type="submit"] css from looking at the page inspector.

Eyup
Telerik team
 answered on 19 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?