Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
104 views
hi

It is strange that I cannot update the date in the DB when i use selectedDate property. No error. the data just didn't get updated in the DB.

      sqlcmdInsClassCode.Parameters.Add(New SqlParameter("@CLC_ClassStartDate", SqlDbType.DateTime)).Value = txtStartDate.SelectedDate

But i change to request.form("txtStartDate") then it is able update the date in the DB. Why? Did i miss something? thanks
L
Top achievements
Rank 1
 answered on 13 Nov 2008
4 answers
254 views
I've added a GridDropDownColumn within a RadGrid and set  DropDownControlType="RadComboBox".
The binding and updating works fine.
It's just that the size of the drop down box is much bigger than the three or four items that are in the DropDown.

I tried converting it to a GridTemplateColumn and using a normal RadComboBox and this worked with the size of
the dropdown matching the number of items in the dropdown.

An example can be found at http://demos.telerik.com/aspnet/prometheus/Controls/Examples/Integration/GridEditors/DefaultCS.aspx?product=grid and clicking on the Title dropdown.

Thanks in advance.

Mike

Mike
Top achievements
Rank 1
 answered on 13 Nov 2008
1 answer
159 views

I have a RadGrid on a page that the auto-insert, update and delete just is not going to work for me based on multiple tables that need to be touched as a result of a single event against the LinqDataSource.

I have been trying for the better part of the afternoon to handle this programatically.

The handler has been created and I can get into it, but in exploring the object, I cannot seem to retrieve the values that I am inserting when clicking on it.

 

 

protected void rgLocations_InsertCommand(object source, GridCommandEventArgs e)

 

{

 

GridEditableItem item = (GridEditableItem)e.Item;

 

}

I am trying to retrieve a string from the textbox on the auto-generated insert form and cannot seem to find the value anywhere.

How can I get the values from these forms?

Princy
Top achievements
Rank 2
 answered on 13 Nov 2008
1 answer
154 views

I am looking for a way to take a data and reformat based on the condition.

how do I use the condition in GridBoundColumn or GridCalculatedColumn?
ex.

 if boundColumn.DataField.text > 1 then
 DataField.text = "> {0}"
 else
 DataField.text = "< {0}"
 end if

Thanks

Daniel
Telerik team
 answered on 13 Nov 2008
1 answer
121 views
Hello,

I put RadEditor inside the UpdatePanel, when button is clicked and postback raised the Editor becomes disabled and nothing is possible to type there, any ideas?

Here is the ASPX code

<asp:UpdatePanel ID="SendPMUpdatePanel" UpdateMode="Conditional" runat="server">
                        <ContentTemplate>
<telerik:RadTextBox SkinID="CustomWidth" MaxLength="255" Width="350" ID="SubjectBox" runat="server"></telerik:RadTextBox>

<table cellpadding="0" cellspacing="0" border="0" width="750">
                                <tr>
                                    <td><asp:Button ID="SendMessageBtn" UseSubmitBehavior="false" OnClick="SendMessageBtn_Clicked"  runat="server" Text="SEND MESSAGE" /></td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
Pavel
Telerik team
 answered on 13 Nov 2008
1 answer
117 views
I made a custom column so I could filter with a MS DropDownList but the problem is when the viewstate is false the it doesnt fire an event when you select the first item in the list.   So I tried replacing with a RadComboBox and got what I expected until I clicked on an other button in the grid. But It appears the RadComboBox always fires the SelectedIndexChanged even if I clicked on a different button on the grid.  Since this in turn fires a command event on the grid the end result is that nothing works anymore.

Is there a solution to this?


Thank you.
Shinu
Top achievements
Rank 2
 answered on 13 Nov 2008
1 answer
152 views
Hi,

I need to construct  grid view that allows the user to setup multiple grouping by columns but also displays a check box next to each node. The issue is that a check box needs to be displayed on the parent row of each one of the groups and allow the user to select all the child rows inside.

Any ideas on how to accomplish this if at all possible?

Thanks
 
Princy
Top achievements
Rank 2
 answered on 13 Nov 2008
0 answers
66 views
Hi ,

Is it possible to open a radwindow popup on item requested event of Radcombobox? If so how? I tried but not get successfull.

Regards,
Jincy
jincy
Top achievements
Rank 1
 asked on 13 Nov 2008
4 answers
120 views
hi

I have the aggregate at the footer of the gird. It work well if you have rows of records.

But i have this situation that at times i do not have any row of record and when i view the page if gave me an error:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 16:             daClasscode.Fill(dtClasscodeA)
Line 17:             RadGrid1.DataSource = dtClasscodeA
Line 18: RadGrid1.DataBind()Line 19:         End If

It is trying to sum a column when there is not a single row of record. How do I overcome this? Thanks
Princy
Top achievements
Rank 2
 answered on 13 Nov 2008
5 answers
171 views
Hi. I was wondering if anyone could tell me how to get the index of a row that's clicked in a radgrid?
Princy
Top achievements
Rank 2
 answered on 13 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?