Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
145 views
I am looking to recreate a Gmail style experience.  If I click a row anywhere other than the checkbox it should make a call to the view page; if I select the item with the checkbox then it should stay on the page and highlight the item. So far I have experiemented with the ItemCommand event but the postback just to get the highlighted row is a bit ugly.  Is there a smoother way to make this happen?

Thanks,
colin
ColinBowern
Top achievements
Rank 1
 answered on 22 Jun 2009
2 answers
110 views
hi
how can I offset all children  nodes to be align under the first parent,i.e. if I hit the third parent, his child menu will appear under the first parent .
in fact, I did it when the parents have a fixed width, but when I don't specify the parents width declaratively , I can't
compute the children offsetx value.
can you help me
thank you

Muhib
Top achievements
Rank 1
 answered on 22 Jun 2009
7 answers
201 views
Hello,

This kind of control was missing, but after some analysis of request, using treeview in place of listbox was a better choice.

Very less click are necessary with treeview and the Trevview api is rich, wich allow a lot of display adaptations.

I have implemented mine using a CompositeControl and 2 radtreeview, but I would appreciate a use one from Telerik in regards to support and version changing in RadTreeview.

One appreciated feauture is the ability to enter complementary data for the selected items in the left treeviw ... sorry listbox.

Could I hope something in this area ?

NB: Anybody sharing my advice could comment this threa as a limited mass action :)


CS
PureCode
Top achievements
Rank 2
 answered on 21 Jun 2009
4 answers
179 views
Dear Telerik,

I'm trying to remove the item "EmployeeInformation" from the code behind. However I can't get it working.

I have tried (as within the example "add remove items"):
RadPanelItem item = RadPanelBar1.FindItemByValue("EmployeeInformation");
item.Owner.Items.Remove(item);
But this doesn't work.

Could you give me a clue?

The code I'm using:
<telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="SingleExpandedItem" Width="800px" onprerender="RadPanelBar1_PreRender" oninit="RadPanelBar1_Init">
    <Items>
      <telerik:RadPanelItem Expanded="True" Text="Step 1: General information" runat="server" Selected="true">
        <Items>
          <telerik:RadPanelItem Value="GeneralInformation" runat="server">
            <ItemTemplate>
              <asp:Button runat="server" ID="nextButton" OnClick="nextButton_Click" Text="Next" ValidationGroup="accountValidation" />
            </ItemTemplate>
          </telerik:RadPanelItem>
        </Items>
      </telerik:RadPanelItem>
      <telerik:RadPanelItem Enabled="True" Text="Step 2: Employee information" runat="server">
        <Items>
          <telerik:RadPanelItem Value="EmployeeInformation" runat="server">
            <ItemTemplate>
            </ItemTemplate>
          </telerik:RadPanelItem>
        </Items>
      </telerik:RadPanelItem>
       <telerik:RadPanelItem Enabled="False" Text="Step 3: Account information" runat="server">
        <Items>
          <telerik:RadPanelItem Value="AccountInformation" runat="server">
            <ItemTemplate>
              <asp:Button runat="server" ID="registerButton" OnClick="registerButton_Click" Text="Register" ValidationGroup="TermsValidation" />
            </ItemTemplate>
          </telerik:RadPanelItem>
        </Items>
      </telerik:RadPanelItem>
    </Items>
    <CollapseAnimation Duration="100" Type="None" />
    <ExpandAnimation Duration="100" Type="None" />
  </telerik:RadPanelBar>
robert
Top achievements
Rank 1
 answered on 21 Jun 2009
6 answers
191 views
Hi, I have got the tooltip working great with the load on demand sample provided.  I have a WebUserControl that contains a listview that populates a series of thumbnails, the thumbnails are then linked to the manager, and cause the tooltip. 
The problem is that when the onAjaxUpdate fires, it seems to load the entire WebUserControl again, this includes rerunning the query for the listview, which conceivably could take a bit of time.
Is there a way I can tell it that if it is an AjaxUpdate, to not execute the databinding methods of the control?

Thanks
Lance
Lance
Top achievements
Rank 1
 answered on 21 Jun 2009
4 answers
105 views
I'm trying to bind data from a two-dimensional List structure to a grid but its not working out.  This is what I'm trying to do in the NeedDataSource event for my grid:

            List<List<object>> rows = new List<List<object>>();  
 
            List<object> list1 = new List<object>();  
            list1.Add("testing1");  
            list1.Add("testing2");  
            List<object> list2 = new List<object>();  
            list2.Add("testing3");  
            list2.Add("testing=42");  
            rows.Add(list1);  
            rows.Add(list2);  
            radGrid.DataSource = rows; 

I'm hoping to get output that looks like:

testing1   testing2
testing3   testing=42

Instead I get:

Capacity  Count
4               2
4 2

Can anyone tell me how I can do something like this without using a DataSet or DataReader?
Rubens
Top achievements
Rank 1
 answered on 21 Jun 2009
4 answers
79 views
Hi,
I have an aspx with a submit button which open a radWindow on click (server side) using the following lines:

 

InfoWind.NavigateUrl = "../Meida/InfoContent.aspx + dataObj.ToString();  
InfoWind.VisibleOnPageLoad = true 


where InfoWind is the RadWindow.
In the page that pops up in the window there is a button which closes the window on click calling the following javascript function:

            function WindowClose()  
            {  
                var oWindow = null;  
                if (window.radWindow)   
                    oWindow = window.radWindow;  
                else   
                    if (window.frameElement.radWindow)   
                        oWindow = window.frameElement.radWindow;  
                oWindow.close();  
            } 

the code works fine and then the user gets the main window again.
on that screen there is also a HyperLink control which navigates to a classic asp page which I don't have control over.
My problem is on this scenario:

  1. the user open the pop up mentioned above by using a submit button
  2. then uses the WindowClose to close the pop up and return to the main window
  3. clicks the HyperLink on the main Window and gets transffered to an asp page.
  4. clicks the browser's Back button to go back to the original main window

 

in this case the excpected behavior is to get the main window, but what actually happens is that the main window is displayed and right after  that the pop up opens up again...

Here is the RadWindow and RadWindowManager definitions on the main page:

<telerik:RadWindowManager  
     EnableEmbeddedSkins="False" KeepInScreenBounds="True" DestroyOnClose="True" 
       Behaviors="Close"  Skin="ReformaSkin"   
        VisibleStatusbar="False"  ID="windowManager"  runat="server" Behavior="Close"   
        InitialBehavior="Maximize"   
        Left="" style="display: none;"  Top="">  
            <windows> 
                <telerik:RadWindow ID="InfoWind" runat="server" Behaviors="Close, Maximize"   
                    DestroyOnClose="true" EnableEmbeddedSkins="False"   
                    InitialBehavior="Close, Maximize" Left="" NavigateUrl="" Skin="ReformaSkin"   
                    style="display:none;" Modal="false" Top="" RestrictionZoneID="frnHotz"  > 
                </telerik:RadWindow> 
            </windows> 
    </telerik:RadWindowManager> 


Please tell me what am I doing wrong?

Thanx,
Revital
Revital Keren
Top achievements
Rank 1
 answered on 21 Jun 2009
1 answer
53 views
Hi, I am evaluating the demo and I am trying to realize one of my client's ideas. Dynamically creating docs by dragging images from a palette down to the dock zone.

I am using your dynamic dock example and a hidden Dock when you drop the hidden dock I do not dock that one but instead create the appropriate dock in server code.

I use the code below to move the hidden dock to the handle object. Unfortunately this breaks as soon as I start dragging, obviously because the position is not updated from the current setting of clientHeight and Width but rather from the original position of the dock at the time of the mouseDown. Is there a smart way to get past this. I actually think my clients idea is quite smart, to have a number of code blocks that is used as templates that you can drag new docks from. I am very impressed with the Telerik suite, to solve this would just be the icing of the cake for my presentation :)

/Magnus

            var obj = document.getElementById("Handle_" + dock.get_id()); 
            var output = new Object(); 
            var mytop = 0, myleft = 0; 
            output.width = obj.clientWidth; 
            output.height = obj.clientHeight; 
 
            while (obj) { 
                mytop += obj.offsetTop; 
                myleft += obj.offsetLeft; 
                obj = obj.offsetParent; 
            } 
            output.left = myleft; 
            output.top = mytop; 
            dock.set_top(output.top); 
            dock.set_left(output.left); 
            dock.set_width(output.width); 
            dock.set_height(output.height); 

SungamRammah
Top achievements
Rank 1
 answered on 21 Jun 2009
5 answers
183 views
Hi,

Is there a way to set the PanelBar up with the DataNavigateUrlField so that clicking on the item will open the page in a new window?

Thanks,
Dan
Dan
Top achievements
Rank 1
 answered on 20 Jun 2009
1 answer
85 views
Hello i am using Radeditor in my application using that i want sent the mail.  I can type the content in rad content area and applying the
bold  / Italic / Underline effect to the Text ... and adding some enter but when i sent the mail that time mail sending properly but it send the HTML content ............ HOw to send the formated text.

The Content Area Content

Hello How are you

Thanks


Regards
Rahul Mahajan

--------------------------------------------------------------------------------------

And the Code Behind Code

  mails.Body() = RadEditor1.Content.ToString

----------------------------------------------------------------------------------------------------
and the mailed content is



<strong><em><span style="text-decoration: underline;">Hello How are you</span></em></strong> <br />
<br />
<br />
<em>Thanks</em> <br />
<br />
<strong>Regards <br />
Rahul Mahajan</strong>



How to achieve this  ? Help me Urgent !!!!!!!

Mark Fitzpatrick
Top achievements
Rank 1
 answered on 20 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?