Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
138 views

I one of the grid I set

<

 

ClientSettings Selecting-AllowRowSelect="true">

 

 

</ClientSettings>

 

it is selecting without problem

But it is not working for the anchor,  like i have the following

<

 

telerik:GridTemplateColumn HeaderText="Phone Number">

 

 

<ItemTemplate>

 

 

<a title="Play" ><%# Eval("PhoneNum")%></a>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 
Please help me select the row when i click on the anchor
Regards
Arijit
arijit
Top achievements
Rank 1
 answered on 10 Dec 2009
1 answer
197 views
Hi there,

I am a bit confused about how to add a data point to the chart.  As in MS products, I would do MyChart.Series["SeriesName"].Points.AddXY(....)

When I want to manually add a X and a Y value such as (X = "ProductA" , Y = 50) and (X= "ProductBB", Y =100), how would you do?

Thanks.
Schlurk
Top achievements
Rank 2
 answered on 10 Dec 2009
6 answers
153 views
Hi,

I want to apply a custom skin for RadGrids so I followed the exact instructions mentioned in the documentation, but when I tried to apply it I’ve got many problems, for example:

 

 

  • EditCommandColumn image doesn’t appear.
  • problems related to images alignment (selected row, header,…etc).

 

Note: my grids support RTL.

Dimo
Telerik team
 answered on 10 Dec 2009
1 answer
113 views
Hello,

I want implement to the "(un)check 'Select All' check box automatically" code no in the MasterTable but in a DetailTable.
The difficult is on getting the id of the checkbox in the header beacause I can have either, one expanded DetailTable (i.e for the item 0 in the MasterTable), or several expanded DetailTables (i.e. for the itel 0 and for the item 6 in the Mastertable).
So i have 1, 2, 3 ... IDs.

I was trying to get the GridTableView handing the event "OnTableCreated" this way :

var view; 
function gettingIDs(sender, arg) 
{ 
    view=arg.get_tableView(); 
} 

then I reach the property "all". Here I have 9 element (even my TableView have no more than 8 columns), and I reach the element  [1]
that correspond (i think) to the "GridClientSelectColumn" and I get the id (The fist column in my tableView is the GridClientSelectColumn, i dont know what is the element [0]).

Is this the correct ID?
Is there anyway to perform that in a sympler way?

thank you for the help.




Sebastian
Telerik team
 answered on 10 Dec 2009
1 answer
145 views
I have problems with the refresh of the records in Rad Grid.

I have a form into panel where I edit items of the Rad Grid, but when I Save the data the Rad Grid is not updating its content.
I tried with myRadGrid.MasterTableView.Rebind() after the data saving.

Also I trying calling a method to update the rad grid content after save the data.
Any ideas?.
Thanks in advance
private void GetRadGridData() 
    { 
        try 
        { 
            myRadGrid.ControlStyle.Reset(); 
            myRadGrid.DataSource = GetData();
            myRadGrid.DataBind(); 
        } 
        catch (Exception ex) 
        { 
            Master_Cat.HandleException(ex); 
        } 
    }
Francisco Tirado
Top achievements
Rank 1
 answered on 10 Dec 2009
1 answer
355 views
I wonder if someone could please help with the following issue I have. This is our last-roll-of-the-dice with Telerik components before we decide to ditch them in favour of our own implementations, everything is just too difficult or example code out-of-date.

Problem
We have decided to move one of our RadGrid test-cases to client-side binding using a web service. Initially starting with [WebMethod]'s in the aspx page we moved to a ASMX service to we could enforce session and reduce the data calls (as detailed in the Telerik demos here); it says:

To optimize even more the grid client-side data binding you can get both data and total items count in a single request. Example:   
...  
    [WebMethod(EnableSession = true)]  
    public Dictionary<string, object> GetDataAndCount(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression)  
    {  
        Dictionary<string, object> data = new Dictionary<string, object>();  
 
        data.Add("Data", GetData(startRowIndex, maximumRows, sortExpression, filterExpression));  
        data.Add("Count", (int)Session["Count"]);  
 
        return data;  
    }  
...  
 

Simple huh!? No, as web services apparently no longer support IDictionary:

The type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not supported because it implements IDictionary.  

Ultimate goal
What I'm trying to (ideally) achieve here is webservice that returns data two sets of data for (a) mastertableview and (b) detailtable as one call without making secondary calls to get the data count (especially as it will relate to the VirtualItemCount). If this isn't possible I'm happy to make two seperate calls, one for the mastertableview and one for the detail view, but I do not want to make a second call for 'record count' on each of the those calls (thus making 4).

Is this possible or are we better doing something else? Your urgent thoughts on this much appreciated!

Ian
Sebastian
Telerik team
 answered on 10 Dec 2009
1 answer
161 views
I cannot figure out how to fire the selectitem event when clicking on a RadBinaryImage object that is inside a RadListView. Is this possible? I do not want to have any other visible buttons, just the RadBinaryImage must be visible inside the listview. Once the binaryimage is clicked I need to see the dataitem and do something with it. Any suggestions?
Sebastian
Telerik team
 answered on 10 Dec 2009
4 answers
136 views
Hi all.

I have a document manager that needs to display a folder containing 2000 files in the root. Furthermore, there are about 25 subfolders containing an additional 1000 files. (Currently using 2009.1.402.20). Currently only Chrome will eventually display the entire structure. All other browsers will time-out or freeze.

I've found two related threads on this:

1. An older one that states the document manager is designed for 200-300 files. It recommends to change the structure and so on. Unfortunately this is not something we can control.

2. The newer one states that since 2009.1.527.35 there is a paging option in the file/document manager, which would speed up the rendering.

I'll try to upgrade and see what happens, but my question is on the paging. I could not find any info on this in the docs. Is it turned on by default ? How can I control this feature ? Where can I find more info on this ?

 

Added a screenshot from the IE8 profiler, which identifies the dataBind function as the main cause for the delay. Apparantly this is the main issue on IE, because chrome and safari take 30 secs - 1 min, but finish without problems. Firefox shows a dialog with a script warning (very soon in my opinion), but then finishes rather quickly.


Regards, Hans
Fiko
Telerik team
 answered on 10 Dec 2009
1 answer
162 views
Hi,

is there some way to preload website in window. When after radWindow is opened no loading is needed?

Thanks!

Svetlina Anati
Telerik team
 answered on 10 Dec 2009
1 answer
134 views
Hi,

I currently have a  collection class that is basically a List<T> called Preferences.   T is a class with a property called PreferenceOrder.
I bind the collection to the radgrid on the RadGrid1_NeedDataSource like so:
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        {          
            this.RadGrid1.DataSource = Preferences; 
        } 

the rad grid is defined as:
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True" CssClass="RadGrid" 
    AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true"        
    OnPreRender="RadGrid1_PreRender"     
    OnNeedDataSource="RadGrid1_NeedDataSource"  
    OnUpdateCommand="RadGrid1_UpdateCommand" 
    OnInsertCommand="RadGrid1_InsertCommand"  
    OnDeleteCommand="RadGrid1_DeleteCommand" 
    > 
     
    <MasterTableView Width="100%" CommandItemDisplay="Top" AllowSorting="False" > 
         
        <Columns> 
            <telerik:GridTemplateColumn UniqueName="TestingMoveItemUp" HeaderText=""> 
                <ItemTemplate> 
                    <asp:Image  id="imgMoveUp" class="up" ImageUrl="~/images/applications/up.gif"  
                                onclick="grd_RowMove(this, true);"  
                                AlternateText="Move Up" runat="server"></asp:Image> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
             
            <telerik:GridTemplateColumn UniqueName="TestingMoveItemDown" HeaderText=""> 
                <ItemTemplate> 
                    <asp:Image  id="imgMoveDown" class="down" ImageUrl="~/images/applications/down.gif" onclick="grd_RowMove(this,false);" AlternateText="Move Down" runat="server"></asp:Image> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
             
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"> 
            </telerik:GridEditCommandColumn> 
            <telerik:GridTemplateColumn UniqueName="PreferenceOrder" HeaderText="Order" DataField="PreferenceOrder">                 
            </telerik:GridTemplateColumn> 
            <telerik:GridBoundColumn UniqueName="CourseCode" HeaderText="Code" DataField="CourseCode"> 
            <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn" Text="Delete" CommandName="Delete" /> 
        </Columns> 
         
    </MasterTableView>    
     
</telerik:RadGrid> 

I have tried a few javascripts to swap the rows that are bound to this grid, but this is not being persisted to the datasource of the grid, which is the Preferences  collection.

What can i do to perform this swap client side but have this reflected in the Preferences Collection on the unload of the page/control?

Veli
Telerik team
 answered on 10 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?