Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
305 views
Hi,
I'm getting "Specified cast is not valid" when clicking "Add new".
When clicking on "Edit" on an existing row works fine.

<telerik:GridTemplateColumn UniqueName="CheckListChecked" HeaderText="<%$ Resources:resources,Label_Finished %>"
<ItemTemplate> 
      <asp:CheckBox ID="checkBoxCheckListChecked" Enabled="false" runat="server" Checked='<%# (Container is GridEditFormInsertItem) ? false : Eval("IsChecked") %>' /> 
</ItemTemplate> 
<EditItemTemplate> 
      <asp:CheckBox ID="checkBoxCheckListChecked" runat="server" Checked='<%# (Container is GridEditFormInsertItem) ? false : Eval("IsChecked") %>' /> 
</EditItemTemplate> 
</telerik:GridTemplateColumn> 

The checkbox in itemtemplate works but not the one in edititemtemplate when creating a new row. Why?

/Mattias
Nikolay Rusev
Telerik team
 answered on 24 Nov 2009
13 answers
804 views

Hi dear telerikers!

I was just playing around with the new Prometheus Controls and would really like to inherit from RadGrid to extend it a little (for example i would rather open up the Editform as a RadWindow instead of using the built in custom editform)

I built a Server Control Library, added a reference to Telerik.Web.UI and also to System.Web.Extensions.

The custom control is defined as follows:

using

System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Softwaretailor.Web.UI.WebControls
{
   public class CustomGrid : Telerik.Web.UI.RadGrid
   {
   }
}

Afterwards I added a Web Application and referenced the Server Control Project.

I modified the web.config file:

<

pages>
 
<controls>
    <
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <
add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <
add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
    <
add tagPrefix="swt" namespace="Softwaretailor.Web.UI.WebControls" assembly="Softwaretailor.Web.UI"/>
  </
controls>
</
pages>

When I add

<

telerik:RadGrid ID="RadGrid1" runat="server"></telerik:RadGrid>

everything works as expected....

trying to use my custom control like

<

swt:CustomGrid ID="CustomGrid1" runat="server"></swt:CustomGrid>

I get a Visual Studio (2008) warning:

Warning 1 Generation of designer file failed: Unable to create type 'swt:CustomGrid'. Could not load file or assembly 'Telerik.Web.UI, Version=2007.3.1218.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified. D:\My Documents\Visual Studio 2008\Projects\RMA Management\WebPlayground\Default.aspx 18 0 WebPlayground

The project compiles, but neither is the designer-file modified correctly, nor do i get intellisense support in the .aspx file....

I'm literally tearing my hair the last hour... can't figure out what I'm doing wrong...

Any help greatly appreciated!!

Kind regards,
Wolfgang

archimede
Top achievements
Rank 1
 answered on 24 Nov 2009
1 answer
115 views
Hi ,

I Have radgrid, I want to show a webpage when user double clicks a row in that radgrid
the page contains some more details about that record
I have acheived this all
What i now need is, Dynamic change of title bar of that popping up webpage
I need the title bar of the window to be based on the record clicked by user
for example if a user clicks the record which has the main field as anvesh then the title of that page should be anvesh
if the user clicks the record which has main field as princy or ronald it has to be reflected as title of the page
i have used javascript for popping up webpage so i think it would be better if u give me an idea in javascript
i do know how to do it in code behind
so pleasse help me

Thanks
Roland
Top achievements
Rank 1
 answered on 24 Nov 2009
2 answers
126 views
Hi!  I have some troubles finding a solution to disable deleting and editing for SOME appointements.
So far, I've only seen examples for disabling this for ALL of the appointements.
I tried setting "AllowEdit" to false but this doesn't seem to be it.
The javascript code for OnAppointmentEditing doesn't allow me to do server-side logic so that didn't help much.
Thanks in advance!
Emilie Lessard
Top achievements
Rank 1
 answered on 24 Nov 2009
2 answers
175 views

I have a gridview with 3 levels and wants to use CommandItemTemplate in all 3.

I am using the command items depending of the mode the user is entering data (insert/update/delete)

F.eks the "Insert" button
asp:LinkButton ID="btninsert" runat="server" CommandName="PerformInsert" Visible='<%# RadGrid1.MasterTableView.IsItemInserted%>'>

 

 

<img style="border:0px" alt="" src="<%= this.TemplateSourceDirectory %>/Images/Insert.gif" />Insert Message

 

 

</asp:LinkButton>

 

 

 

and the delete button

 

 

<asp:LinkButton ID="LinkButton1" runat="server" Visible='<%#RadGrid1.EditIndexes.Count == 0 && !RadGrid1.MasterTableView.IsItemInserted%>'

 

 

OnClientClick="javascript:return confirm('Delete this Message?')" CommandName="DeleteSelected"><img style="border:0px" alt=""

 

 

src="<%= this.TemplateSourceDirectory %>/Images/Delete.gif" /> Delete Message
</asp:LinkButton>

 

 

 


The problem is the visible code asking if MasterTableView is in insert mode. I need the the possibility to ask if the child is in insert mode.

any suggestion ?

thx Torben
 

Talha
Top achievements
Rank 2
 answered on 24 Nov 2009
1 answer
111 views
Is there a way to get a click event when the users clicks on a resource item?  
Peter
Telerik team
 answered on 24 Nov 2009
4 answers
235 views
Dear Experts,

I have a issue on setting the RadDatePicker Date using set_selectedDate client side method.
I have also set the culture of the RadDatePicker contrl.

I am able to perform this - Culture - en-US

        rdpicker.set_selectedDate(

new Date('05/01/2009'));

But I am unable to perform this - Culture - de-DE
        rdpicker.set_selectedDate(new Date('05.01.2009'));

I guess this could be the problem on date format in client side.

Could you please help me on this?

Thank you,
Deva

 

Deva Kumar
Top achievements
Rank 1
 answered on 24 Nov 2009
9 answers
165 views
Hi
I am using a Radgrid I have used javascript to popup a webpage when user double clicks on any row
The webpage contains details about that record
I have used Client settings tag of Radgrid for calling the JavaScript function
Everything is working fine A new web page is popping up when user double clicks any row on the radgrid
But my problem is that the page which is popping up doesn't showing any title bar or menu bar or status bar
I surely need title bar to be shown as i need to show the row name on it to the users
The javascript is given here

function RowDblClick()
{
window.radopen(

"SasWorkLogInfo.aspx?TicketID=" + eventArgs.getDataKeyValue("Request"), "worklog", titlebar, scroll, status);

 

 

}

<

 

ClientSettings>

 

 

 

<ClientEvents OnRowDblClick="RowDblClick" OnRowClick="RowClick" />

 

 

 

</ClientSettings>

Thanks

 

 

Mark Galbreath
Top achievements
Rank 2
 answered on 24 Nov 2009
6 answers
377 views
Hi
I have problem when I try to add some controls (not all, i.e. RadCalendar) on page instead of control it appears box with error message like this:>> Error Creating Control - RadCalendar1Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified<<. I've read some posts and checked if assembly exist (Telerik.Web.UI), and it does in web.config and in assemblies folder. What is causing this, and what is solution?

Thanks
Merso
Erjan Gavalji
Telerik team
 answered on 24 Nov 2009
1 answer
72 views
Hi
      I am using rad grid, which is having the functionality of updating and deleting. There are lot of table conneted with the grid.

Say example, i used Table1 to bind the grid initially. But i used some other table data information to view and bind the edit form.
A lot of table data to be used to bind the controls of EditForm. There i used to loop dataset to check the  condition and bind the data with relevant control. But some of the controls need to bind directly without condition checking..

Since the informations are related from different tables or procedures which would be the best way to bind the data with the control  for the edit form.


-Thanks
Sebastian
Telerik team
 answered on 24 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?