Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
68 views
Hello,

I've searched and didn't find an answer to have a default node, and then add all the binding nodes inside that on an declarative fashion.

I've come up with a solution but uses server side code:
<telerik:RadTreeView ID="trvEntities"
                        runat="server"
                        DataSourceID="dataSourceEntities"
                        DataFieldID="Id"
                        AppendDataBoundItems="true"
                        OnNodeDataBound="trvEntities_NodeDataBound">
    <DataBindings>
        <telerik:RadTreeNodeBinding TextField="Name" Depth="0" />
    </DataBindings>
    <Nodes>
        <telerik:RadTreeNode Expanded = "true" Text="Select an Entity" Value="-1" />
    </Nodes>
</telerik:RadTreeView>

protected void trvEntities_NodeDataBound(object sender, RadTreeNodeEventArgs e)
{
    trvEntities.Nodes.Remove(e.Node);
    trvEntities.Nodes[0].Nodes.Add(e.Node);
}

Thanks in advance!
Nikolay Tsenkov
Telerik team
 answered on 13 Jul 2011
2 answers
193 views
I have a RadGrid which is created programmatically. When I click the Export to Excel or Word button, it raises this issue and I can't debug what's causing it as it's inside the Telerik assembly:

What does AdjustStructureColumnCells() do? any clue what I can do?

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

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.Grid.Export.TableViewExporter.AdjustStructureColumnCells(GridTableView tableView) +874
   Telerik.Web.UI.Grid.Export.TableViewExporter.PrepareForExportInternal(GridTableView tableView, Boolean ignorePaging, Boolean dataOnly) +267
   Telerik.Web.UI.Grid.Export.TableViewExporter.page_PreRender(Object sender, EventArgs e) +23
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8926370
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

Pooya
Top achievements
Rank 1
 answered on 13 Jul 2011
1 answer
165 views
Hi,

I've noticed that image resize handles from the currently selected image in the rad editor have a higher z index than the custom dialog window (see attached, circled in red).

This also happens with the text input cursor.

If you click the dialog the z index is fixed.

I've tried the following css tweak suggested as a fix else where...

.RadWindow .RadWindow_Office2007 .rwNormalWindow .rwTransparentWindow
{
    z-index: 200000 !important;
}

... and it does not make any difference.

I'm using the following JS to open my dialog:

function ShowEditor(typeId, inmemoryId, savedId, title, callBackFunction, editorHandle, windowUrl) {
    //open a rad window containing the page control editor     
 
    editorHandle.showExternalDialog(
                            windowUrl + '?typeId=' + typeId + '&inMemoryId=' + inmemoryId + '&savedId=' + savedId,
                            null,
                            800,
                            400,
                            callBackFunction,
                            null,
                            title,
                            true,
                            Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Reload,
                            false,
                            true);
}


Any ideas?

Thanks,

Ian.
Dobromir
Telerik team
 answered on 13 Jul 2011
2 answers
74 views
Hi,

I'm using the image tag as a place holder for some custom content the up shot is that if an image has certain attributes (some I've made up) I want to suppress the standard image properties editor that the rad editor has built in if the user clicks 'properties' in the context menu.

I've been able to get the suppress to work correctly, but I have also stopped the image properties editor from working when a normal image is used.

My rad editor looks like:

<telerik:RadEditor ID="ucEditor" runat="server" OnClientLoad="OnClientLoad" Width="99%" Height="470px" ToolsFile="~/Resources/Config/RadControls/DefaultToolsFile.xml">
    <CssFiles>
        <telerik:EditorCssFile Value="" />
    </CssFiles>
    <ContextMenus>
        <telerik:EditorContextMenu TagName="IMG" Enabled="true">
            <telerik:EditorTool Name="EditPageControl" Text="Edit Page Control" />
            <telerik:EditorTool Name="SetImageProperties" />
        </telerik:EditorContextMenu>
    </ContextMenus>
</telerik:RadEditor>
I've got the following handler for set image properties:

Telerik.Web.UI.Editor.CommandList["SetImageProperties"] = function (commandName, editor, args) {
 
    var elem = editor.getSelectedElement();
    var typeId;
    var inmemoryId;
    var savedId;
    var pageControlName;
 
    //get the selected tag
    editor.selectElement(elem);
    var selection = editor.getSelection();
    var selectionHTML = selection.getHtml();
    //attempt to retrieve the parameters we need from the tags
    //attributes
    typeId = $telerik.$(selectionHTML).attr("typeId");
    savedId = $telerik.$(selectionHTML).attr("savedId");
    inmemoryId = $telerik.$(selectionHTML).attr("inMemoryId");
    pageControlName = $telerik.$(selectionHTML).attr("pageControlName");
 
    //check if this is a dynamic page control place holder
    if (typeId != null && savedId != null && inmemoryId != null && pageControlName != null) {
        //user has selected an dynamic page control and is trying to edit it using the image manager - must prevent this!
        alert('This is a dynamic page control, please click Edit Page Control to edit it');
        return; //disable the browsers context menu
    }
}

I suspect I need an 'else' part to go with the if but I'm not sure how you would manually invoke the image properties editor.

Thanks,

Ian.
ian webster
Top achievements
Rank 1
 answered on 13 Jul 2011
1 answer
124 views
Hi,
I created Sample Calendar Event With Multiple Views (1cloumn, 3 Rows) , if i click slow navigation (>) button it moves after 3 months , i want to just move one month , that month should show in top , Is any property available in Rad Calendar , it would seems to outlook calendar 2007 design ..  i created custom navigation , the selected date is disappears after click the slow navigation button , the event fires continuously. Please Look my code and can give me the best solution and looking help from you
<telerik:RadScriptBlock ID="idRSB" runat="server">
        <script type="text/javascript" language="javascript">
            function CheckSelections(sender, eventArgs) {
                //debugger;
                //var dates = sender.get_selectedDates();
                var minDate = sender.get_rangeMinDate();
                var maxDate = sender.get_rangeMaxDate();
                var calendar = $find("<%= RadCalendar1.ClientID %>");
                var dates = calendar.get_selectedDates();
                var date = dates[0]
                var year = date[0];
                var month = date[1];
                var day = date[2];
                var datearray = "2011,08,16"               
                var arr = datearray.split(",")
                calendar.selectDate(arr, true);
                
         }          
        </script>
    </telerik:RadScriptBlock>
    <div>
        <telerik:RadScriptManager ID="RadScriptManager" runat="server" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadCalendar1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadCalendar1"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadCalendar ID="RadCalendar1" runat="server" AutoPostBack="true" MultiViewColumns="1"
            MultiViewRows="3" EnableMultiSelect="false" RangeMaxDate="2100/01/01" RangeMinDate="1965/01/01">
            <ClientEvents OnCalendarViewChanged="CheckSelections" />
        </telerik:RadCalendar>
.
Vasil
Telerik team
 answered on 13 Jul 2011
1 answer
77 views
Hi guys,
I need your help.I have in my aspx the following code:

<

 

telerik:RadTimePicker ID="RadTimePicker" runat="server" Skin="WebBlue" PopupDirection="TopRight" >

 

 

<TimeView runat="server" ID="TimeView1" StartTime="8:0:0" EndTime="21:0:0" Interval="0:1:0" ></TimeView>

 

 

 

</telerik:RadTimePicker>

 


It is very big popup screen considering to show time every minute up unitl 21:00.Is there any other way to display popup screen?
Maybe vertically instead of horizontally because it is looks not so good.

Thanks so much.
Sebastian
Telerik team
 answered on 13 Jul 2011
1 answer
129 views
Hi, I've been adding access key support to a RADMenu that's included in an application using the ASP.NET AJAX Q1/2011 release. The access keys work fine in IE9. In Firefox 5, using the ALT/SHIFT/key combination works but it starts the cursor flashing! Using Chrome 12 and Safari 5, the ALT/key combinations don't appear to work at all.

All of these issues are demonstrable on your own demo page at...
http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/keyboardsupport/defaultcs.aspx

Are browsers other than IE supported by the access key feature in RADMenu?

Best regards, Ian
Kate
Telerik team
 answered on 13 Jul 2011
2 answers
83 views
HI,

I am lost.
This code gives the the right result in one function in my javascript but returns null in another.
I need to set the value of the numeric text box from javascript using set_value();
Please help!

 

 

 

var B = $find('RadNumericTextBox2');

Thanks,
SHweta

Sebastian
Telerik team
 answered on 13 Jul 2011
1 answer
84 views
hi, 
   I just upgrade my Aspnet ajax to ver 2011 Q1, my question is: in Grid's properties editor, I couldn't find fields-prompt support for DataKeyNames input, parent table relation defining (as attachment)..., even I've defined the DataSouce name.  RadGrid doesn't support this feature or I got the wrong design step?

mac
Veli
Telerik team
 answered on 13 Jul 2011
1 answer
115 views
System.Security.SecurityException is coming while fetching data in radgrid from sqlConnection object
I have uploaded the site to netfirms.com, they are only supporting Medium Trust Level.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


I have used templates for editing in radgrid.

How to get data in the radgrid without using reflection ?


Veli
Telerik team
 answered on 13 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?