Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
I've constructed a sliding pane inside of which is just a user control that contains a RadTreeView.  I've added code such that when a bottom-level node is clicked then the  RadSlidingPane collapses.  It works well except for one thing: When I then reopen the pane the height of it is suddenly much larger than before.  Please note that if I just open & close the pane without touching the treeview then this does not occur.  Here's a short video illustrating the problem: http://mwtech.com/downloads/public/ExcessiveHeight.zip

Here's the layout code:

  <telerik:RadSplitter ID="radSplitter" runat="server" LiveResize="false" Height="449">
    <telerik:RadPane ID="radPaneLeft" runat="server" Scrolling="None">
      <telerik:RadSlidingZone ID="radSlidingZone" runat="server" Width="22" ClickToOpen="true" DockedPaneId="radSlidingPane">
        <telerik:RadSlidingPane ID="radSlidingPane" runat="server" Title="Rates" Width="272" BackColor="#F0F8FF" TabView="ImageOnly" IconUrl="~/Images/hierarchy.gif">
          <asp:PlaceHolder ID="placeHolderHierarchy" runat="server" />
        </telerik:RadSlidingPane>
      </telerik:RadSlidingZone>
    </telerik:RadPane>

And here's the code to programmatically collapse the pane:

    public void CollapseHierarchyPane()
    {
      RadSlidingZone radSlidingZone = (RadSlidingZone)this.FindControl("radSlidingZone");
      if (radSlidingZone != null)
        radSlidingZone.DockedPaneId = null;
    }


Why is this occurring and how do I correct it?

Robert
Dobromir
Telerik team
 answered on 02 Sep 2010
2 answers
321 views
I am trying to achieve as shown in the attached images.
I did find this blog from one of the fellow Telerik guys
http://blogs.telerik.com/pavelpavlov/posts/09-12-04/adding_additional_power_to_radgridview_for_silverlight_with_attached_behaviors.aspx

but this done for winforms controls using silverlight.
Can i achive the same using asp.net ajax controls, i am using radGrid version version 2009.1.311.35 .
Waiting for someone to get me going.

Pavlina
Telerik team
 answered on 02 Sep 2010
3 answers
119 views
On my page I have telerik:radeditor control and few managers which configured within it. How can I change Behaviors property for that managers? I want make them not movable. Please help :)
<telerik:radeditor>
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="LinkManager" />
            <telerik:EditorTool Name="Unlink" />
            <telerik:EditorTool Name="ImageManager" />
            <telerik:EditorTool Name="DocumentManager" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:radeditor>
Ernesto
Top achievements
Rank 1
 answered on 02 Sep 2010
1 answer
89 views
Hello everyone!! ok here is my case, i have my RadGrid, and if i want to add a new record, it shows my 3 textbox, so i can enter my data and save it. But when i want to edit data it shows my 3 textbox, how do i select wich textbox leave enabled or disabled, so the user cannot modify some of them.
Thank you very much for your help :)
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2010
3 answers
243 views
I need to create a grid entirely by code, assigning it some custom columns (GridTemplateColumn) and theses columns have HeaderTemplate, ItemTemplate and EditItemTerplate set with a custom class wich implements ITemplate.
I just followed this article : http://www.telerik.com/help/aspnet/grid/grdprogrammaticcreation.html
Each of my columns use an new instance of the same 'Itemplate class'

here is the content of InstanciateIn method into ItemTemplate class :
public void InstantiateIn(Control container)
        {
            ctrlAcquis = new Literal();
            ctrlAcquis.DataBinding += new EventHandler(ctrl1_DataBinding);
            Table tb = new Table(); 
            TableRow r = new TableRow();
            TableCell c1 = new TableCell();
            TableCell c2 = new TableCell();
            r.Cells.Add(c1);
            r.Cells.Add(c2);
            tb.Rows.Add(r);
  
            c1.Controls.Add(ctrlAcquis);
                          
            container.Controls.Add(tb);
        }

It is working fine !

But now, to be able to export this custom cxolumns in CSV format, I see here : http://www.telerik.com/help/aspnet-ajax/grid-csv-export.html that I need to Iterate throught each of my items , use FindControl to find my Literal, get content and assign it to my item Text property. Something like that :
foreach(GridDataItem item in RadGrid1.MasterTableView.Items)
   {
       Image img = item["MyColumn"].FindControl("Image1") as Image;
       item["MyColumn"].Text = img.AlternateText;
   }

OK, so I need to assign a ID to my LiteralctrlAcquis
Here is the new code of my item template :
public void InstantiateIn(Control container) 
        
            ctrlAcquis = new Literal(); 
            ctrlAcquis.ID = "ctrlAcquis";
            ctrlAcquis.DataBinding += new EventHandler(ctrl1_DataBinding); 
            Table tb = new Table();  
            TableRow r = new TableRow(); 
            TableCell c1 = new TableCell(); 
            TableCell c2 = new TableCell(); 
            r.Cells.Add(c1); 
            r.Cells.Add(c2); 
            tb.Rows.Add(r); 
    
            c1.Controls.Add(ctrlAcquis); 
                            
            container.Controls.Add(tb); 
        }

My grid show up ok at first display, but at the first postback I got this error :
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Multiple controls with the same ID 'ctrlAcquis' were found. FindControl requires that controls have unique

How to set up unique id on all instance of my item template, but stay able to use FindControl("ctrlAcquis") ?
Do I need to name my control with the name of the custom colum for instance because each of my columns use the same Itemplate class ?

p.s: I'm using version 2010.1.519.35 of Telerik RadControls for ASP.NET Ajax

Thanks for help !

 
Rosen
Telerik team
 answered on 02 Sep 2010
1 answer
111 views
Hi,

Like radschedular can radcalendar be used to design a web form from thich the user can mark his leave plan easily.

If not which control can be used


Thanks

Milind
Shinu
Top achievements
Rank 2
 answered on 02 Sep 2010
1 answer
287 views
I have a Master/Detail grid and have added some buttons with custom command names in my details grid and have attached this script to the client OnCommand event. (I have omitted code that is not relevant).

function OnCommand(sender, eventArgs)
{
      // code omitted here that used radConfirm to get user to approve the selected command
      //  ...
      // code which is executed if user confirms selected command
    var grid = sender;
    var MasterTable = grid.get_masterTableView();
    itemIndex = eventArgs.get_commandArgument();
    masterTable.fireCommand("MyCustomCommand", itemIndex);
}

The code triggers successfully but the problem is that the GridCommandEventArgs that I receive in the code-behind event (RadGrid1_ItemCommand) contains item data only for the parent row. How can I retrieve the item data for the child row that triggered the command?

I have also noticed that if I set the FireCommand method to trigger a "Delete" command, then the GridCommandEventArgs does contain the child row data, but when I change it to a custom command name, it then only sends the parent row data.

 I need to be able to at least retrieve the datakey values for the child row.


Princy
Top achievements
Rank 2
 answered on 02 Sep 2010
1 answer
129 views
I don't use icons in my menu and this area doesn't look good without icons.
Cori
Top achievements
Rank 2
 answered on 01 Sep 2010
2 answers
143 views
I am interested in setting the output columns of my RadGrid based on the checked columns (true or false) selected by the user.

As an example, lets say I have ten default columns returned to my datagrid, but the user only wants to display 5 of those. Can anyone point me in the right direction?

Thanks in advance.
Royal
Top achievements
Rank 1
 answered on 01 Sep 2010
3 answers
169 views
I was made aware of the Multiple Selection on Macs not working for the RadListBox - when trying to use the Command (Control-equivalent on PC)-Click combination.

The Shift-Click combination works fine - for selecting multiple items in a row.

The Command-Click - cherry picking method for multiple selection does not work. I am trying this on Safari, and it did not work on the Telerik Demo application. I was also told that this is non-working on Firefox.

 http://demos.telerik.com/aspnet-ajax/listbox/examples/default/defaultcs.aspx

For sanity purposes, I used a standard asp.net listbox control, and the multiple selection with Command-Click works fine.

I searched the forums, but did not find any reference to this. Is this a known issue?


Nikolay Tsenkov
Telerik team
 answered on 01 Sep 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?