Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
Team,

        We are developing a custom application for personalization approach in asp.net using rad controls. In this regard we are planning to use rad docks one of the list of web parts and the other for to have the original instance of the web part.

 

Introduction

 

We want to create an custom .Net application which persumes the user personalization with a web part gallery (custom) and a page where the users can add web parts from the gallery to the actual page. In this regard we want to use the telerik controls to support some of the functionalities. Following are the controls of telerik that are planning to use

 

RADDockLayout – To simulate web part zone

RADDock – To simulate the drag and drop feature between the zones

RADWindow – To simulate gallery opening from the page

RADRotator/RADMenu – Which will be control to render the web parts

 

Requirements

 

Page with 3 columns where user can add/drag and drop the web parts

When a user clicks on a button “add web part ” on the page

Flyout should come up showing the web part gallery

User should be able to drag and drop a web part from the gallery to the page

 

Problem Area

 

Drag and Drop – Create instance

 

Took two RadDock Layout one is having raddocks loaded using database as source. The other is empty. The docklayout that is initially loaded assume that is a kind of a gallery (represents an image for a webpart) But when a user drags a dock on to the second docklayout, the actual instance should remain as it is, but using some metadata information within the dock should create a new dock instance place it into the second docklayout

 

Disappearing window

           

            When a gallery is opened (on click of some button on the page) as fly out, after user finishes his interaction he will be clicking within the parent page some where so the fly out should disappear

Approach – Planning to use radwindow for this requirement

Pero
Telerik team
 answered on 01 Dec 2010
5 answers
169 views
Hi,

i am using a RadTreeview with CheckBoxes within a RadComboBox. Everything works fine, but the Combox collapses every time I Check a Node. I found a solution using the StopPropagation Function in JavaScripting preventing this behaviour, but now i am facing another problem: The Nodes I had checked are not checked anymore when submitting the form.

How can I prevent the ComboBox from collapsing AND persist the Checked States and reading them in code behind after submitting the form?

Following Code I use:

function StopPropagation(e) {
            if (!e) {
                e = window.event;
            }
 
            e.cancelBubble = true;
        }



<rad:RadComboBox ID="ddYearQuarterMonthDate" runat="server" Width="100%" Height="350px">
                                                    <ItemTemplate>
                                                        <div id="div1" onclick="StopPropagation(event);">
                                                        <rad:RadTreeView ID="radTreeViewYearQuarterMonthDate" runat="server" MultipleSelect="True" CheckBoxes="true"
                                                    TriStateCheckBoxes="false" CheckChildNodes="false" onclick="EmptyRadDatesAndRblTimespan();">
                                                        </rad:RadTreeView>
                                                        </div>
                                                    </ItemTemplate>
                                                    <Items>
                                                        <rad:RadComboBoxItem Text="" />
                                                    </Items>
                                                </rad:RadComboBox>

                               
Veronica
Telerik team
 answered on 01 Dec 2010
1 answer
196 views
Is it possible to have a hierarchical RadGrid where the DetailTable is bound to a property from the Master's data object?

For example, my RadGrid (MasterTableView) is bound to an ObjectDataSource.  The select method returns a collection of Customer objects.  Each Customer object has a collection of Account objects (simple one-to-many relationship).

Obviously my MasterTableView displays the Customer columns and I'd like to simply display all the Accounts in a nested or detail-style table indented underneath.

Where I'm getting confused is whether or not the DetailTable (GridTableView) must use another datasource.

It seems inefficient to have to make additional trips to the database to lookup the accounts for each individual Customer when I already have everything I need.

I think I'm basically wanting to somehow bind my DetailTables (GridViewTable) DataSource to the Accounts property..  but the only option I see is to point it to a completely different DataSourceId.

This is a trimmed-down version of my RadGrid and what I'm basically trying to achieve.  (I know the DataSource property shown on the GridTableView isn't valid - this is just me trying to show what I'd like to do.)

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="objCustomers"
    AutoGenerateColumns="False">
    <MasterTableView DataSourceID="objCustomers" DataKeyNames="CustomerId">       
        <Columns>         
            <telerik:GridBoundColumn DataField="FName" />
            <telerik:GridBoundColumn DataField="LName" />
        </Columns>   
        <DetailTables>                           
            <telerik:GridTableView DataKeyNames="AccountId" DataSource='<% Eval(Accounts) %>' />
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="CustomerId" MasterKeyField="CustomerId" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn DataField="Type" />
                    <telerik:GridBoundColumn DataField="AcctNum" />
                </Columns>
            </telerik:GridTableView>
        </DetailTables>       
    </MasterTableView>
</telerik:RadGrid>


The Customer Object is basically
CustomerId   (key)
FName
LName
Accounts (collection of Account objects)
Account object is basically:
AccountId (key)
CustomerId (foreign key)
Type
AcctNum


Any guidance would be appreciated.

Thanks-
Kenneth
Princy
Top achievements
Rank 2
 answered on 01 Dec 2010
1 answer
54 views
I have a RADTreeView that has a context menu item. When the context menu item is clicked a RADWindow is called and made visible to the end user for input. After the user is finished inputting, the data is inserted into a database. This data then becomes a ndoe within the RADTreeView.

What I want is for the RADTreeview to reflect this change in after the RADWindow is closed. Is this possible?

Right now, the only way for the changes to be reflected is to refresh the whole page.

Any help would definitely be appreciated. Thank you.



PJ
Princy
Top achievements
Rank 2
 answered on 01 Dec 2010
0 answers
48 views
Hi .
    when i try to  bind data to grid it showing the error like this htmlfile: Unknown runtime error.It also showing error when i click the next page(paging) in grid.

Can  any one tell me what is the problem  here.And how to over come it.

Thank You.
Suresh K.
Suresh K
Top achievements
Rank 1
 asked on 01 Dec 2010
9 answers
75 views
Hi Guys,
I have been fighting with this for weeks. Please help.

I am using a RadGrid which has a GridClientSelectColumn column, but ClientEvents does not fire the OnRowSelected.
The Grid gets updated using the SelectedValue of dropdown. If I poplulate the RadGrid without using the dropdown, it works just fine. If I populate the RadGrid , it populates the RadGrid  properly but ClientEvent does not fire.

Here is my code snippet:

RadGrid gets refreshed properly by selected value of a DroDown.

<radG:RadGrid  
                                        ID="rgClient_Mgt"    
                                        runat="server"  
                                        EnableAJAX="True"  
                                        AllowSorting="True"
                                        AutoGenerateColumns="False"
                                        DataSourceID="odsClient_List"                                       
                                        GridLines="None"
                                        PagerStyle-Mode="NextPrevNumericAndAdvanced"
                                        OnItemCreated="rgClient_Manage_ItemCreated"
                                        OnItemCommand="rgClient_Manage_ItemCommand">
                                        <MasterTableView EnableViewState="true" DataKeyNames="ClientID,LName,FName" AutoGenerateColumns="False" DataSourceID="odsClient_Manage" >
                                            <Columns>                                   
                                                <radG:GridClientSelectColumn UniqueName="ClientID" HeaderText="Select" />
                                                <radG:GridBoundColumn DataField="ClientID"  HeaderText="ClientID" SortExpression="ClientID"
                                                    UniqueName="ClientID">
                                                </radG:GridBoundColumn>  
                                                </MasterTableView>
                                        <ClientSettings>
                                            <ClientEvents
                                                OnRowSelected   ="Client_to_Add" >                                                
                                            </ClientEvents>
                                            <Selecting AllowRowSelect="True" />
                                        </ClientSettings>                     
                                    </radG:RadGrid>

java script code:
function Client_to_Add(row)
{
    alert("Hi");
}

Mustaque Bhuiyan
Top achievements
Rank 1
 answered on 01 Dec 2010
1 answer
158 views
Hi everyone,

I want to open an aspx page inside an update panel or any other way possible to import that page inside another aspx page available in any tools of telerik ?
Shinu
Top achievements
Rank 2
 answered on 01 Dec 2010
2 answers
61 views
During Itemdatabound  event, what is the best way to know if it came from Insert or Edit. Right now Im filtering Itemdatabound  using this condition:

if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)
  
however both Insert and Edit event makes the above statement true.
Web team
Top achievements
Rank 1
 answered on 01 Dec 2010
0 answers
92 views

Posted 0 minutes ago (permalink)

Hi,

   I am working with RadScheduler.For my case,I customize the Rad Scheduler for Events.
Created Event with Subject,Start Date ,EndDate Field.It works well .I have to incorporate Recurrence in the RadScheduler .
For the Recurrence ,I added RecurenceParent ID and Recurence Rule in the Event Table.

  And What are the thing to do .?If the Event does not have recurrence i saved the recurrence ParentID as zero.
But its not working .Please give me the following details.

1.What are the things to be saved in recurrence rule?
2.Is the Recurrence Parent id as Event ID or Shall i need to create child table for this.>

i maintained all are the things in the Event Table only .Please give me any procedure to incorporate recurrence .

Thanks in advance
Prabha
    
prabha
Top achievements
Rank 1
 asked on 01 Dec 2010
4 answers
287 views
Hi ALL,

          I have one progress rad window page, when any operation perform i need to open that page,i have one timer control on page, on timer tick event i have check the current stage of running process and according to that i am defining label value, but now i want ProgressBar on same page, when any process will run Process Page should open and progress bar will display the current status of process...same like In windows 7 when we try to copy the content the process of copying progress bar.please help me and is it possible with telerik progress bar control? or any suggestion.

Thanks
Kaushal
Top achievements
Rank 1
 answered on 01 Dec 2010
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
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
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?