Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
151 views
Hi, I've been trying to disable and hide controls of my Edit template but seems like I don't know all the instance name of the control. I was able to disable some of the controls like the description, startdate and enddate but other names are not correct when using it as instance name. Where can I find the list of instance names so that I can have it disabled and hidden. Also I was able to make use of the Starttime as an instance name but upon applying enabled = false, control still enabled..
-I want to hide save
-change text of cancel to close
-hide all day and recurring task
-disable timestart and timeend

Heres my code:
ASPX:
<telerik:RadScheduler ID="RadScheduler1" runat="server"  Width="950px" Height="480px" SelectedView="MonthView" DayStartTime="14:00:00" DayEndTime="23:59:00" 
            DataEndField="Sched_End" 
            DataKeyField="ID" DataRecurrenceField="RecurringInfo" DataRecurrenceParentKeyField="ParentID" 
            DataStartField="Sched_Start" DataSubjectField="Title" 
            HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1" ReadOnly="false" AllowDelete="false" AllowInsert="false">  
              
</telerik:RadScheduler> 

VB:

Protected Sub RadScheduler1_FormCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerFormCreatedEventArgs) Handles RadScheduler1.FormCreated  
If e.Container.Mode = SchedulerFormMode.AdvancedEdit Then  
            Dim Description As TextBox = CType(e.Container.FindControl("Subject"), TextBox)  
            Dim startDate As RadDatePicker = CType(e.Container.FindControl("StartDate"), RadDatePicker)  
            Dim endDate As RadDatePicker = CType(e.Container.FindControl("EndDate"), RadDatePicker)  
            Dim startTime As RadTimePicker = CType(e.Container.FindControl("StartTime"), RadTimePicker)  
            Dim endTime As RadTimePicker = CType(e.Container.FindControl("EndTime"), RadTimePicker)  
 
            Description.Enabled = False 
            startDate.Enabled = False 
            endDate.Enabled = False 
            startTime.Enabled = False  'No error here but its not working  
            endTime.Enabled = False    'No error here but its not working  
 
 End If  
End Sub 

Thanks in advance,
RJ





 

RJ
Top achievements
Rank 1
 asked on 05 Oct 2009
2 answers
122 views
Hi.
Im running IE7.0 an Firefox 3.5, and im experiencing a WIERD problem. If I in plain notepad create a html-file and enter a lot of text inside a <font style="line-height:15px;font-family:verdana;font-size:10px"> A lot of text </font> i find that IE and firefox shows the text excactly alike.
If i copy this tag with its containing text into telerik for moss 4.5 the lineheight differs - quite a bit - firefox shows something like 18px while ie shows it as its supposed to.
Making a little experiment. en my offline local htm file - if i change line-height:15px, to line-height:0px both browsers shows all text lines on top of each other - only showing one single line (not very userfriendly though :-)
If i do the same in telerik rad editor for moss - ie still shows all lines in one while nothing happens in firefox. Why is this? and can i do anything about it?
As said, firefox and ie responds completely alike if the code is run outside telerik from a simple htmlfile only containing the font-tag and its contained text, but something happens to firefoxs interpretation of the style when created in telerik rad editor for moss.

could anyone plz help - this i a big showstopper for me... :-(

Regards
Per Hoyer Stensnaes
Top achievements
Rank 1
 answered on 05 Oct 2009
4 answers
166 views
I have ASP.NET 3.5 installed. I have extended the web.config for AJAX 3.5. Is there a way I can install just the RadEditor? We would like to install this first and then roll the controls out once our users are comfortable with the editor. Is there a way to disable to page content area editor being a radcontrol or radeditor? We want to just use the web part.

Thanks!
Adam P.
Kurt Sanders
Top achievements
Rank 1
 answered on 05 Oct 2009
2 answers
173 views
Hi there.

I was just trying to add a simple radalert to my aspx page that I call from my code behind upon successful completion of a task.

Here is the code I am executing from inside a button click handler:

 

string scriptstring = "radalert('Task information loaded successfully!', 330, 210);";

 

 

RadScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true);

When I execute the code, I get the following error:

Error: Object expected

When looking a the page source, the error is occurring on the first open tag here:

<script type="text/javascript">
//<![CDATA[
radalert('Task information loaded successfully!', 330, 210);Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"ctl00$RadAjaxManager1","updatePanelsRenderMode":0}, null, null, $get("ctl00_RadAjaxManager1"));
});
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTabStrip, {"_selectedIndex":0,"_skin":"Default","clientStateFieldID":"ctl00_RadTabStrip1_ClientState","selectedIndexes":["0"],"tabData":[{},{},{},{},{}]}, null, null, $get("ctl00_RadTabStrip1"));
});
//]]>
</script>
</form>
</body>
</html>

I am probably missing something obvious. Any help provided would be much appreciated.

Mike

 

Michael Love
Top achievements
Rank 1
 answered on 05 Oct 2009
1 answer
85 views
I just need to delete a record from over  a RadGrid. I tried to setAllowAutomaticDeletes to  true and i inserted the following html into RadGrid's columns however nothing happened. What am i supposed to do  further? I am using LLBLGEN datasource in which there is no update/insert/delete query explicitly.

<telerik:GridButtonColumn ConfirmText="Delete this customer?" ButtonType="ImageButton"
                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                        <HeaderStyle Width="20px" />
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>

Pavlina
Telerik team
 answered on 05 Oct 2009
3 answers
214 views
I had a problem with radgrid navigation, I am binding a dataset to the grid from needdatasource event. When i use a simple sql statement to fill my dataset I am able to see the navigation bar (which has page size, next page, prev page options) but whenever I use a join statement to fill my datatset I am losing the navigation bar of the radgrid (i dont see the page size, next, prev options at the bottom).

Can anybody help me out from this issue.

Thanks,

Kevin
Pavlina
Telerik team
 answered on 05 Oct 2009
14 answers
342 views
Hello,

When attempting to filter a nullable column, we are seeing a crash when the grid  encounters a null value.

When will this be fixed?

--Details--

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

Generated: Tue, 20 May 2008 22:07:26 GMT

 
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at lambda_method(ExecutionScope , VwPortalUser )
   at System.Linq.Enumerable.<WhereIterator>d__0`1.MoveNext()
   at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
   at lambda_method(ExecutionScope )
   at System.Linq.EnumerableExecutor`1.Execute()
   at System.Linq.EnumerableExecutor`1.ExecuteBoxed()
   at System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression)
   at Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source)
   at Telerik.Web.UI.GridDataTableFromEnumerable.FillData35()
   at Telerik.Web.UI.GridDataTableFromEnumerable.FillData()
   at Telerik.Web.UI.GridResolveEnumerable.Initialize()
   at Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized()
   at Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)
   at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)
   at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields)
   at Telerik.Web.UI.GridTableView.get_ResolvedDataSource()
   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at Telerik.Web.UI.GridTableView.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.Web.UI.GridTableView.DataBind()
   at Telerik.Web.UI.GridTableView.Rebind()
   at Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source)
   at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
   at Telerik.Web.UI.GridColumn.filterTextBox_TextChanged(Object sender, EventArgs e)
   at System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e)
   at System.Web.UI.WebControls.TextBox.RaisePostDataChangedEvent()
   at System.Web.UI.WebControls.TextBox.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent()
   at System.Web.UI.Page.RaiseChangedEvents()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.portal_tools_searchusers_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\edis.web.ui\d024371a\2a80559\App_Web_yjh-qi6p.16.cs:line 0
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Victor
Top achievements
Rank 1
 answered on 05 Oct 2009
4 answers
168 views
Hello

i have a grid that is dynamically loaded into a RadAjaxPanel, this grid have a edit command which works well in another page in another RadAjaxPanel.
the problem is when i press the edit button on the grid, the grid disappears.
the only difference between the pages is that one contains radajaxmanager (this is the page with the problem) and the other one don't.

Please Help Me..


Pavlina
Telerik team
 answered on 05 Oct 2009
1 answer
106 views
Hello,
I need a way to update the selected grid row values using the clientside api.  I can read the values just fine, but, I need to be able to write to the cells.  Also, I don't neccessarily need to take the grid into edit mode or want to.  I'm selecting a grid row, updating the values on the form and pressing save.  On save I want to update the selected row without having to rebind the grid. 

I can get the GridIItem using the "get_selectedItems() call, but then what? 

Any Ideas with examples would be great..

chris
Veli
Telerik team
 answered on 05 Oct 2009
6 answers
170 views
Hi,

I have an issue with RadEditor version 4.5.3.0 using snippets on a Sharepoint 2007 site. We have added snippets to the tools file and can see these in the dropdown, when I select one however I get the message : 'Could not find the command InsertSnippet - Please update your command list'.

We have this working fine on our production environment fine but we have now created a staging environment for future work and have this issue. The tools and config files are copied from production so are the same.

My initial thoughts were that this was a licensing issue, as I know snippets are not available in the lite version. However I can use strikethrough which I understand is also unavailable in the lite version.

Can you firstly please confirm that 4.5.3.0 is the fully fledged version, or if this assembly version could be either, how can I tell if I have the fully fledged version?

Assuming I have, can you suggest why it cannot find the command?

I can see some references to this command within the Telerik .js files, I can also reflect on the assemblies and see some stuff relating to snippets, but strugling to marry them up. Can you suggest what I should be looking for and checking to make sure this command is actually present and the editore can find it?

Rich
Tony
Top achievements
Rank 1
 answered on 05 Oct 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?