Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
206 views
hello, every one

in my application i set the paging 30 for RadGrid
and on Insert command of Radgrid i am Inserting New record in database but problem is that after inserting the record
focus is going to the last page of Radgrid, even i am not setting the page Index in my code then also i am facing this problem.

plz tell the solution
Rosen
Telerik team
 answered on 25 Aug 2010
3 answers
139 views

Hello,

I want to use timezone setting in my scheduler.

How can I do it ?

The url given in Demo is not opening

http://demos.telerik.com/aspnet-ajax/scheduler/examples/timezones/defaultcs.aspx

Getting error as "Sorry, we couldn't find the page you're looking for."


Can you post sample code in here for timezone ?

Thanks 

Ashish Sapkale


Veronica
Telerik team
 answered on 25 Aug 2010
5 answers
92 views
Hi all,

I am using the Scheduler with my own data provider (data is stored in a database)

Now, I have a need for linking an appointment to a specific customer, project, sales lead, etc.

I was thinking of implementing this on the advanced form with two extra fields:

Link Type, which is a set of Radio Buttons or a Combobox where each item represents the link type (customer, project....)
Linked To, which is a ComboBox where each item represents for example a Customer (if Link Type "Customer" was chosen).

There is obviously a need to catch the item change event of the RadioButton/ComboBox for the LinkType to populate the Linked To ComboBox with the right items.

How do I subscribe to this event in the advanced forms (both create and edit)?  Or are there any other ways of doing this?

Thanks in advance.

Regards

Henrik
Veronica
Telerik team
 answered on 25 Aug 2010
7 answers
601 views
Hey Telerik-Team,
i ran into a problem concerning the listview control and dynamically added controls. Here is what I am trying to achieve.

I have a listview-control (LV) that is databound to a datatable. The LV also has a custom template
set for its itemtemplate. This custom template dynamically loads another usercontrol containing a radgrid.
So far so good. To facilitate the binding of postbackeventhandlers(click of a button) in this dynamically added control
the control must be added at the init state of the surrounding page. So in the init event handler I call
"Rebind" on the LV
. The rebind causes the controls to be recreated and the event handler of the custom control, e.g.
a linkbutton, is working.

The problem is the following: After rebinding in the init handler, a second
implicit rebind occurs
, set at the prerender state, see below for the call stack:

    App_Code.zzxj7amw.dll!MotifListItemTemplate.InstantiateIn.AnonymousMethod__0(object sender = {System.Web.UI.WebControls.Panel}, System.EventArgs args = {System.EventArgs}) Line 45   C#
     System.Web.dll!System.Web.UI.Control.OnDataBinding(System.EventArgs e) + 0x5c bytes   
     ...
     Telerik.Web.UI.DLL!Telerik.Web.UI.RadListView.PerformSelect() + 0x32 bytes   
     Telerik.Web.UI.DLL!Telerik.Web.UI.RadListView.Rebind() + 0x28 bytes   
     Telerik.Web.UI.DLL!Telerik.Web.UI.RadListView.OnPreRender(System.EventArgs e = {System.EventArgs}) + 0x39 bytes   
     System.Web.dll!System.Web.UI.Control.PreRenderRecursiveInternal() + 0x68 bytes   
    
This rebind forces the user controls to be created again, and I conclude that it also clears the LV's controls collection.
This however flushes the viewstate so that any changes to the contained radgrid are lost (grouping, sorting, etc).

Is there are way to get rid of this second rebind?

I tried to call rebind in the load stage, which seems to keep the second rebind from happening, but the viewstate is lost due to the
assumed clear of the controls collection.

To sum up, I need to have a ListView Control that dynamically adds controls for each item it has, AND keeps track of the viewstate.

I hope my explanations are clear.

Thank you for your support!

Regards,
Kris
Nikolay Rusev
Telerik team
 answered on 25 Aug 2010
4 answers
141 views
Hello,

Our application uses a RadTreeView where the node count often gets very high. The user has to be able to manipulate the structure of the tree through drag'n'drop, and by renaming and changing the icons of individual tree nodes. Some of these operations can be initiated by other controls on the page.

It is not a problem that the initial load of the page takes some time, but it is important that any further modifications to the tree happen quickly. Currently, we handle all modifications to the RadTreeView in page Postback events, which obviously makes each request/response involving the RadTreeView blow up to an unacceptable size.

Does anyone know of a good solution to this kind of problem? We are thinking about writing a lot of custom javascript code and using a custom web service instead of the postback events, but we would really like a cleaner and more general solution if that is possible. Is it somehow possible to cache the structure of the RadTreeView on the server, and only send incremental updates to the client?


Thanks,
Ulrik Rasmussen
Nikolay Tsenkov
Telerik team
 answered on 25 Aug 2010
1 answer
113 views
Hello...

I have a simple RadGrid with both AllowSorting and AllowPaging set to TRUE, but I can't seem to get both settings to work together.

For example, my RadGrid has 2 pages where I can scroll up and down between two pages (EnableAJAXScrollPaging="True").  When I click on one column to sort on the Page 1, the rows in Page 1 are sorted properly.  However, when I scroll down to Page 2, the rows in Page 2 are not sorted by the same column as in Page 1.  And then when I go back to Page 1, everything is back to unsorted.

Below is what I have in my code.  Thanks in advance.

    <radG:RadGrid ID="grdLeaves" runat="server" AllowMultiRowSelection="True"
    AllowSorting="True" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
    LoadingTemplateTransparency="45" ShowStatusBar="True"
    Skin="Ice" GroupingEnabled="False" DataSourceID="SqlDSMain">
    <PagerStyle Mode="NextPrevAndNumeric" />
    <ExportSettings IgnorePaging="True" OpenInNewWindow="True" />
    <HeaderStyle BackColor="Transparent" Height="20px" />
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" EnableAJAXScrollPaging="True" />
        <Resizing EnableRealTimeResize="True" />
        <ClientEvents OnGridCreated="GridCreated" OnRowContextMenu="gridLeavesMenu" />
    </ClientSettings>
    <MasterTableView DataSourceID="SqlDSMain">
        <ExpandCollapseColumn Visible="False">
        <HeaderStyle Width="19px" />
        </ExpandCollapseColumn>
        <RowIndicatorColumn Visible="False">
        <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
    </MasterTableView>
    </radG:RadGrid>


Pavlina
Telerik team
 answered on 25 Aug 2010
3 answers
157 views
Hi all,

I'm trying to do sorting to a radgrid but it gives me this error: The datasource 'datasourcename' doesn't support sorting with IEnumerable data. I want to do sorting the moment the page loaded.

Regards,

_Hamda
Pavlina
Telerik team
 answered on 25 Aug 2010
1 answer
135 views
I am opening a window with RadWindow.  Inside the RadWindow I have a bunch of things including a zone that is docked inside a RadDock.  If I undock this zone, I can only move it around within the RadWindow.

How can I fix this so I can move it outside the RadWindow?

I am opening my RadWindows with radopen(page, null).  Maybe I need to open the windows differently such that the stuff inside the window is visible also to the root window?  Not sure though.

Michael Grant

Pero
Telerik team
 answered on 25 Aug 2010
0 answers
93 views
DO this component is compatible with arcgis server ADF components ?

Mohsen
Top achievements
Rank 1
 asked on 25 Aug 2010
1 answer
625 views
Hi,

I'm using rad gridcheckboxcolumn to display pivot table data. So I was trying to create checkbox columns programatically, because table column values will not be in consistant manner. I could display the data with gridcheckboxcolumn, but its not coming in edit mode. All the chechbox results coming in disabled mode. How can make it in enable mode by default(Without edit click).

Otherwise can I try GridTemplateColumn? If so what to give for xyzTemplateColumn.ItemTemplate=???
How to create the GridTemplateColumn to handle boolean pivoted data progarmatically?
Princy
Top achievements
Rank 2
 answered on 25 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?