Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
I need some help ith one o the demos I am trying to use.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

I have created a very similar version except that I am using a pop up window instead and 2 ascx user control forms which just allows the user to enter all info and then edit some info.

The first problem is: with this code behind in the RadGrid1_PreRender event.
if (!this.IsPostBack)
{
this.RadGrid1.MasterTableView.Items[1].Edit = true;
this.RadGrid1.MasterTableView.Rebind();
}

I get this error when my page loads.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Now I am using a hierarchy grid which is pullong data from the same db.

The second issue I am having is the Insert and Update button in the user control form .ascx file. I have this code for the update button which is directly from the demo.
    <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' Font-Size="0.9em" />
</td>
<td>
    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel"
        Font-Size="0.9em" />

For some reason the DataItem is not liked and I am getting this web page request error when I go to edit a record.
Error: Sys.WebForms.PageRequestManagerServerErrorException: c:\test\Web Projects\Sites\Industries VS2008\ Industries\Board\Controls\Admin\EmailSettingsUpdate.ascx(172): error CS0103: The name 'DataItem' does not exist in the current context

Can anyone shed some light here?

Thanks


Tsvetoslav
Telerik team
 answered on 09 Dec 2010
1 answer
80 views
I'm wondering if it's possible to show/hide (set visible to true or false) nested panel items in the panelbar based on a combobox, etc selection in the first panelitem?

Example, a panelbar with 10 total panelitems contained in it.  First panelitem has a combobox.  User selected a value from combobox and only certain subsequent panelitems show, the rest get hidden.

Is this possible?  Is it at all possible to do this in jquery by getting the id of the parent object and then walking down to the appropriate child level?
Shinu
Top achievements
Rank 2
 answered on 09 Dec 2010
7 answers
116 views
I have some issues with Point Chart of your Ajax components. As you can see on my attachment, in a point chart, changing the point size loses it's center on the axes.

Also how can i disable or collapse the visibilty of the coordinate plate, axes of y=0 and x=0 ??

Thank you...
Evgenia
Telerik team
 answered on 09 Dec 2010
1 answer
103 views
In MS Word I can select all the text, hit Shift F3 and it converts the text to All Lowercase, then if I hit Shift F3 again it will capitalize the first word in every sentence. Is there a way to do that with the radEditor?
Rumen
Telerik team
 answered on 09 Dec 2010
1 answer
83 views
I need to localize "all day" and "Show 24 hours..." in the scheduler.

For "all day" I added the localization tag below. For "Show 24 hours..." I figured this line of code would do it. What am I missing?

rsScheduler.Localization.Show24Hours = (

 

string)_Master.m_FormLabels["Show 24 hours..."];

 



 

 

<telerik:RadScheduler ID="rsScheduler" runat="server" Skin="Office2009" EnableEmbeddedSkins="false"

 

 

 

DataKeyField="RecordID" DataStartField="StartDate" DataEndField="EndDate" DataSubjectField="Name"

 

 

 

Height="100%" Width="100%" OnNavigationCommand="rsScheduler_OnNavigationCommand" OnAppointmentDataBound="rsScheduler_AppointmentDataBound"

 

 

 

OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick" OnClientAppointmentInserting="OnClientAppointmentInserting" OnClientAppointmentCreated="OnClientAppointmentCreated" AllowDelete="false" AllowEdit="false" ShowDateHeaders="True" ShowNavigationPane="True" BorderStyle="NotSet" OverflowBehavior="Scroll">

 

 

 

<Localization AdvancedAllDayEvent="All day"></Localization>

 

 

 

<AppointmentTemplate>

 

 

 

<div class="rsAptContent"><img id="imgAppt" src="<%# Eval("Attributes[\"IconUrl\"]") %>" />&nbsp;<%# Eval("Subject") %></div>

 

 

 

</AppointmentTemplate>

 

 

 

</telerik:RadScheduler>

 

Shinu
Top achievements
Rank 2
 answered on 09 Dec 2010
2 answers
769 views
Hi,

I am using FormTemplate of EditFormSettings of Data Grid to add/modify records. I want to place the popup center to screen instead of relative to row/grid. I am using popup as modal popup (PopUpSettings-Modal="true").

Thanks in advance.

Thanks & Regards,
Sumanth
Sumanth
Top achievements
Rank 1
 answered on 09 Dec 2010
1 answer
205 views
Hi,

I have 10 GridBoundColumns in RadGrid1. I want to hide and unhide columns from outside grid. Let say I have 2 buttons when user click on first button i want to hide first five columns and when user click on second button i want to hide last five columns.

Can you please tell me how do i do this?

Many Thanks
Shinu
Top achievements
Rank 2
 answered on 09 Dec 2010
1 answer
173 views
I have created a custom control that uses the newest telerik version. I have now compiled that into a dll and want to reuse it in some projects what use an older version of the telerik controls. Is this possible?

The newest version is in the GAC but when I try to compile the old project I get an error.
Princy
Top achievements
Rank 2
 answered on 09 Dec 2010
1 answer
74 views
Hi,

Page Size is not appearing in grid footer after once user set the page size equal to maximum number of record. For example, if there are 600 total number of records and page size is initially set to 25 records per page, later when in run time user set it to 600 per page, then after that page size is not appearing to reset it back to 25 records per page.

Please suggest.

Regards,
Krunal
Princy
Top achievements
Rank 2
 answered on 09 Dec 2010
3 answers
240 views
I have a radGrid that has a gridclientselectcolumn. The problem I am having is when I check the header check box, only the records on the current grid page are selected/deselected. I need to select/deselect "All" the records for the grid, irregardless of how many pages the grid contains. How do you do this from the server side code (vb - vs2008) 
dhuss
Top achievements
Rank 1
 answered on 09 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?