Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
199 views
In my hierarchial grid I want to fill a checkboxlist which depends on two ID's. The first ID (ProjectId) is no problem, the second ID (TaskId) is no problem as well. However, I think there must be source of my problem: The checkbox doesn't show any value. How do I solve this?

a part of my VB-code
 Protected Sub gvProjects_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles gvProjects.ItemCommand  
        If e.CommandName = RadGrid.EditCommandName Then  
             Session("TaskId") = e.Item.OwnerTableView.Items(e.Item.ItemIndex)"TaskId").Text  
        End If 

My SQL-statement
<asp:SqlDataSource ID="dsCheckFile" runat="server"   
  ConnectionString="<%$ ConnectionStrings:DBPortal %>"   
  SelectCommand="SELECT tblFiles.FileId, tblFiles.FileName, FilesPerTask.FileId AS FileToTask, FilesPerTask.TaskId, tblFiles.ProjectId  
 FROM tblFiles LEFT OUTER JOIN FilesPerTask ON tblFiles.FileId = FilesPerTask.FileId  
 WHERE (tblFiles.ProjectId = @ProjectId)"> 
 
<SelectParameters> 
  <asp:SessionParameter Name="TaskId" SessionField="TaskId" Type="Int32"    Direction="Input" /> 
 
  <asp:SessionParameter Name="ProjectId" SessionField="ProjectId" Type="Int32" Direction="Input"/>  
</SelectParameters> 
 
</asp:SqlDataSource> 
Veli
Telerik team
 answered on 25 Aug 2008
8 answers
391 views
Hi guys,
We've been having problems with the RadEditor for ASP.Net AJAX, where the following buttons on the toolbar are not showing up correctly anymore:
  • MOSSInsertTable
  • MOSSInsertTableElement
  • ToggleSource
Specifically, the buttons show up as generic talk bubbles with the "i" icon in them.

We first ran into this problem with the trial version of RadEditor v.5.0.1.0. The buttons showed correctly in the beginning, but then a couple of weeks later, they would appear as the generic talk bubble icon mentioned above.We thought the problem would go away once we installed the full version of the editor.

We recently installed the RadEditor v5.1.0.0 on a new MOSS 2007 server and we've had the same problem.

Can you suggest a fix for this? Are the images for the buttons missing from the server, and if they are, how do we replace them?

Rasmus Lindgren
Top achievements
Rank 1
 answered on 25 Aug 2008
1 answer
170 views
Hi there.

How can i change the ListDataMember of GridDropDownColumn dinamically.I need to solve this problem urgently.

Thankyou.
Princy
Top achievements
Rank 2
 answered on 25 Aug 2008
2 answers
151 views
Hello,

I am using RadGrid for ASP.NET and I was faced following problem:

I am using my client side functions for selecting and deselesting rows in a radgrid. I found out that both can be done by caling SelectRow function (in multi select mode this select unselected row and deselect selected row), because function DeselectRow did not work for deselecting (row stayed selected).
 Then I tryed to automaticaly update second grid based on selections in a first grid with calling AjaxRequestWithTarget. This work well (after selecting row or deselecting row second grid is updated) until the very last row is deselected - then it appers deselected on a client but selected on a server side - is there any work around how to handle this?

Thank you
Jan Krivanek
jan
Top achievements
Rank 1
 answered on 25 Aug 2008
9 answers
152 views
How can I stop row select by sending a confirm popup to user?

What I guess is
<ClientEvents OnRowSelecting="return confirm('select?');" />

But it seems not working.
Yavor
Telerik team
 answered on 25 Aug 2008
1 answer
176 views
I have a Mastertableview and detailstableview.

I want to have a gridtemplatecolumn in GridTableView, and want to assign the value at runtime.

Say my GridTemplateColumn has a label and I want to set the value of the label programmatically in some event (like in simple grid we do it in OnItemDataBound), but here we do not have OnItemDatabound.

Thanks,
Het

Princy
Top achievements
Rank 2
 answered on 25 Aug 2008
1 answer
103 views
Hi,
I need to implement usecase:
  1. User can navigate between cells by arrow keys
  2. User can press Enter to start inplace (in the row) editing
I do not have problem with item #2 (event KeyPress works good). But i looked all your samples and see only Full row select.
Can i select cell instead of row? Can i override RadGrid that implements required feature?
Thanks a lot.
Shinu
Top achievements
Rank 2
 answered on 25 Aug 2008
1 answer
204 views
Hi..
I want to load my page and then 5 seconds later fetch more data and display another grid. How do I use Ajax (I don't see the AjaxTimer) to fetch the data after 5 seconds and show the 'Loading' message using the loading panel.
thanks.. I'm using C#

Kevin Babcock
Top achievements
Rank 1
 answered on 25 Aug 2008
2 answers
426 views
Hello

This is in regard to paging not working in Hirarchial rad grid in the detail table. all i have is one master table and 2 nested tables inside it. I have done custom paging for Master table view and want to use default paging for the nested table. However when i try to move to page 2 in detail table, it is unable to bind as it looks for its source in need data source event where i only have binded it to master table and have set datasource for details table in the DetailTableDataBind event.

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

{

if (!e.IsFromDetailTable)

{

RadGrid1.DataSource = GetGridData();

}

}

protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)

{

GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;

switch (e.DetailTableView.Name)

{

case "Element":

{

string CustomerID = dataItem.GetDataKeyValue("CustomerID").ToString(); 

e.DetailTableView.DataSource = GetDataTable(

"Element", CustomerID);

break;

}

case "Criteria":

{

string OrderID = dataItem.GetDataKeyValue("OrderID").ToString();

e.DetailTableView.DataSource = GetDataTable(

"Criteria", OrderID);

break;

}

}

}

public DataTable GetDataTable(string Type, String Id)

{

DataSet myDataSet;

DataTable myResultsView = new DataTable();

if (Type == "Element")

{

myDataSet = aw.sn.

GetElementListByUnit.ExecuteDataSet (dbConnString,Convert.ToInt32(Id));

myResultsView = myDataSet.Tables[0];

}

if (Type == "Criteria")

{

myDataSet = aw.sn.

GetCriteriaListByElement.ExecuteDataSet(dbConnString, Convert.ToInt32(Id), isignpostId);

myResultsView = myDataSet.Tables[0];

}

return myResultsView;

}

Please help..

Many Thanks
Ash

Ash
Top achievements
Rank 1
 answered on 24 Aug 2008
8 answers
223 views
Hi,

I'm using a RadComboBox control to search for and display records. On the server the ItemsRequested method is returning data based on the input text.

The user can also click the RadComboBox image to perform a search and here comes the tricky part. I would like detect on the server if the event is caused by entering text or clicking the image. The reason to this is that I want to perform a custom search and a default search, where the default search is done with no input text. 

Thanks

Robert
Warnestam
Top achievements
Rank 1
 answered on 24 Aug 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?