Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
116 views
I've got a site which exposes a folder with ascx controls, and I'd like the users to be able to download, modify, and reupload them

How can this be done with the RadFileExplorer, an idea?  Dbl clicking the file gives a 404...I've got the mime type set as text/plain for .ascx

Any ideas?

Thanks,
Steve
Fiko
Telerik team
 answered on 24 Aug 2010
2 answers
133 views
Hi,

We have a couple of issues with JQuery.

1. I use JQuery to do data validation, it works ok. However after I add radAxajManager for UpdatePanel, JQuery data validation only works at the first time when page is firstly load.I believe the binding has been lost after UpdatePanel postback. Then I bind Jquery data Validation In pageLoad in javascript, the binding works and Jquery data validation has been invoked, however Jquery data validation does not work well. When data validation fails, it was supposed to stop page postback to server side, however it does postback to server side.

2. We use gridview to contain data, then we add JQuery right click plugin library to invoke contextmenu, Jquery right click works well except for the first time. When we first time right click the gridview, IE menu shows up instead of contextmenu. It seems the Jquery adding event does not work for the first time.

3. We start to use telerik Autosize function to size widget, it works ok except for many jQuery stopping working.

Please advise how to solve these conflicts between telerik controls and Jquery.

Thanks,

Yao
Fiko
Telerik team
 answered on 24 Aug 2010
3 answers
199 views
Hi,

I am admittedly a RadChart newbie so I hope that my problem doesn't draw too many sighs and head-nods.

My goal is to put up a point chart with two series.  The first series contains a bunch of x/y coordinates from an SQL view.  The second series should consist of only one point in the average(x)/average(y) position.  I am close but something is wrong.  On my ASPX page I have this:

<asp:SqlDataSource ID="dsBeliefMap" runat="server" ConnectionString="<%$ ConnectionStrings:Databaseaipoll1 %>"></asp:SqlDataSource>
<telerik:RadChart ID="RadChart1" SkinsOverrideStyles="true" PlotArea-XAxis-MinValue="0" PlotArea-XAxis-MaxValue="1" PlotArea-YAxis-MinValue="0" PlotArea-YAxis-MaxValue="1" Legend-Visible="true" runat="server" DatasourceID="dsBeliefMap" ChartTitle-TextBlock-Text="Belief Map" DefaultType="Point" Width="300" Height="275">
<Series>
<telerik:ChartSeries Name="Votes" Type="Point" DataYColumn="CertaintyPercent" DataXColumn="SupportPercent" DefaultLabelValue=""></telerik:ChartSeries>
 
</Series>
</telerik:RadChart>

In my VB codebehind, I have this:

dsBeliefMap.SelectCommand = "SELECT SupportPercent, CertaintyPercent FROM vwSearch WHERE SearchID = " & CStr(Session("CurrentSearchID"))
 
Dim AverageBelief As New ChartSeries
AverageBelief.Name = "Average"
AverageBelief.DefaultLabelValue = ""
AverageBelief.Type = ChartSeriesType.Point
Dim avgb As New ChartSeriesItem
avgb.XValue = 0.2 ' Will replace with avg(x) value
avgb.YValue = 0.2 ' Will replace with avg(y) value
avgb.PointAppearance.Visible = True
AverageBelief.AddItem(avgb)
RadChart1.Series.Add(AverageBelief)
RadChart1.EnableAjaxSkinRendering = True
RadChart1.DataBind()

The chart does display all "Votes" series items and displays both series' names in the legend but does not display the programmatically-generated point at the .2/.2 location. 

What am I missing?

Thanks,

Paul.
Ves
Telerik team
 answered on 24 Aug 2010
3 answers
179 views
I have a RadGrid of inventory items inside a RadWindow.  I have an invoice in a second RadWindow which contains a second RadGrid.  I would like to be able to drag items from the Inventory RadWindow into the Invoice RadWindow.

Does anyone have an example of something like this?

I tried to start with a working example of drag and drop from the Telerik website and put my two grids in different RadWindows.  However, when I start the drag, it won't let me drag the item outside that RadWindow.  It's as if the parent of the items being dragged needs to somehow be parented to the root window and not the RadWindow (that's just a guess).  See the attached image.

Beyond this, I'm not sure what needs to happen on the dropping side.  It would need to get an indication on the other side that these were in fact Inventory items and the list of Items (at least the list of IDs).  Then it could add those to it's list.

Michael Grant
Veli
Telerik team
 answered on 24 Aug 2010
1 answer
112 views
I'm using the editor in DNN (Of course) and I'm trying to figure out how, once a page has loaded with text in the editor, to set the cursor at the first character in the set at the top, instead of at the bottom like it's coming up now. Is there any tips on how to set the cursor position?

Thanks!
Rumen
Telerik team
 answered on 24 Aug 2010
1 answer
175 views
Hi,
       I have a grid declarative hierarchy model. 3 level depth (order, detail, items) The grid shows data correctly so the keys are mapped fine. Issue is paging. Attached is the screen shots.
So, what i figure out its showing is a total for the whole layer instead of just the record. Page Size of 5 is set on the grid tag ( i tried it on each gridview but it did not work properly)
Grid1.jpg
The english language has 2 subrecord each having 3 records. So, originally it was showing me 5 of 6 ; showing 3 records from 1st and 2 records from 2nd sub titles. it is misleading. As each has only 3 records so total is not correct (why do the total for all the records ?)
Both having a paging 1 and 2 link at the bottom.
i added few more records and the 2nd layer records totals to 10 now. So, its showing 10 on each record with paging links, although many of them have no records on the 2nd page obviously.

Grid2.jpg
The first subrecord does not show any record on first page but do show the record on the 2nd page.(both subrecords have 1 item each)

So, summary is that its doing total on the layer basis instead of for each record sub child count.

Finally, the data binding is in the needdatasource using linq

grid.datasource = EntitySet<Orders>

grid.MasterTableView.DetailTables[0].DataSource = IEnumerable<detailOrder>

 

grid.MasterTableView.DetailTables[0].DetailTables[0].DataSource = IEnumerable<Items>;


Any ideas ?

Thanks,

Osman


Veli
Telerik team
 answered on 24 Aug 2010
2 answers
116 views

I Copied mailbox (linked below) and it is work good. but when i changed XmlDataSource to my SqlDataSource (i fixed all data bound corectly) all GetDataKeyValue retunrn null.

 

<script type="text/javascript">

 

function ShowMessage(sender, args)

    {

 

        var id = args.getDataKeyValue("ID");//<==??????????????????????

 

        var wnd = window.radopen("Details.aspx?AuthorID=" + id, null);

 

        / /Get the clicked row

 

        var index = args.get_itemIndexHierarchical();

 

        var item = args.get_tableView().get_dataItems()[index];

 

        var rowElement = item.get_element();

 

        //Get coordinates of the row and reposition the window relative to it

 

        var bounds = $telerik.getBounds(rowElement);

        wnd.moveTo(bounds.x + 120 + index * 10, bounds.y - 180);

    }

 

</script>

 

 

Link:  http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx
morteza
Top achievements
Rank 1
 answered on 24 Aug 2010
3 answers
124 views
Hi,

We have just upgraded our version of RadEditor to 5.8.0.0 and are experiencing a problem with our custom list forms. We receive the following error when trying to open a custom list form: Script controls may not be registered before PreRender.

If we change any multiple list fields to plain text, the problem disappears (as RadEditor is no longer functioning).

We have searched the forums and tried a few things:

1) We tried this - http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/prerender-error-with-custom-list-form.aspx No luck. We ended up with this error:The control type 'System.Web.UI.ScriptManager' is not allowed on this page. The type is not registered as safe.

2) We also tried this - http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html Again, no luck. <system.web.extensions> was not recognised and caused an error.

Are you able to suggest what we could try next?

Thanks, Kirsty
Stanimir
Telerik team
 answered on 24 Aug 2010
1 answer
108 views

i trying to drag a node to radscheduler, but the event node_Drop not fire, post some code:

<telerik:RadScheduler ID="radGantt" runat="server"
                            DataDescriptionField="Subject" DataEndField="End" DataKeyField="ID" 
                            DataSourceID="ObjectDataSource1" DataStartField="Start" Height="650px" Width="500px"
                            DataSubjectField="Subject" SelectedView="WeekView" FirstDayOfWeek="Monday" 
                            ShowAllDayRow="False" ShowFooter="False" 
                            ShowViewTabs="False" WorkDayEndTime="19:00:00" 
                            DayEndTime="19:00:00" Skin="Office2007" 
                            onnavigationcomplete="radGantt_NavigationComplete" 
                            onappointmentdelete="radGantt_AppointmentDelete" 
                            onappointmentupdate="radGantt_AppointmentUpdate" 
                            onappointmentcontextmenuitemclicked="radGantt_AppointmentContextMenuItemClicked">
                             <AppointmentContextMenus>
                                <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                                    <Items>
                                        <telerik:RadMenuItem Text="Visualizza ODL" Value="ODL" />
                                        <telerik:RadMenuItem Text="Visualizza Richiesta" Value="REQ" />
                                        <telerik:RadMenuItem Text="Rapportino" Value="RAP" />
                                    </Items>
                                </telerik:RadSchedulerContextMenu>
                            </AppointmentContextMenus>
                    </telerik:RadScheduler>
  
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="AllData" TypeName="FinitenessEVO.AppointmentList">
                    </asp:ObjectDataSource>
<telerik:RadTreeView runat="server" ID="radTree" Height="100%" Width="100%" 
                                 EnableDragAndDrop="True" OnClientNodeDropping="nodeDropping"
                                 oncontextmenuitemclick="radTree_ContextMenuItemClick"
                                 onnodedrop="radTree_NodeDrop" >
                       <CollapseAnimation Duration="100" Type="OutQuint" />
                       <ContextMenus>
                           <telerik:RadTreeViewContextMenu ID="contextTree" runat="server">
                               <Items>
                                   <telerik:RadMenuItem runat="server" Text="Visualizza ODL" Value="ODL">
                                   </telerik:RadMenuItem>
                                   <telerik:RadMenuItem runat="server" Text="Visualizza Richiesta" Value="REQ">
                                   </telerik:RadMenuItem>
                               </Items>
                           </telerik:RadTreeViewContextMenu>
                       </ContextMenus>
             <ExpandAnimation Duration="100" />
         </telerik:RadTreeView>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
  
        <script type="text/javascript">
  
            function nodeDropping(sender, eventArgs) {
                // Fired when the user drops a TreeView node
                var node = eventArgs.get_sourceNode();
                var text = node.get_text();
                var htmlElement = eventArgs.get_htmlElement();
                var scheduler = $find('<%= radGantt.ClientID %>');
  
                if (isPartOfSchedulerAppointmentArea(htmlElement)) {
                    // The node was dropped over the scheduler appointment area
                    // Find the exact time slot and save its unique index in the hidden field
                    var timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement);
  
                    $get('<%=TargetSlotHiddenField.ClientID %>').value = timeSlot.get_index();
  
                    // The HTML needs to be set in order for the postback to execute normally
                    eventArgs.set_htmlElement("TargetSlotHiddenField.ClientID");
                }
                else if ($telerik.isDescendant(treeViewElement, htmlElement)) {
                    // The node was dropped over the TreeView
                    // The HTML needs to be set in order for the postback to execute normally
                    eventArgs.set_destinationHtmlElement(treeViewElement);
                }
                else {
                    // The node was dropped elsewhere on the document
                    eventArgs.set_cancel(true);
                }
            }
            function rowDropping(sender, eventArgs) {
                // Fired when the user drops a grid row
                var htmlElement = eventArgs.get_destinationHtmlElement();
                var scheduler = $find('<%= radGantt.ClientID %>');
  
                if (isPartOfSchedulerAppointmentArea(htmlElement)) {
                    // The row was dropped over the scheduler appointment area
                    // Find the exact time slot and save its unique index in the hidden field
                    var timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement);
  
                    $get('<%=TargetSlotHiddenField.ClientID %>').value = timeSlot.get_index();
  
                    // The HTML needs to be set in order for the postback to execute normally
                    eventArgs.set_destinationHtmlElement("TargetSlotHiddenField.ClientID");
                }
                else {
                    // The node was dropped elsewhere on the document
                    eventArgs.set_cancel(true);
                }
            }
  
            function isPartOfSchedulerAppointmentArea(htmlElement) {
                // Determines if an html element is part of the scheduler appointment area
                // This can be either the rsContent or the rsAllDay div (in day and week view)
                return $telerik.$(htmlElement).parents().is("div.rsAllDay") ||
                            $telerik.$(htmlElement).parents().is("div.rsContent")
            }
  
            function onRowDoubleClick(sender, args) {
                sender.get_masterTableView().editItem(args.get_itemIndexHierarchical());
            }
  
            function refreshGrid() {
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
            }  
  
        </script>
  
    </telerik:RadScriptBlock>
                    <input type="hidden" runat="server" id="TargetSlotHiddenField" />
Simon
Telerik team
 answered on 24 Aug 2010
1 answer
59 views
Hello
 I am loading my root nodes of the tree on the server side using RootNode.Nodes.Add(ChildNode)
The Child nodes have a ExpandMode set to Webservice.In the aspx page i have the following setting for the tree

 

<WebServiceSettings Path="../WebService/NAMWS.asmx" Method="GetWorkOrders" />

 

 


All this works fine but when i click the root nodes the child nodes are loaded from the web service but i want the expandmode of the child nodes also to be web service i want to have an expand icon for the child node where i should be able to load child nodes to the child node using web service. .. i should be able to continue loading as many levels of child nodes using web using web service. how do i do this and set the expand modes of the child nodes to webservice
Simon
Telerik team
 answered on 24 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?