Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hi All,

Have a Radgrid with a record in Check box.

AutomaticInsert="False"
AutomaticUpdate= "False"
AutomaticDelete = "False"

When Edit is clicked Works fine.

When Add New Recod is clicked Error appears

<telerik:GridTemplateColumn HeaderText="Is Earning?" UniqueName="Earning"   
                     DataField="Earning"  SortExpression="Earning">  
                       <ItemStyle HorizontalAlign="Center" Width="10%"  /><%--Width="70px"--%>  
                        <HeaderStyle HorizontalAlign="Center"  />  
                        <ItemTemplate>  
                        <asp:CheckBox ID="chkEarning" runat="server" Enabled="false"    
                        Checked='<%# Convert.ToBoolean(Eval("Earning")) %>'></asp:CheckBox>  
                        </ItemTemplate>  
                        <EditItemTemplate>  
                          <asp:CheckBox ID="chkEarningEdit" runat="server"                             
                          Checked='<%# Convert.ToBoolean(Eval("Earning")) %>'></asp:CheckBox>                           
                        </EditItemTemplate>  
                    </telerik:GridTemplateColumn> 

Object cannot be cast from DBNull to other types.

In the Check Box.

The Problem is while Add New Record, The Earning has the value NULL, How to rectify this.

-Anto
Daniel
Telerik team
 answered on 03 Nov 2009
1 answer
125 views
First, I realize I can use RadInputManager to eliminate the init function by using plain old asp.net controls.

Now that we have that cleared up, why in the world would you want to make me have to do that?!?! Seriously, I buy controls from a control vendor to make my life easier not to create more work. I need to be able to drop a control from a control vendor on a page, set it properties, and move on to my next task. 

You REALLY need to do something to make your controls faster on page load by either not having every control call an init function or making them smart and calling a single init function. And if it is the second option then that single init function had better be fast. I'm at the point where I'm going to have to make a go / no go decision on using the RAD Controls anymore because they are sooooooooooooo sllllllllllllooooooooooooooooowwwwwwwwwwwwwwwwwwwww!!!!!
Vlad
Telerik team
 answered on 03 Nov 2009
2 answers
157 views
I've been researching optimization tips and tricks and have been playing around with disabling viewstate on my grids. However, I've ran into an issue where the ItemCommand event doesn't fire when disabling viewstate. This is an issue for me because nearly all my grids are functional; i.e. they are not display only grids. I also use DataKeyNames quite extensively and am curious if this is affected by disabling viewstate.

So, I just wanted to verify that it is expected that ItemCommand will not fire when viewstate is disabled or if I'm doing something wrong.
Vlad
Telerik team
 answered on 03 Nov 2009
1 answer
97 views

Is it possible to set the width or position of the SlidingPane tabs?


Thanks.


Svetlina Anati
Telerik team
 answered on 03 Nov 2009
1 answer
164 views
I was wondering if there is a way to put only one column in edit mode.

I have tried setting the ReadOnly property to true except the column I want to be in Edit mode. I then use:

for (int i = 0; i < RadGrid_Main.PageSize; i++)
{
       RadGrid_Main.EditIndexes.Add(i);
}

This achieves the effect I am looking for, but then the grid shows the Edit skin for every row. I want to grid to look normal except show edit boxes for only 1 column. Is there any way around this?

Thanks,
Lucas
Princy
Top achievements
Rank 2
 answered on 03 Nov 2009
6 answers
513 views

Sorry to repost, I feel the subject needed a more fitting description

I am  using a RadGrid and have its EditMode set to "Popup".  Within EditFormSettings.FormTemplate, I have the following control declared:
 

<

 

telerik:RadDatePicker ID="txtEffectiveDate" runat="server" Width="150px" SelectedDate='<%# Bind("EffectiveDate") %>'></telerik:RadDatePicker>

 

 

 

The bound property, "EffectiveDate", is of nullable type DateTime?

The grid is supporting Add and Edit mode.  When I edit an object whose EffectiveDate value is null, I don't have any issue.  However, when I go to Add a new item, I get the following issue:

Specified cast is not valid.

Any thoughts?

Thanks much!

Aaron

Princy
Top achievements
Rank 2
 answered on 03 Nov 2009
2 answers
153 views

Hello,

I am having some display issues with the RadAjaxUpdatePanel.

I have a content page with a series of <divs> and controls which I have surrounded by the update panel.

On first view the page elements display perfectly,  after the initial post back, everything shifts left and down.
I have set the property of the update panel to inline to see if this may help and it continues to have the issue. 
I guess I am just trying to figure out what the difference is or what is added after post back that may cause this shift in position. Without the update panel, things look fine even after post back.

I am using the latest Ajax controls.

If it is any help the content tag on the master page is surronded by a Div as well.

Any insight would be appreciated.

Edit:

Using the asp:update panel works fine and does not cause the display issue.
It almost seems as though the radajaxpanel is not correctly using the render:inline.
Is there a way to programatically set this and in what stage of the control render?

Iana Tsolova
Telerik team
 answered on 03 Nov 2009
4 answers
215 views
Hello.

When you open a modal ASP.NET form with the "window.showModalDialog" javascript method and the dialog window closes itself with a return value of zero and you return that value to the parent page, control is returned to the parent calling web page without any postback. This is the case when you set a client script for the OnClientClick property of a LinkButton for instance.

I would like to do the same with RadWindow.
When I open a RadWindow and I push the ESCAPE key the window is closed quickly.
When I close the window like it is explained in the "programming-using-radwindow-as-dialog.html" documentation page, it works but closing the window is slower than with the ESCAPE key. No postback is generated to the parent page but it looks like it was (the activity progress bar is displayed in IE).

How can I close the window like the ESCAPE situation ?

Thanks for your help

Augusto
Augusto Cosatti
Top achievements
Rank 1
 answered on 03 Nov 2009
2 answers
51 views
 I am Sun Yanmei from Huidu Technology Co., Ltd., Chongqing, China.
Now my customer want to buy  RadControls for ASP.NET AJAX , but he has a problem.
He want to know if it can edit more lines , then update all together in grid?

Thank you!
Sun Yanmei
Top achievements
Rank 1
 answered on 03 Nov 2009
1 answer
152 views
Can you please post a working demo becuase even through I have the latest build (as of today), I can't call it without the Telerik managed javascript halting becuase of a null value when calling get_count().
Shinu
Top achievements
Rank 2
 answered on 03 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?