Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
239 views
Hi,

I have a RadGrid that allows automatic insert and update attached to an ObjectDataSource (ODS). During the ODS insert method I run validation checks and throw custom exceptions. I catch this in my RadGrid ItemInserted event and set the KeepInInsertMode to true and set the ExceptionHandled to true. When the page finishes loading the Insert Row is still there but the values in the edit fields (textboxes, dropdowns, etc) are no longer populated.

Is there a way to keep the values that the user entered before they saved? I need this for Update operations too.

public void RadGrid_Saved(object sender, GridInsertedEventArgs e)  
        {  
            if (e.Exception != null)  
            {  
                e.KeepInInsertMode = true;  
                  
                if (e.Exception.InnerException is ORMEntityValidationException)  
                    e.ExceptionHandled = true;  
            }  
 
        } 

That is how I catch my custom exception to keep the insert mode open.

Thanks!
Angel Petrov
Telerik team
 answered on 09 Jun 2014
3 answers
131 views
Hi.

I'm new using telerik components, and I'm trying to develop something a little bit complicated.

First of all, I have a RadTreeList, that can be editable. I've set the EditMode as "EditForms", and configured the Edit Settings to use a WebUserControl.
My WebUserControl, has 3 fields and a RadGrid, that can be editable too, but this RadGrid is simple, it's the default edit form and I'm just using the Events, InsertCommand, EditCommand and DeleteCommand, to perform this actions in a List who is in 

The first problem here, is that the Cancel command of the RadTreeList is not working, it just works if I comment the RadGrid.
The second problem, is that when I press the Save button in the RadGrid EditForm, it validates all the field from RadTreeList too (attached figure: "Sample.png").

If anyone can help me I'll be very grateful.

Thanks in advance.

jacobi
Top achievements
Rank 1
 answered on 09 Jun 2014
5 answers
112 views
Hi,

I'm having another try to do some basic charts.  These are the issues that I am having:
1) Changing the colour of the chart from the code behind.  How can that be done - I've tried in all kinds of places Page Init, Page Load, Pre Render etc.  Nothing seems to work.
2) Similar to above I have some code working to generate some PlotBands.  All works fine and they are assigned to the chart but they never appear on the chart,
3) In the XAxis I would like to only show the label every x elements so I have the following code:

<XAxis DataLabelsField="ReceivedDate" Step="7">

With the above I see the labels but it doesn't step over 7 labels at a time.

4) I'd like the right most legend panel to be aligned at the top of the right section.  Obviously using top centres it above the chart.  I just want it aligned to the right but at the top. I presume that things like that are CSS hacks for now?

Any pointers gratefully received.

Regards

Jon
Danail Vasilev
Telerik team
 answered on 09 Jun 2014
1 answer
356 views
Hi
how to hide edit button in other rows when one row becomes in edit mode.
Princy
Top achievements
Rank 2
 answered on 09 Jun 2014
2 answers
164 views
The Filter row is word wrapping.  Since I am using AutoGenerateColumns, why doesn't it handle this automatically?  I tried setting the Filter and EditForms Filter styles wrap to False, but it didn't help.

I have attached a screen shot.

Here is my code:
<telerik:RadGrid ID="dgData" runat="server" AllowFilteringByColumn="true" AllowSorting="True" AutoGenerateColumns="True" Skin="Web20" PageSize="500" GridLines="None" Width="945px" AllowPaging="True" TabIndex="-1" EnableEmbeddedSkins="true" OnBiffExporting="RadGrid_BiffExporting" Visible="false" HeaderStyle-Wrap="false">
    <PagerStyle Position="Bottom" Mode="NumericPages" PageButtonCount="10" AlwaysVisible="true" />
    <ClientSettings>
        <Scrolling AllowScroll="True" ScrollHeight="350px" UseStaticHeaders="true"></Scrolling>
        <Resizing ResizeGridOnColumnResize="True" ClipCellContentOnResize="False" />
    </ClientSettings>
    <MasterTableView AllowMultiColumnSorting="True" EnableNoRecordsTemplate="False" GridLines="Vertical" DataKeyNames="ID">
    </MasterTableView>
</telerik:RadGrid>
Peter
Top achievements
Rank 1
 answered on 09 Jun 2014
1 answer
119 views
Hello Can you help me with this question which I have described here


http://stackoverflow.com/questions/24039319/adding-dynamically-itemtemplate-in-radcombobox-inside-radgrid
Boyan Dimitrov
Telerik team
 answered on 09 Jun 2014
1 answer
452 views
Hi,

Apparently I can't format my series tooltips to human readable date using DataFormatString.
I tried {0:d} and many other date formatting but the tooltips always show up as 1399852800000 for example.

My RadHtmlChart/ScatterLine contain multiple ScatterLineSeries added programmatically. Every item X value are DateTime converted to Unix time.
My X-Axis has his Type set to date and apparently format correctly with "yyyy-MM-dd".

Any help?

Thank you.
Danail Vasilev
Telerik team
 answered on 09 Jun 2014
1 answer
139 views
hi,
   I am rad bubble chart and when data is huge the bubble gets over lapped so any solution ?Because of overlapping i am unable to see the between data so any way can reduce at the centre of rad chart?
Danail Vasilev
Telerik team
 answered on 09 Jun 2014
1 answer
128 views
We have an issue with the rendering of appointments in the scheduler. Please see attached image 1.png where we are showing 8 appointments based on the selection of rooms on the left side.

If we reduce the number of rooms we have a fewer number of appointments in the scheduler (image 2.png), but some of the appointments are hidden because they are stacked/layered behind other appointments.

We really need some help with this issue because currently it looks like our application is missing some appointments due to the rendering problems.

We are using version 2013/Q3

Thanks
Dirk

Plamen
Telerik team
 answered on 09 Jun 2014
5 answers
717 views
I need it inside javascript ,i know how to get it in server side............ pls help  guysssssssssssss
<script type="text/javascript" language="javascript">
function removeRadListboxItems(id) {
    for (var i = 0; i < count; i++) {
        var item = id.getItem(0);
        id.trackChanges();
        id.get_items().remove(item);
        id.commitChanges();
    }
}

</script>

count  ????????????????

Plamen
Telerik team
 answered on 09 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?