Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hi.

I seem to be a little lost.

I have a dynamically-generated datasource for my RadGrid, with AutoGenerateColumns=true.  In all columns but one, I'd like to sum the column.

I'm not seeing access to the GridColumn.Aggregate property on the server side, or any means to indicate that I wish to aggregate my auto-generated columns on the front end.  I'm sure something is there, but I'm not finding it.

Thanks in advance.

John
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2008
1 answer
298 views

 

Hi i have a Grid where i have a GridButtonColumn which i would like when clicked to call a JavaScript method, which takes the ingredient_id as a parameter which in turn opens a RadWindow.

Is there any way for me to do something like the snippet below ?

<
telerik:GridButtonColumn ButtonType="ImageButton"

 

 

Text="Slet" UniqueName="DeleteColumn"

 

 

OnClientClick="openDeleteConfirm(<%# DataBinder.Eval(Container.DataItem, "ingredient_id") %>)">

 

 

</telerik:GridButtonColumn>

 

 

Shinu
Top achievements
Rank 2
 answered on 04 Nov 2008
1 answer
157 views
Hi.. I have a hyperlink column.

 

<telerik:GridHyperLinkColumn DataTextField="Subject" HeaderText="Subject " UniqueName="Subject" />

 

I need to create the navurl on the fly when the data is bound.. But the hyperlink does not seem to work and is not enable. What is wrong with the following ?  Thanks

 

 

protected void RadGridCompleted_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{


 

 

HyperLink link = (HyperLink)dataBoundItem["Subject"].Controls[0];

 

link.ID =

"Subject";

 

 

QueryString qs = new QueryString();

 

qs[

"MESSAGEINDEX"] = dataBoundItem.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["MessageIndex"].ToString();

 

qs[

"CorrespondenceID"] = dataBoundItem.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["CorrespondenceID"].ToString();

 

link.NavigateUrl =

string.Format("ViewEmail.aspx?MessageIndex={0}&CorrespondenceID={1}&redirect=ProcessCompletedCorrespondence.aspx&reply=false", qs.ToString(), qs.ToString());

 

 

link.ForeColor = System.Drawing.

Color.Black;

 

link.Font.Underline =

false;

 

 

 





}
}

Princy
Top achievements
Rank 2
 answered on 04 Nov 2008
1 answer
515 views
Hi,

I have a grid with the folllowing gridTemplateColumn:

<telerik:GridTemplateColumn UniqueName="MoveCol" HeaderStyle-Width="40px">  
    <ItemTemplate> 
        <asp:ImageButton ID="cmdMoveUp" runat="server"></asp:ImageButton> 
        <asp:ImageButton ID="cmdMoveDown" runat="server"></asp:ImageButton> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 

Need to find out how to do the following:

1). Disable both buttons if grid rowcount is less than 2.
2). Enable and disable both buttons based on the grid total rowcount and not page row count.
3). For cmdMoveUp how do get the grid rowindex to make sure its greate than 0 ?
4). For cmdMoveDown how do I get the grid rowcount to evaluate if grid rowindex is less than it?

5). Can you please clarify the difference between using 

ItemCreated and ItemDataBound events and which is the appropriate event for manipuating values of template controls such as the above.

Thanks,

Colin

Shinu
Top achievements
Rank 2
 answered on 04 Nov 2008
1 answer
100 views
Hi,

I have a grid that has a number of columns that must be shown or hidden based on a selection from an external combobox.

Where is the best place(event) to place the code to show/hide these columns in an ajaxed gird? 

Page_Init, Page_Load or perhaps NeedDataSource?

Thanks

Colin
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2008
4 answers
210 views
You have provided an example of how to create a dynamic RadPageView, loading a dynamic user control.
http://demos.telerik.com/aspnet/prometheus/TabStrip/Examples/ApplicationScenarios/DynamicPageView/DefaultCS.aspx

How does one then pass a variable value into this dynamic user control?

Your example doesn't show that.

thanks.

Moon.

Blaize
Top achievements
Rank 1
 answered on 03 Nov 2008
10 answers
379 views
I love this control, however the bottom of my checkboxes are getting cut off.  What would be causing this?  I have tried adding height to them and it doesn't make a difference.

It looks like below, text is fine but as you can see the bottom is missing.
__
|   | CheckBoxText
DGDev
Top achievements
Rank 2
 answered on 03 Nov 2008
1 answer
104 views

Hi,

I have a hierarchical radgrid and I use a radwindow to edit the records of the grid.
When I close my radwindow, I want my grid to refresh while keeping the hierchical "settings" (what was expanded is still expanded)

I use a javascript function that fires a AjaxRequest and then I rebind my grid and I try to add a selectedIndexes but my grid is all collapsed. I guess while the Page_Load was execute before the "add selectedIndexes" it doesn't work.

I use SqlDatasource to bind my grid.
I know you can use hierarchical "Client" load mode but the loading is way too long.
Is it possible to do what I want without the hierarchical load mode set to Client ?

Thanks
Francis
Francis
Top achievements
Rank 1
 answered on 03 Nov 2008
1 answer
102 views
Is it possible to run the current RadControls for Ajax concurrently with Q1 2007? 
Dimo
Telerik team
 answered on 03 Nov 2008
3 answers
57 views
Do you have a place where it tells about installing the product?

For instance, I have installed and registered the dlls' and skins. But I am curious what the /Scripts folder is from the main project you provide with the trial download.

I copied it into my project as well. Is it needed? What is it for?

Next, I notice there are a lot of forum responses that include .zip files. Is there one spot where I can take a look at all the .zip projects you have created to download and try them out?

thanks.
Moon

Dimo
Telerik team
 answered on 03 Nov 2008
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?