Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
168 views
I have column:
        <telerik:GridTemplateColumn HeaderText="Profit"><ItemTemplate> 
            <asp:Label ID="profit" runat="server"></asp:Label></ItemTemplate> 
        </telerik:GridTemplateColumn> 

And I want to update each label in this column from JavaScript function.

For example, event onkeyup for some textbox outside the Grid.

After enter some value, all values in column Profit is changing.

How can I get this in Javascript and iterate through all cells in "Profit" column?


Tsvetoslav
Telerik team
 answered on 13 Nov 2009
2 answers
224 views
Hi,

Binding RADGrid to list object in general case scenario works good. But I have a situation where I am using the RADGrid for showing hierachical data and I am using self referencing telerik RADgrid grid. For the first level my parentFileID property has null value. so I want to filter my records for masterTableView with FileParentId.

The below code gives error when I bind the grid to a list object.

if

(Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("3.5") != -1)

 

{

grdsearchresult.MasterTableView.FilterExpression =

@"it[""FileParentID""] = Convert.DBNull";

 

}

 

else

 

 

 

 

{

grdsearchresult.MasterTableView.FilterExpression =

"FileParentID IS NULL";

 

}

For Eg:

 

 

List

<SearchResult>  listSearchResults=new List<SearchResult>();

grdsearchresult.DataSource = listSearchResults;

 

grdsearchresult.DataBind();
Here my datasource is List Type Object.The grid shows all records if I dont filter it.
So While binding the master records I get error index is not defined.?
Can't I bind the RADGrid with list object and provide filter to it.

Please reply.
Thanks,
Yuvika

Yuvika
Top achievements
Rank 1
 answered on 13 Nov 2009
1 answer
126 views
I see the option, but at what point in the life cycle should i set the item to edit mode?
Marc Messer
Top achievements
Rank 2
 answered on 13 Nov 2009
10 answers
205 views
Hi,

I am using the RadGrid for AJAX and have enabled client-side select.

I have noticed that the process time for SelectedIndexChanged Event is directly proportional to the number of items in the grid.
Because I have an empty event handler that handles the SelectedIndexChanged Event, but the more items I have in the grid the longer the loading panel stays on the page.
Is this the case? If so, is there a way to optimize it?

Thanks,
Vincent
Iana Tsolova
Telerik team
 answered on 13 Nov 2009
1 answer
128 views
This is not really a question, but a suggestion that I think the RadTextBox control should have.

I like the RadTextbox's ability to show a button, but I was wondering if it would be possible to give it the ability to change the button type, so instead of the image button type to allow a normal button to be used where you could modify it's text property.

I think that would be a great addition to the control.
Dimo
Telerik team
 answered on 13 Nov 2009
3 answers
345 views
Hi,

I need to find the id of the data items to be bound on radgrid1_ItemCreated.
Please refer to image attached with this post and code block below:


protected void gvManualOrder_ItemCreated(object sender, GridItemEventArgs e) 
        { 
             
                 
            if (e.Item is GridDataItem) 
            { 

I need to find the id on this item created event for all data being bind to the grid and pass those ids to database to validation & checks.
So what will be code for
ID ......


Thanks,
Awadh



Awadh .
Top achievements
Rank 1
 answered on 13 Nov 2009
1 answer
111 views

Hello, this is my code for bind a dropdowlist in ItemTemplate that has a Bind("field")

it's work fine, but in Edit Mode one time in    
list.DataSource = dsDropDown
give the error:

    {"Object reference not set to an instance of an object."}
   
Then in I'm using a catch for this error, and all is fine.

Do you know a solution for don't use the catch?

  Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated

    If (TypeOf e.Item Is GridDataItem AndAlso e.Item.IsDataBound) Then

      Try
        Dim dsDropDown As New DataSet()
        OleDbCnn = New Data.OleDb.OleDbConnection(Session("CONNECT_DBS"))
        Dim item As GridDataItem = e.Item
        Dim list As DropDownList = item.FindControl("DDL_AREA_GEOGRAFICA_NAME")
        OleDbSql = Area_Geografica_Code()
        Dim OleDbDad As New Data.OleDb.OleDbDataAdapter
        OleDbDad = New Data.OleDb.OleDbDataAdapter(OleDbSql, OleDbCnn)
        OleDbDad.Fill(dsDropDown)
        list.DataSource = dsDropDown
        list.DataTextField = "NAME"
        list.DataValueField = "CD_CODE"
      Catch ex As Exception
        ex.Message.ToString()
      End Try

    End If

  End Sub

Thanks for any help

Pavlina
Telerik team
 answered on 13 Nov 2009
1 answer
185 views

Hello, this is my code for bind a dropdowlist in ItemTemplate that has a Bind("field")

it's work fine, but in Edit Mode one time in     
    list.DataSource = dsDropDown
    give the error:

        {"Object reference not set to an instance of an object."}
   
Then in I'm using a catch for this error, and all is fine.

Do you know a solution for don't use the catch?

  Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated

    If (TypeOf e.Item Is GridDataItem AndAlso e.Item.IsDataBound) Then

      Try
        Dim dsDropDown As New DataSet()
        OleDbCnn = New Data.OleDb.OleDbConnection(Session("CONNECT_DBS"))
        Dim item As GridDataItem = e.Item
        Dim list As DropDownList = item.FindControl("DDL_AREA_GEOGRAFICA_NAME")
        OleDbSql = Area_Geografica_Code()
        Dim OleDbDad As New Data.OleDb.OleDbDataAdapter
        OleDbDad = New Data.OleDb.OleDbDataAdapter(OleDbSql, OleDbCnn)
        OleDbDad.Fill(dsDropDown)
        list.DataSource = dsDropDown
        list.DataTextField = "NAME"
        list.DataValueField = "CD_CODE"
      Catch ex As Exception
        ex.Message.ToString()
      End Try

    End If

  End Sub

Thanks for any help

Pavlina
Telerik team
 answered on 13 Nov 2009
1 answer
103 views
Hi

I'm having to create an admin form with a list of roles down the left and privilages across the top. At each intersection there will be a checkbox.

Would this be a suitable applcation for the listview control?

If yes do you have any examples as I'm struggling a bit, but it would help knowing it is possible before I spend too much time on it.

My original route was / is the use of nested repeaters.

Andy
Sebastian
Telerik team
 answered on 13 Nov 2009
2 answers
84 views
Hi

Is it possible to only make some columns in a RadGrid filterable? (I have some hyperlinks that it doesn't make sense to filter).

Also, is it possible to make filtering non case sensitive?

Re
Dennis
Dennis Gundersen
Top achievements
Rank 1
 answered on 13 Nov 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?