Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Hi

When I set EmbeddedScripts='False' for the RadEditor the Spell check does not work (gives me 500 error /Telerik.Web.UI.SpellCheckHandler.axd) also i get javascript errors for the image manager which stop it from working.

What scripts to i need to include for all features of the RadEditor.

I have also set ExternalDialogsPath="~/EditorDialogs/" and uploaded the folder.
Serrin
Top achievements
Rank 1
 answered on 22 Sep 2008
1 answer
121 views

Hi.

Please help! How do I disable drag and drop for a single node when the treeview is loaded from a database?

When the database-column "dragdrop" is set to "false" for a node, drag and drop for that node should be disabled.

This is how I load the treeview from the database:

Dim

conn As New SqlConnection("Server=xxx.xxx.xxx.xxx;Database=treeview;User ID=xxxxxx;Password=xxxxxx;Trusted_Connection=False")

Dim query As String = "SELECT * FROM treeview_nodes'"

Dim

adapter As New SqlDataAdapter(query, conn)

Dim

dataTable As New DataTable()

adapter.Fill(dataTable)

nnNO.DataSource = dataTable_nnNO
nnNO.DataFieldID =
"id"
nnNO.DataFieldParentID = "parentId"
nnNO.DataTextField = "Text"
nnNO.DataNavigateUrlField = "Href"
nbNO.DataValueField = "value"
nnNO.DataBind()

I assume I must use RadTreeView_NodeDataBound or something... Example code would be great!

Best regards,
Lars Melkevik

Atanas Korchev
Telerik team
 answered on 22 Sep 2008
1 answer
150 views

We are getting a white space below the grid and only this is because of frozen column not working properly.

<telerik:RadGrid ID="grdCarReservation" runat="server"

AutoGenerateColumns="False" Skin="Office2007" Width="1240px"

OnItemDataBound="grdCarReservation_ItemDataBound" HeaderStyle-Wrap="false"

AllowMultiRowSelection="True">

<ExportSettings ExportOnlyData="True" IgnorePaging="True"

OpenInNewWindow="True">

<Pdf AllowCopy="True" AllowModify="True" PageHeaderMargin="1px"

PageHeight="15in" PageWidth="25in" PaperSize="A4" />

</ExportSettings>

<MasterTableView>

<RowIndicatorColumn>

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<ExpandCollapseColumn>

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<Columns>

<telerik:GridTemplateColumn UniqueName="Select">

<HeaderTemplate>

<asp:CheckBox ID="chkAll" runat="server" AutoPostBack="true"

OnCheckedChanged="chkAll_CheckedChanged" />

</HeaderTemplate>

<ItemTemplate>

<asp:CheckBox ID="chkSelect" runat="server" AutoPostBack="True"

OnCheckedChanged="ToggleRowSelection" />

<asp:HiddenField ID="hdnStockNo" runat="server" Value='<%#Eval("STOCK")%>' />

<asp:HiddenField ID="hdnChassisNo" runat="server"

Value='<%#Eval("CHASSIS")%>' />

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn HeaderText="Status" UniqueName="Status">

<ItemTemplate>

<asp:DropDownList ID="ddlResStatus" runat="server" AppendDataBoundItems="true"

Height="20px" Width="80px">

<asp:ListItem Text="--Select--" Value="0"></asp:ListItem>

</asp:DropDownList>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="CUSTOMER_NAME" HeaderText="Customer Name"

UniqueName="Customer Name">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="CUSTOMER_ID" HeaderText="Customer ID"

UniqueName="Customer ID">

</telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="ON_HOLD" HeaderText="On Hold"

UniqueName="On Hold">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="RES" HeaderText="Reserved"

UniqueName="Reserved">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="TEMP" HeaderText="Temp Res"

UniqueName="Temp Res">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="STOCK" HeaderText="Stock No"

UniqueName="Stock No">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="MAKE" HeaderText="Make" UniqueName="Make">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="MODEL" HeaderText="Model"

UniqueName="Model">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="CHASSIS" HeaderText="Chassis No"

UniqueName="Chassis No">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="YOM" HeaderText="YOM" UniqueName="YOM">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="MONTH" HeaderText="Month"

UniqueName="Month">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="REGN DATE" HeaderText="Regn Date"

UniqueName="Regn Date">

 </telerik:GridBoundColumn>

 <teleik:GridBoundColumn DataField="XMISSION" HeaderText="X'mission"

UniqueName="X'mission">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="CAR TYPE" HeaderText="Car Type"

UniqueName="Car Type">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="COLOUR" HeaderText="Color"

UniqueName="Color">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="PS" HeaderText="PS" UniqueName="PS">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="AC" HeaderText="AC" UniqueName="AC">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="PW" HeaderText="PW" UniqueName="PW">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="DOOR" HeaderText="Door" UniqueName="Door">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="FUEL_TYPE" HeaderText="Engine Type"

UniqueName="Engine Type">

 </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="CC" HeaderText="CC" UniqueName="CC">

 </telerik:GridBoundColumn>

 </Columns>

 </MasterTableView>

 <HeaderStyle Wrap="False" />

 <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">

 <Selecting AllowRowSelect="True" />

 <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True"

FrozenColumnsCount="3" ScrollHeight="120px" UseStaticHeaders="True" />

<Resizing AllowColumnResize="True" EnableRealTimeResize="True"

ResizeGridOnColumnResize="True" />

 </ClientSettings>

 </telerik:RadGrid>

 this is the code am having.

Sebastian
Telerik team
 answered on 22 Sep 2008
1 answer
127 views
Hi there

I've implimented the GridSettingsPersister code and kudus for the contributer. It is realy good code and give my app an additional edge.

On the same manner, I also save persistant database criteria for a user as well as pagesise etc.

For sharing
    protected void Page_Load(object sender, EventArgs e)  
    {  
        RadGrid grid1 = (RadGrid)this.ContentPlaceHolder.FindControl("RadGrid1");  
        if (grid1 != null)  
        {  
            String recordPerPage = Profile.ApplicationPreferences.RecordsPerPage;  
            Int32 pagesize;  
            bool isNum = Int32.TryParse(recordPerPage, out pagesize);  
            if (isNum)   
            {  
                grid1.PageSize = pagesize;  
            }  
        }  
    } 

For the grid I use the Persister Class.

Now I just short one more thing, and I can't get the hang around it.

I want to save the pagenumber (which page on the pager is active) als to the users profile.

gridSettings[6] = (object)gridInstance?????????? in SaveSetting

and 
this.gridInstance.????????= (string)gridSettings[6]

Any pointer will be welcome.
Guss

Vlad
Telerik team
 answered on 22 Sep 2008
1 answer
105 views
Hi,

I'm using ASP Tree View on my application. It works fine until I put it inside RadAjaxPanel. The nodes are duplicated. Am I missing something?

<telerik:RadAjaxPanel ID="RadAjax" runat="server" LoadingPanelID="LoadingPanel">   

my tree view here...

</telerik:RadAjaxPanel>

Any help will be appreciated.

--
Kith
Vlad
Telerik team
 answered on 22 Sep 2008
2 answers
143 views
Hi, in our project we use a MasterPage, several content pages and a view WebUserControls for the most commen information. Some parts of the website are AJAX-fied. For example choosing an other client. So not the whole page refreshes and give a richer user interface.

In the MasterPage we also have a control containing a RadMenu. Navigation is done using the NavigationURL. This causes a post-back which cannot be AJAX-fied because we navigate to a new Page (URL)

I have two questions. To give the application a even more richer UI, replace all the page-content and logic in WebUserControls so it will be possible only the refesh the needed content and not do a full postback. The can be done for most pages, but is this an adviceble approch or will it suffer from performance issues? And what would be suggested?

The last question is (if we follow the above approach using WUC instead of the current pages), how can the RadMenu be used to load the WUC instead of navigate to an other page using the NavigationURL? (What I think at this moment what should be done is catch the onClickEvent of the menu item and then load the WUC dynamically in the code-behind). Also is this good practice or not advicable (due to performance problems)?

Any suggestions are welcome.

TIA


Stephan
Top achievements
Rank 1
 answered on 22 Sep 2008
7 answers
662 views
Using: ASP.NET AJAX Q2 2008.

I posted this under General Discussions but didn't get a response. Perhaps I posted in the wrong place. Since this is urgent, I thought I'd post it here instead.

Hi,

I need some clarifications regarding the relationship between the RadScriptManager and ASP.NET's ScriptManager.

From RadScriptManager help, it says that:

"RadScriptManager is a control that replaces the ScriptManager available in the Microsoft Ajax Extensions suite."

Does that mean I can just replace it?

That's what I thought it meant but combining like this:

<telerik:RadScriptManager ID="radScriptManager" runat="server" />         
<asp:UpdatePanel ID="updatePanel" runat="server"/> 

gives me the error:

"The control with ID 'updatePanel' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it."

However, if I do this:

<asp:ScriptManager ID="scriptManager" runat="server" /> 
<telerik:RadScriptManager ID="radScriptManager" runat="server" />         
<asp:UpdatePanel ID="updatePanel" runat="server"/> 


The page runs.

But this also means that we have 2 script managers on the same page and I believe it'll lead to problems.

I'd prefer to stick to ASP.NET's ScriptManager however some of my rad controls will not run (e.g. RadTabStrip)

Please help clarify how we're supposed to use the RadScriptManager.

Thanks.

gavin
Daniel
Telerik team
 answered on 22 Sep 2008
5 answers
354 views
I want to use the get_gridDataItem method on a dblclick row event.  How do I 'hookup' the create/created events?

""get_gridDataItem() is not directly available on the client unless OnRowCreating/OnRowCreated events are hooked up.""

Thanks
Vlad
Telerik team
 answered on 22 Sep 2008
2 answers
172 views
Hello guys,

very simple one, I would like the grid to enable / disable an item in the command bar item based on row selected or not.

I have seen some example already in the forum with postback, but I would like to access the item with client-side script.

I'm aware of activating the ClientEvent OnRowSelected, but I wonder how to access item of the command bar using client api.

Thanks in advance for your answer.
Vlad
Telerik team
 answered on 22 Sep 2008
2 answers
420 views
I need to be able to change the default pencil icon of the RadGrid to a custom Icon when a user is defined to the system as read only. 

Using the following piece of code in the  " protected void Page_Load(object sender, EventArgs e) " function, I can hide the column with the visible property set to false. 
      
     RadGrid1.MasterTableView.GetColumn(
"EditImageColumn").Visible = false;

However what I need to do is change the pencil image to eyeglasses (indicating read-only mode).

The EditImageUrl property is not available using the above code and replacing the ".Visible" with ".EditImageUrl". It results in a compile error.

    RadGrid1.MasterTableView.GetColumn("EditImageColumn"). EditImageUrl = "~/MyImage" 

How can I accomplish this requirement.

Thanks
Dick
Top achievements
Rank 1
 answered on 22 Sep 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?