Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Team,

   I am using the radgrid and i have template column which has textbox field.
I need to capture the textbox field values/text when I move out of the current row to the next row. so that i have to save the modified value in the DB and reload the grid.

Can you help me what method and what property to use to capture the row index  in the code-behind ?

Thanks
Vijay
Princy
Top achievements
Rank 2
 answered on 04 Nov 2008
1 answer
110 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
292 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
154 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
505 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
95 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
205 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
368 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
102 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
97 views
Is it possible to run the current RadControls for Ajax concurrently with Q1 2007? 
Dimo
Telerik team
 answered on 03 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?