Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
Hi,
I would like to use a different data source stracture for my grid- a customized list with a struct that I created.
The purpose is to keep all the added rows in this structure, and only after the user finished adding all the relevant rows to the grid, I'll run through all added items in this struct and add them to the DB in a loop.

The same should occure upon records retrieving from the DB- the DB will fill this struct and then the grid will be filled based on the struct items.

If it's possible to do so, I'll appreciate it if you could send me a code example for that.

Thanks,
Tamar
Tamar Amit
Top achievements
Rank 1
 answered on 19 Jan 2010
3 answers
206 views
hi please find attached the radgrid image, where in all the columns are grid bound columns, i just wanna calculate the total of the values at footer.

pleases help.
<Columns> 
                        <telerik:GridBoundColumn UniqueName="Month" HeaderText="Month" DataField="Lead_Month" 
                            HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn UniqueName="Leads" HeaderText="Leads" DataField="Intake" 
                            HeaderStyle-Width="150px">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn UniqueName="Clients" HeaderText="Clients" DataField="Client" 
                            HeaderStyle-Width="150px">  
                        </telerik:GridBoundColumn> 
                        
                    </Columns> 
Princy
Top achievements
Rank 2
 answered on 19 Jan 2010
3 answers
339 views
Hello Experts.
Why my grid looks once like in print screen 1, and once he is not at all? (screen 2)
How to force the appearance of 1 ?
Krzysztof
Top achievements
Rank 1
 answered on 19 Jan 2010
1 answer
158 views
Hi ,

I am using RadGrid with client properties 
<ClientEvents OnCommand="RadGrid1_Command" OnRowDeleted="RowDeleted"  OnRowDeleting="RowDeleting" />

when i am binding grid with SqlDataSource instead of OnCommand event then Deleted and deleting events 
are firing but in above code its not firing since we i am using OnCommand and i want to use 
OnCommand event with OnRowDeleted and OnRowDeleting .
How to overcome this problem.
Mira
Telerik team
 answered on 19 Jan 2010
1 answer
92 views
help,

Is there a way to have the RadAjaxManager watch a grid and have the loading panel fireup when the user changes filtering option and not have the loading panel fireup when the user clicks a checkbox in the grid?

I have a grid with users displayed in rows and five columns in each row with each one being a checkbox. I don't want the checkbox to cause the loading panel, but I do want the filtering to cause the loading panel. I do need the postback on my check changed event
Martin
Telerik team
 answered on 19 Jan 2010
3 answers
160 views
I was just about to make a post about a bug I thought I had come across but I realised it was probably my own mistake, but i thought i'd post here any way so other people dont make the same mistake

If you have a blank page and put a prometheus editor, a required field validator (with an associated control) and a non prometheus rad ajax panel you get some funky JS errors like

Error: 'this._contentHiddenTextarea' is null or not an object
Error: 'addEventListner' is null or not an object

The answer of course is to use a Prometheus ajax panel and it all works nicely :)
Selçuk ERMAYA
Top achievements
Rank 1
 answered on 19 Jan 2010
5 answers
377 views
i want to assign radchart Bar width in pixel. i am binding chart with dataset.
so that if there is only 1 item(1bar) in the graph then width should not expand to whole width of the chart.
Barwidthpercentage sets bar width with respect to items. but if there is less items then barwidth increases.

thanks
 
Prashant
Top achievements
Rank 1
 answered on 19 Jan 2010
2 answers
245 views

I have come across an issue in which the exceptions for a given recurrence rule are not being programmatically generated properly.  The date portion is correct (that is, the date at which the exception is supposed to occur), but the time is wrong.  I'm likely doing something wrong (as RadScheduler can figure out the correct time), but I wasn't able to track down a solution.

The initial recurrence rule (programmatically created from a database record) is this:

DTSTART:20100115T090000Z
DTEND:20100115T170000Z
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,WE,FR

When I go to add an exception for this weekly recurring event on 1/20/2009, RadScheduler gives me this new rule on the OnAppointmentUpdated event:

DTSTART:20100115T090000Z
DTEND:20100115T170000Z
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,WE,FR
EXDATE:20100120T090000Z

Obviously, I trust that RadScheduler is doing the right thing here.

In order to capture exceptions (in this case a delete), I insert a new row into my table with the exception start date 1/20/2009 9:00 a.m., and an end date 1/20/2009 5:00 p.m. (to maintain the parent event duration), with a foreign key to the parent event.  When I generate the new recurrence rule for the parent event, I find the exception and attempt to add it to the recurrence rule programmatically using the exception start DateTime (in this case, the one mentioned above in bold)...

a la...

rule.Exceptions.Add(exception.StartDate); 

This is the result immediately following the call above:

DTSTART:20100115T090000Z
DTEND:20100115T170000Z
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,WE,FR
EXDATE:20100120T170000Z

They are identical apart from the exception date time.  I don't know why the end time for the relation is being used on the exception.  I have stepped through my code to verify that the DateTime object being used to generate the exception is indeed correct (and it is).  The recurrence rule should have no notion of the exception end time unless it is being inherited from the recurrence start DateTime.

Just in case this is helpful, I am using the ASP.NET Ajax Q2 2009 version of the Telerik controls.

Am I missing something obvious?

Colin Teal
Top achievements
Rank 1
 answered on 18 Jan 2010
5 answers
193 views
Hi everyone,
I am using sitefinity and having a usercontrol named forexample UserControl1.ascx. I created a new page on sitefinity named as page.aspx. I am using UserControl1.ascx inside page.aspx. There is a radwindow calling another page called pageincludingradgrid.aspx inside page.aspx. And my problem is , radgrid page size and paging doesn't work. When radgrid postbacks the radwindow, radgrid disappears. I know that radwindow based on IFrame. So I could not figure out the radwidows behaviour.. I could not rebind the grid to see the related  data on correct page index.Any idea please? I need help  ..thanks
inanc
Top achievements
Rank 1
 answered on 18 Jan 2010
2 answers
298 views
Hi,

For some reason I can't get a reference to a control in the InsertCommand handler

This works for update:
Private Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.UpdateCommand
        Dim editItem As GridDataItem = DirectCast(e.Item, GridDataItem)
End Sub

But this does not:
Protected Sub RadGrid1_InsertCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.InsertCommand
            Dim insertItem As GridDataInsertItem = DirectCast(e.Item, GridDataInsertItem)
End Sub

I allways got this message:
Unable to cast object of type 'Telerik.Web.UI.GridCommandItem' to type 'Telerik.Web.UI.GridDataInsertItem'.

Help?
Thanks Laslo




Laslo Pertic
Top achievements
Rank 1
 answered on 18 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?