Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
444 views
Hi,

I am trying to change the height and width of the rads scheduler control in javascript.

Purpose: When the Browser is resized , I want the  rad scheduler also to resize, so that it fits the screen.

Used the following code

var RadScheduler = $find(RadSchedulerID);
document.getElementById(RadSchedulerID).style.width = 800; 
document.getElementById(RadSchedulerID).style.height = 700;

The above code worked for modifying the width of the scheduler but does not affect the height.

Is there a way out?

Dimitar Milushev
Telerik team
 answered on 29 Jul 2008
1 answer
137 views
Hi all,

i have a placeholder control which has many comboboxes with the treeview control, i set the OnClientNodeClicking for all treeview controls, if i click a node how can i select the right treeview using javascript ?
Veselin Vasilev
Telerik team
 answered on 29 Jul 2008
1 answer
119 views
Hi.

When I hover a node over another node, the destination nodes loads on demand and it adds its childs. But some times, when I drop the source node, just after the "Loading..." message appears and just before the node actually loads its childs the node gets stuck with the "Loading..." messge and it does not loads its childs. When I click in the '+' it loads the childs and the "Loading..." is still there.

This is my basic procedure:
I capture the operation with the OnNodeDropping client event and validade it, if its ok, I send a ajax request to the server (with ajax manager), set the two trees disabled and wait for the server to call a client callback funcion that will finish the move and enable the trees.

My tree has set ViewState and PersistLoadOnDemand to false. Though I remember once when I still used the view state and that problem occured.

Many thanks
Ben.
Simon
Telerik team
 answered on 29 Jul 2008
6 answers
190 views
Hi,

I am using RadGrid in DNN but the ajax is not working for it. Ajax is enabled in DNN and I am using RadAjaxManager on the page and binding Grid to this Ajax Manager but still nothing. I get a javascript error on the brower which says "'length' is null or not an object", I have tried everything but nothing worked. I tried putting Ajaxpanel as well but that didn't work either.
Here is my ascx code which might be of help;

        <script type="text/javascript">  
        function openWin(args,width,height)  
        {  
            var oWnd = radopen(args, "RadWindow1");  
            oWnd.setSize(width,height);  
            oWnd.center();  
            //oWnd.location.reload();  
            //set a function to be called when RadWindow is closed  
            oWnd.add_close(OnClientClose);  
        }  
          
        function OnClientClose(oWnd)  
        {  
            window.location.reload();  
        }  
        </script> 
 
 
 
            <radT:RadWindowManager Modal="true" KeepInScreenBounds="true" 
     VisibleStatusbar="false" ID="RadWindowManager1" 
            ShowContentDuringLoad="true" runat="server" Skin="Default"   
    Behavior="Maximize">  
        </radT:RadWindowManager> 
 
    <radT:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <radT:AjaxSetting AjaxControlID="rgSchemes">  
                    <UpdatedControls> 
                        <radT:AjaxUpdatedControl ControlID="rgSchemes" LoadingPanelID="RadAjaxLoadingPanel1"/>  
                    </UpdatedControls> 
                </radT:AjaxSetting> 
            </AjaxSettings> 
        </radT:RadAjaxManager> 
    <radT:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30" BackColor="#E0E0E0">  
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="margin-top: 75px;" /> 
        </radT:RadAjaxLoadingPanel> 
 
        <TABLE id="tblDataGrid" cellSpacing="1" cellPadding="1" width="100%" align="center" border="1" 
            runat="server">  
            <TR> 
                <TD> 
                       
                    <asp:label id="lblmsg" runat="server" Font-Bold="True" ForeColor="#C00000"></asp:label> 
                       
                    <radT:RadGrid ID="rgSchemes" runat="server" AutoGenerateColumns="False"   
                        GridLines="None" PageSize="7" AllowPaging="True" AllowSorting="True"   
                        Skin="Sunset">  
 
<MasterTableView> 
<RowIndicatorColumn Visible="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn Visible="False" Resizable="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
 
                        <Columns> 
                            <radT:GridBoundColumn AllowFiltering="False" AllowSorting="false" DataField="BusinessClassID_int"   
                                HeaderText="Id" ReadOnly="True" UniqueName="idCol">  
                                 <HeaderStyle Width="3%" Font-Bold="True"></HeaderStyle> 
                            </radT:GridBoundColumn>                     
                            <radT:GridTemplateColumn HeaderText="Option"   
                                UniqueName="optionCol">  
                                <HeaderStyle Width="5%" Font-Bold="True"></HeaderStyle> 
                                    <ItemStyle BackColor="White"></ItemStyle> 
                                    <ItemTemplate> 
                                        <asp:ImageButton id="editBTN" runat="server" ImageUrl="../../images/QBAdminImages/edit.gif" 
                                            CausesValidation="false" CommandName="EditCmd"></asp:ImageButton> 
                                    </ItemTemplate> 
                            </radT:GridTemplateColumn> 
                            <radT:GridBoundColumn DataField="Title_varchar" HeaderText="Title" ReadOnly="True" UniqueName="titleCol">  
                                <HeaderStyle Width="45%" Font-Bold="True"></HeaderStyle> 
                            </radT:GridBoundColumn>    
                        <radT:GridBoundColumn DataField="BusinessClassType_varchar" AllowSorting="false" HeaderText="Type" ReadOnly="True" UniqueName="typeCol">  
                                    <HeaderStyle Width="9%" Font-Bold="True"></HeaderStyle> 
                            </radT:GridBoundColumn>     
                              
                            <radT:GridTemplateColumn HeaderText="Option"   
                                UniqueName="optionCol">  
                                <HeaderStyle Width="20%" Font-Bold="True"></HeaderStyle> 
                                    <ItemTemplate> 
                                            <asp:ImageButton id="sectionsBTN" runat="server" ImageUrl="../../images/QBAdminImages/sections.gif" 
                                            CausesValidation="false" CommandName="sectionsCMD"></asp:ImageButton> 
                                        <asp:ImageButton id="productsBTN" runat="server" ImageUrl="../../images/QBAdminImages/products.gif" 
                                            CausesValidation="false" CommandName="productsCMD"></asp:ImageButton> 
                                    </ItemTemplate> 
                            </radT:GridTemplateColumn> 
    </Columns> 
 
<EditFormSettings> 
<PopUpSettings ScrollBars="None"></PopUpSettings> 
</EditFormSettings> 
</MasterTableView> 
<PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric">  
                </PagerStyle> 
 
                    </radT:RadGrid> 
                      
                      
                                      
 
 
 
                  
                </TD> 
            </TR> 
            <TR> 
                <TD align="left">  
                  
                <img alt="Business Class Wizard" id="HtmlImg"   
                src="../../../../images/QBAdminImages/AddScheme.gif" onclick="openWin('/dotnetnuke_4_8_2_multi/DesktopModules/Tonyg.SchemeShop.Admin/addBusinessClass.aspx','850','550'); return false;" /> 
                    </TD> 
            </TR> 
        </TABLE> 

Please help me out with this.

Thanks
Atiq
Atiq Ur Rehman
Top achievements
Rank 1
 answered on 29 Jul 2008
1 answer
116 views
I want to use all the features of Recurring appointments although I need to be able to give the functionality for an admin to add appointments and select Offices from a tree and then what Roles in those offfices have what permissions. So the tree may look like this:

Office 1
------Manager
-------------------------View
-------------------------Edit
------Controler
-------------------------View
-------------------------Edit
------Employee Level 1
-------------------------View
-------------------------Edit
------Employee Level 2
-------------------------View
-------------------------Edit

Office 2
------Manager
-------------------------View
-------------------------Edit
------Controler
-------------------------View
-------------------------Edit
------Employee Level 1
-------------------------View
-------------------------Edit
------Employee Level 2
-------------------------View
-------------------------Edit

Office 3
------Manager
-------------------------View
-------------------------Edit
------Controler
-------------------------View
-------------------------Edit
------Employee Level 1
-------------------------View
-------------------------Edit
------Employee Level 2
-------------------------View
-------------------------Edit



This would be a RadTree with Checkboxes. The admin can then check which Permission, in which Role and which office. Storing the data and getting the result set is not a problem. The issue again is how to implement Recurring and how to put all this in a Form for the Scheduler.

I thought of using a RAD Window to do the Add and Editing of appointments although I'm not sure how to add the Recurring functionality in that and then communicate with the scheduler when I click Save.

I am using a SP to get the appointments so the logic to show the appointments of the user logged is done. I just pass the result back to Scheduler and it works well. That part I have completed.

Any ideas as to how I can accomplish this?

Thank You
Jason


Simon
Telerik team
 answered on 29 Jul 2008
8 answers
226 views
Hi,

Congratulations for this new version. How to create one master rotator defining the parameters and slaves, that use the same source, having synchronized outputs,and  using same page or not. Regards
Pierre
Top achievements
Rank 1
 answered on 29 Jul 2008
4 answers
266 views

Hi!

I am building a TreeView using the TreeNodeExpandMode.WebService expand mode.

When building the nodes in the WebService method, the Category property is missing in the RadTreeNodeData object. The property exists in the RadTreeNode, but not in the RadTreeNodeData.

Is this property missing for any particular reason? And is the any workaround for this issue?

Best Regards,
Christian

Christian
Top achievements
Rank 1
 answered on 29 Jul 2008
3 answers
205 views

I am having a problem with attempting to hide panes and show panes within the splitter control. I have a demo that I can upload if needed.

When you attempt to hide a pane and splitter it throws js error.

The code below will thow the error (from your examples).  If you make the RadPane2 back to visible the JS error will quit happening. The splitter control is looking for that object.  As a work around I leave that pane RadPane2 visible but turn off the splitbar and slidingzone as shown. Ideally we should be able to turn the visibility off

<

telerik:RadSplitter id="RadSplitter1" runat="server" width="700" height="500">

<telerik:RadPane id="RadPane1" runat="server" width="22" scrolling="none">

<telerik:RadSlidingZone id="RadSlidingZone1" runat="server" width="22">

<telerik:RadSlidingPane id="RadSlidingPane2" title="Pane1" runat="server" width="150">

Pane 1 Content

</telerik:RadSlidingPane>

</telerik:RadSlidingZone>

</telerik:RadPane>

<telerik:RadSplitBar id="Radsplitbar1" runat="server" ></telerik:RadSplitBar>

<telerik:RadPane id="MiddlePane1" runat="server" Scrolling="None">

<telerik:RadSplitter id="Radsplitter2" runat="server" height="400"

width="700" Orientation="Horizontal" Visible="True">

<telerik:RadPane id="Radpane2" Visible=False runat="server" height="22" scrolling="none">

<telerik:RadSlidingZone id="Radslidingzone2" Visible="False" runat="server" height="22" SlideDirection="Bottom">

<telerik:RadSlidingPane id="Radslidingpane5" title="Pane1" runat="server" height="150">

Pane1</telerik:RadSlidingPane>

</telerik:RadSlidingZone>

</telerik:RadPane>

<telerik:RadSplitBar id="Radsplitbar3" Visible=False runat="server"></telerik:RadSplitBar>

<telerik:RadPane id="Radpane4" runat="server">

<div style ="padding:5px">

<h2>New product updates and features coming soon </h2>

</div>

</telerik:RadPane>

</telerik:RadSplitter>

</telerik:RadPane>

</telerik:RadSplitter>

 

Svetlina Anati
Telerik team
 answered on 29 Jul 2008
1 answer
350 views
Hi,

I have a rad editor where i have set the default font as Segoe UI in the CSS file and removed the FontName from Tools XML file. We are also using PasteFromWordNoFontsNoSizes button of the editor. We observed that when we copy some text of different fonts say Segoe UI and use this button, the text after copy gets default font of Times Roman.

How to get the default font as Segoe UI when using PasteFromWordNoFontsNoSizes button.

regards,
Parimal

Editor Code  
----------------------------------------------------  
<telerik:RadEditor ID="reReviewThreshold" runat="server"   
                                                    Width="99%" 
                                                    Height="150px" ToolsFile="~/XMLFiles/RadEditorToolBar.xml" 
                                                    ToolbarMode="ShowOnFocus" EditModes="Design,Preview" EnableResize="false" > 
                                                    <Tools> 
                                                    <telerik:EditorToolGroup> 
                                                    <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" /> 
 
                                                    </telerik:EditorToolGroup> 
                                                    </Tools> 
                                                    <CssFiles> 
                                                        <telerik:EditorCssFile Value="~/stylesheets/RadEditor.CSS" /> 
                                                    </CssFiles> 
                                                </telerik:RadEditor> 
-----------------------------------------------------------------------------  
XML File  
-------------------------  
<?xml version="1.0" encoding="utf-8" ?> 
<root> 
    <tools> 
        <tool name="Bold"/>  
        <tool name="Italic"/>  
        <tool name="Underline"/>  
        <tool separator="true"/>  
        <tool name="InsertOrderedList"/>  
        <tool name="InsertUnorderedList"/>  
        <tool separator="true"/>  
        <tool name="FontSize"/>  
        <tool name="ForeColor"/>  
        <tool name="BackColor"/>  
        <tool separator="true"/>  
          
    </tools> 
 </root> 
------------------------------------------------------------------------  
CSS Code  
------------------  
body     
{     
    color: black;     
    font-size: 12px;      
    font-family:Segoe UI;      
}    
 
Rumen
Telerik team
 answered on 29 Jul 2008
2 answers
164 views
I have a RadGrid control that has a RadComboBox control in edit mode in the Grid.  I am able to populate and select a default value on edit.  However, when I look for the updated values of the combobox, I am retrieving what was initially set as the value of the Rad ComboBox.  In the example code below, I am trying to store the value in the variable d from the SelectedValue of the cboAccess ComboBox

Thanks in adavance for your help.

Tommy

protected void rdgAccess_UpdateCommand(object source, GridCommandEventArgs e)

{

GridEditableItem item = (GridEditableItem)e.Item;

GridEditManager em = item.EditManager;

RadComboBox r = (RadComboBox)item.FindControl("cboAccess");

string d = r.SelectedValue.ToString();

string id = item.GetDataKeyValue("DerivedDepartment").ToString();

int vl = -1;

if (int.TryParse(r.SelectedValue, out vl) && vl > 0)

{

rdgAccess.Controls.Add(

new LiteralControl(id + " now has " + r.SelectedItem.Text + " access."));

}

else

{

rdgAccess.Controls.Add(

new LiteralControl(id + " does not have access."));

}

}

Tommy Martin
Top achievements
Rank 1
 answered on 29 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?