Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
118 views

Hi,

I am using Kendo UI Batch editing grid for my requirement and its have 10 columns and 15 rows. While doing "save changes" with 15 rows its showing 404 error. If am doing the same with 5 rows its working fine. Actually the editing model data's are passing like query string. So is that the problem for this issue. Can anyone please do needful.

Rajapandi
Top achievements
Rank 1
 asked on 24 Jun 2018
1 answer
106 views

I use a very simple grid with data source and AllowAutomaticUpdates="True"  and AllowAutomaticInserts="True"

Insert works perfectly, but for update, after I choose new date and comment and click update, the old values are sent to stored procedure(logged them from stored procedure to make sure). What am I missing?

 

<telerik:RadGrid ID="RadGridTimeSlots" runat="server" AllowAutomaticDeletes="true" AllowAutomaticInserts="True"
            GroupPanelPosition="Top" ResolvedRenderMode="Classic" AllowAutomaticUpdates="True" DataSourceID="dsTimeSlots" OnItemUpdated="RadGridTimeSlots_ItemUpdated" OnItemInserted="RadGridTimeSlots_ItemInserted">
            <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" DataKeyNames="ID,DateFrom,DateTo,comment" EditMode="InPlace" DataSourceID="dsTimeSlots">
                <Columns>
                    <telerik:GridDateTimeColumn DataField="DateFrom" HeaderText="Date From" UniqueName="DateFrom" PickerType="DateTimePicker" />
                    <telerik:GridDateTimeColumn DataField="DateTo" HeaderText="Date To" UniqueName="DateTo" PickerType="DateTimePicker" />
                    <telerik:GridBoundColumn DataField="comment" HeaderText="Comment" UniqueName="comment"></telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn CommandName="Delete" ConfirmText="Do you want to delete this time slot?" ButtonType="ImageButton" HeaderText="Delete?" ConfirmDialogType="RadWindow" UniqueName="btnDelete">
                        <ItemStyle VerticalAlign="Top" />
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    <asp:HiddenField ID="hMyAccountName" runat="server" />
        <asp:SqlDataSource ID="dsTimeSlots" runat="server"
            ConnectionString="<%$ ConnectionStrings:PPMTESTConnectionString %>"
            SelectCommand="execute SelectOutOfOfficeSlots @accountName"
            InsertCommand="execute InsertOutOfOfficeSlot @accountName,@DateFrom,@DateTo,@comment"
            UpdateCommand="execute UpdateOutOfOfficeSlot @ID,@accountName, @DateFrom,@DateTo, @comment">
            <SelectParameters>
                <asp:ControlParameter ControlID="hMyAccountName" Name="accountName" PropertyName="Value" />
            </SelectParameters>
            <InsertParameters>
                <asp:ControlParameter ControlID="hMyAccountName" Name="accountName" PropertyName="Value" />
            </InsertParameters>
            <UpdateParameters>
                <asp:ControlParameter ControlID="hMyAccountName" Name="accountName" PropertyName="Value" />
            </UpdateParameters>
        </asp:SqlDataSource>

 

 

 

Partial Class MyOutOfOffice
    Inherits System.Web.UI.Page
    Dim myAccountName As String

    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        myAccountName = Session("DomainAccount")
        hMyAccountName.Value = myAccountName
        Label2.Text = ""
    End Sub


    Protected Sub chkOutOdOffice_CheckedChanged(sender As Object, e As EventArgs)

    End Sub
    Protected Sub RadGridTimeSlots_ItemUpdated(sender As Object, e As GridUpdatedEventArgs)
        If (Not (e.Exception Is Nothing)) Then

            e.ExceptionHandled = True
            Label2.Text = Label2.Text & e.Exception.Message & "<BR/>"
        End If
    End Sub
    Protected Sub RadGridTimeSlots_ItemInserted(sender As Object, e As GridInsertedEventArgs)
        If (Not (e.Exception Is Nothing)) Then

            e.ExceptionHandled = True
            Label2.Text = Label2.Text & e.Exception.Message & "<BR/>"
        End If
    End Sub
End Class

Galina
Top achievements
Rank 1
 answered on 22 Jun 2018
1 answer
222 views

I am using the latest Telerik.

My RadGrid has a date column and I am trying to format it but it doesn't work.

<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="true" OnInit="RadGrid1_Init" 
                                PageSize="15"   AllowFilteringByColumn="true"   OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender" Font-Size="Small">
                
                <MasterTableView>
                    <Columns>
                        <telerik:GridDateTimeColumn DataField="BillDate" UniqueName="BillDateColumn1" DataFormatString="{0:dd/MM/yyyy}"  HeaderText="Bill Date1" />
                        <telerik:GridBoundColumn DataType="System.DateTime" DataField="BillDate" UniqueName="BillDateColumn2" DataFormatString="{0:dd/MM/yyyy}"  HeaderText="Bill Date2" /> 
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

 

In both columns, I get format like 4/30/2017 12:00:00 AM instead of just 4/30/2017.

Is there anything I am missing here?

StuartLittle
Top achievements
Rank 1
 answered on 22 Jun 2018
1 answer
423 views

Hi,

I have GridTemplate column with RadioButtonList and Telerik GridCheckBox column along with regular GridBoundColumns in RadGrid. In my javascript depending upon condition, I need to make GridTemplate column with RadioButtonList and Telerik GridCheckBox column as readonly and toggle it to be editable depending on condition.

I am not finding any code to make those 2 columns as readonly.

Please suggest.

 

Thank You

Marin Bratanov
Telerik team
 answered on 22 Jun 2018
1 answer
129 views

I spent hours trying to figure out how possibly bind this control to a datasource in a formview through a property.

Text does absolutely nothing.

Radcombobox use the Selectedvalue property. How am I supposed to use AutoComplete to load the value from the DB and Set it when I trigger the Update command?
I can't see anithing about it in the docs.

Peter Milchev
Telerik team
 answered on 22 Jun 2018
4 answers
134 views

Good morning,

 

We are witnessing an issue in the latest version of FireFox (v59.0), Telerik Ajax 2018 R1, where the tile click event is not firing - issue can be replicated on the Tile demo page also:

https://demos.telerik.com/aspnet-ajax/tilelist/examples/overview/defaultcs.aspx

 

This appears to be due to amendments to the pointer functionality mentioned in the 59.0 release notes:

"Added support for W3C specs for pointer events and improved platform integration with added device support for mouse, pen, and touch screen pointer input"

https://www.mozilla.org/en-US/firefox/59.0/releasenotes/

 

This can be proved further by modifying the about:config and setting the dom.w3c_pointer_events.enabled value to disabled and refreshing the page, after which the tiles work.

 

Screen record:

https://www.screencast.com/t/dc4duWvP6

 

This is affecting our production environment, so a quick fix/workaround would be appreciated.

Many thanks

Peter Milchev
Telerik team
 answered on 21 Jun 2018
0 answers
84 views

I'm trying to create a chart with a stacked column series using a bound data source.    

I am able to create either stacked or series, but can't figure out how to combine the two.   I suspect the root of the problem is getting the data formatted correctly.   

Is there a simple example of how to accomplish this somewhere?   

 

 

Jakub
Top achievements
Rank 1
 asked on 20 Jun 2018
1 answer
73 views

     Hi, can you create such project like this:
https://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultcs.aspx

but also with hierarchy (child grid)?


The grid i need must be virtualized and have clickable detailtable (hierarchy) and custom paging

1) I made this and it does not work because DetailTableDataBind event runs only once for first page (bug?)
2) When i move to second page and then click left arrow on row to expand child table there is a postback with currentpageindex = 0 (should be 1 as a second page), note that you can see in UI that selected page is first instead of second but pagination cursor stays at good place (selected second page)


Marin Bratanov
Telerik team
 answered on 20 Jun 2018
1 answer
101 views

     Hi, can you create such project like this:

https://demos.telerik.com/aspnet-ajax/grid/examples/performance/virtualization/defaultcs.aspx

but also with hierarchy (child grid)?


The grid i need must be virtualized and have clickable detailtable (hierarchy) and custom paging

1) I made this and it does not work because DetailTableDataBind event runs only once for first page (bug?)

2) When i move to second page and then click left arrow on row to expand child table there is a postback with currentpageindex = 0 (should be 1 as a second page), note that you can see in UI that selected page is first instead of second but pagination cursor stays at good place (selected second page)

 

 

Marin Bratanov
Telerik team
 answered on 20 Jun 2018
1 answer
98 views

Hello,

is it possible to update this example ?

https://www.telerik.com/support/code-library/month-year-picker

It doesn't work anymore, I think because of html 5 control structure...

Thank you

Vasssek

Marin Bratanov
Telerik team
 answered on 19 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?