Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
167 views
Hi,

I have a page with 3 line charts. My browser print preview only shows 1 1/2 charts so i cant use this !

Is it possible to print all charts together (or worse case scenario, print 1 chart at a time) ??

Do i have to save each chart to memory stream and them combine into 1 preview ? If so, how would i do this please.

Any help is great
Thanks
Mark
Ves
Telerik team
 answered on 15 Sep 2009
1 answer
150 views
I need 2 checkbox for each node in a treeview, so I use nodetemplate. In that once the parent node checked , all the child node should get selected. is there any property to achieve this, or i have to write javascript for this?
Shinu
Top achievements
Rank 2
 answered on 15 Sep 2009
1 answer
193 views
I am using the RadCalendar control -- in its default mode, as far as I can tell -- and when I click on the control, instead of showing a calendar of the days of the month, the popup is a list of months on left side and years on the right side.

I've looked through all of the documentation and don't see what setting is controlling this.

I just want to see a normal calendar of the days of the month when I click on the control (just like in the demos on your web site).

Any idea what's going on?

Thank you.
Allen Gleazer



  
Princy
Top achievements
Rank 2
 answered on 15 Sep 2009
3 answers
93 views
How would I apply grid column filters that use an OR condition between the user provided filter values? 

For example, I have a grid with two columns and the user supplies filter value of column1 = x and column2 = y.

The default query performs ...WHERE column1 = x AND column2 = y

I want the data returned to be based on ...WHERE column1 = x OR column2 = y

Thanks in advance!
Rosen
Telerik team
 answered on 15 Sep 2009
1 answer
78 views
Hi,

I am sure that this is a nice easy question, been playing with the RadGrid for the past hour (newbie to Telerik) and cannot get it to work in the way I would expect with advanced data binding.

I am using LINQ for SQL, if I use a LINQDataSource on the page then everything works as expected however if I try to bind a custom data query in the code behind I am presented with an empty Grid (same query works ok with a normal GridView object).

In the little research I have done I have discovered that the NeedDataSource event should be used and in this scenario .DataBind is not necessary so my code looks as follows:

protected

 

void RadGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 

{

 

    DataClassesDataContext MyData = new DataClassesDataContext();

 

 

    var LINQQuery = from MyObject in MyData.Objects

 

 


    select
new

 

    {

        Object_Type = MyObject.Object_Type.Name,

        Owner = MyObject.Owner_ID

      };

RadGrid.DataSource = LINQQuery;

}

On execution my RadGrid object shows no data (if I put the exact same query in the Page_Load event with DataBinf and assign it to a normal GridView then it works no problem.

I am sure I am missing something obvious but it's late so I need somebody to point it out.

Many thanks,

Tim 

Tim Joslyn
Top achievements
Rank 1
 answered on 15 Sep 2009
2 answers
155 views
I have a client-side bound grid via WCF that I would like to update (edit) completely at client-side.
I read and downloaded an example Vladimir E. here. The example uses an ItemTemplate to present the editor controls.  I am trying to achieve something very similar but instead using GridTemplateColumn with a RadTextBox inside.
I trigger the following code onBlur client event:

function updateItem(sender, e) {
var parent = $find(Telerik.Web.UI.Grid.GetFirstParentByTagName(sender._element, "tr"));
var item = parent.id;
var columns = tableView.get_columns();
var dataItem = item.get_dataItem();

var newObject = new Object();
return false;
}


The var "parent" is always null I tried to use sender._parent, sender._element.parenNode, etc without success.

This is how the GridTemplateColumn looks like:

<telerik:GridTemplateColumn SortExpression="EntryId" DataField="EntryId" HeaderText="EntryId">
<ItemTemplate>
                     <telerik:RadTextBox ID="txtEntryId" runat="server" Width="80px" ClientEvents-OnBlur="updateItem" />
                 </ItemTemplate>
</telerik:GridTemplateColumn>

I could not find any documentation on the method Telerik.Web.UI.Grid.GetFirstParentByTagName, can you guys please point me in the right direction?

Thanks in advanced,

Fernando M.

Veli
Telerik team
 answered on 15 Sep 2009
1 answer
80 views

Everything was working fine. We've upgraded to 2009.1.527.35 and it broke the close command on docs.

 

 

DockCloseCommand objDockCloseCommand = new DockCloseCommand();

 

objDockCloseCommand.OnClientCommand =

"dockClose_Click";

 

objDockCloseCommand.Text =

"Close";

 

currentDock.Commands.Add(objDockCloseCommand);

 

 

function dockClose_Click() {

 

//this never gets executed
alert(

'test');

 

}

Funny part about it is that if dockClose_Click does not exist I get an error when page loads.
Please help, this is urgent.

Pero
Telerik team
 answered on 15 Sep 2009
3 answers
664 views
Hi all,

I have a requirement to change the header text at runtime.
I have one gridtemplate column like the following:

 <radG:GridTemplateColumn DataField="id" HeaderText="ID" SortExpression="id"
                        UniqueName="id">
                       
                        <EditItemTemplate >
                            <asp:TextBox ID="Txtid" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Id") %>' style="position: static" OnTextChanged="Txtid_TextChanged" AutoPostBack="true"></asp:TextBox>
                            <asp:ImageButton ID="MediaIDLookup" runat="server" BorderStyle="Solid"
                                Height="18px" ImageUrl="~/Images/magnifier.gif" Style="position: static" Width="21px" OnClick="IDLookup_Click" />
                     
                            </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Lblid" runat="server" Width="120px" Text='<%# DataBinder.Eval(Container.DataItem,"Id") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle ForeColor="Black" />
                    </radG:GridTemplateColumn>

when i click the image button, a new web page opens , i get the value from new page and i need to change the header text of the id column to new value that i picked from new page.

Pls advice how to do that.
Shinu
Top achievements
Rank 2
 answered on 15 Sep 2009
3 answers
126 views
I have just upgraded to the new version of radeditor by replacing the dll and xml files. There are a few strange behaviours.  I have set  <ImageManager ViewPaths="/" UploadPaths="/" DeletePaths="/" /> so that the default location is set to the root folder.

When I open the image manager window, the top few buttons are greyed out except for the refresh button.
 
If i try to right click on the folder icon on the left hand side and create a new folder, the panel is not updated with the new folder. If I exit the page and come in again, I can then see the new folder there.

After that, I tried uploading images and it could work. However, the file size is incorrectly displayed as 0. Moreover, inserting the image into the picture does not work sometimes and I have to try a few times. 

Flash manager and media manager have the same problem too.

Rumen
Telerik team
 answered on 15 Sep 2009
1 answer
72 views
I am designing a User Interface. I have 2 grids on a page and I need to place them side by side horizontally. Any suggestions?
Thanks!
Shinu
Top achievements
Rank 2
 answered on 15 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?