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

Hello Telerik team,

I have a requirement to make the rad scheduler read only.
As of now..i have disabled the "save" button inside the edit appointment template.
But now if i click on the new appointment..I wanted to show a alert or rad window which does not allow us to add item to the new appointment.

Kindly let me know the way i need to do it.

Thank you
Smith

Yana
Telerik team
 answered on 23 Jun 2010
1 answer
577 views
I have a solution where the html and document title is fetched by JSON as an object { 'title' : 'my title', 'body' : 'my html here' }. The single quote is returned as encoded \u0027 (') to avoid script errors. The telerik editor is now changing my single quote to " and breaking the html where ' is used? This has happend after an upgrade to latest version. I have tried changing ContentFilters="None" and ContentFilters="ConvertCharactersToEntities" - no change in behavior.
Rumen
Telerik team
 answered on 23 Jun 2010
1 answer
76 views
Hello,

Im trying the trail of Telerik currently. I'm very pleased with ur product and we will most likely buy a developer licence soon.
I have a question.

When dragging a node is it possible to not select the node.

eg:

I have a treeview with lots of nodes. A user can select a node and then the details screen is shown on the right.
When a node is selected the user can drag another node to a grid on the right screen.

The problem i have is that the node that was left clicked should stay selected.
But when u start to drag another node, this dragged node gets the selected style.

Is it possible to leave the selected style to the node that was left clicked?

Thanks in advance

Nikolay Tsenkov
Telerik team
 answered on 23 Jun 2010
1 answer
193 views

I'm trialing the AJAX toolkit and it's fantastic.

I have coded a page that uses a RadRotator, a few RadComboBoxes, a RadStyleSheetManager and a RadScriptManager.

I have placed the RadStyleSheetManager and RadScriptManager just before the closing Form tag hoping this would prioritise the page's content before Telerik's scripting for SEO purposes.

Unfortunately, when the page source is viewed in a browser the following scripts are called at the top of the page, immediately after the opening Form tag.

<script src="/WebResource.axd?...lots of code..." type="text/javascript"></script>
<script src="/Telerik.Web.UI.WebResource.axd?..." type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/Core.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/jQuery.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/jQueryPlugins.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/Animation/AnimationScripts.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Rotator/RadRotator.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/Common/Navigation/NavigationScripts.js" type="text/javascript"></script>
<script src="http://aspnet-scripts.telerikstatic.com/ajaxz/2010.1.309/ComboBox/RadComboBoxScripts.js" type="text/javascript"></script>
<script src="/Telerik.Web.UI.WebResource.axd?...lots of code..." type="text/javascript"></script>

How do I force these scripts to the bottom of the page? The RadStyleSheetManager's attributes are set to OutputCompression="AutoDetect" and EnableStyleSheetCombine="true". The RadScriptManager's attributes are set to EnableScriptCombine="true", OutputCompression="AutoDetect" and ScriptMode="Release". I saw something on the Telerik site about a ScriptRegistrar - which looked promising - but can't seem to find it in the VS toolbox or in attributes belonging to the script manager.

Any help would be appreciated!

T. Tsonev
Telerik team
 answered on 23 Jun 2010
1 answer
121 views
Hi,

In our project we have to implement Scheduler.
Can any one suggest which scheduler having more feautes.
Please let me know the Differeneces between ASP.net AJAX Scheduler and SileverLight Scheduler.
Thanks in Advance.
Veronica
Telerik team
 answered on 23 Jun 2010
2 answers
198 views
Hello,

I'm new to Telerik world and creating a RadMenu like this:
       <telerik:RadSiteMap runat="server"   
        ID="RadSiteMapPublications" DataSourceID="RadSiteMapDataPublications" Width="640px">  
        <LevelSettings> 
        <telerik:SiteMapLevelSetting Level="0" ListLayout-RepeatColumns="4" ListLayout-RepeatDirection="Horizontal"></telerik:SiteMapLevelSetting> 
        </LevelSettings> 
        </telerik:RadSiteMap> 
        <telerik:RadSiteMapDataSource ID="RadSiteMapDataPublications" SiteMapFile="~/web.sitemap" ShowStartingNode="false" StartingNodeUrl="http://saratoga/lr/pages/default.aspx?id=2036" runat="server" /> 

which is working fine.

Now, trying to do the same dynamically in the code-behind, it doesn't work. Here is my code:
        Dim myDataSource As New RadSiteMapDataSource  
        myDataSource.SiteMapFile = "~/web.sitemap" 
        myDataSource.ShowStartingNode = False 
        myDataSource.StartingNodeUrl = "http://saratoga/lr/pages/default.aspx?id=2017" 
 
        Dim mySiteMap As New RadSiteMap  
        mySiteMap.Width = 640 
        mySiteMap.Height = 200 
        mySiteMap.DataSource = myDataSource 
 
        Dim mySetting As New SiteMapLevelSetting  
        mySetting.Level = 0 
        mySetting.ListLayout.RepeatColumns = 4 
        mySetting.ListLayout.RepeatDirection = SiteMapRepeatDirection.Horizontal  
 
        mySiteMap.LevelSettings.Add(mySetting)  
 
        myLabel.Controls.Add(mySiteMap) 

"myLabel" is a label on my test page.

I suppose the problem is with the levelSettings, but I don't see where is the error. Could anyone help, please ?
Evelyne Schreiner
Top achievements
Rank 1
 answered on 23 Jun 2010
1 answer
171 views
I have a radgrid that is bound dynamically within the code, the page size is set to 10 as you can see below, however
the paging isn't working correctly. All the rows are displayed and there is no option to page to the next page.

the grid is bound on the click of a button with the following code

       grv_cand_shifts.DataSource = swaps.tbl_shifts_to_give_away;
            grv_cand_shifts.DataBind();





          
please can you help.


 <telerik:RadGrid ID="grv_cand_shifts" runat="server" AllowFilteringByColumn="True" AllowCustomColumns="True" AllowCustomPaging="True"
                AllowPaging="True" ExportSettings-ExportOnlyData="true" ExportSettings-IgnorePaging="true" HeaderStyle-Wrap="true"
                AllowSorting="True" GridLines="None" AutoGenerateColumns="False" Skin="<%$ AppSettings:TelerikControlSkin %>"
                Width="100%" OnPreRender="grv_my_shifts_OnPreRender" OnDataBound="grv_cand_shifts_DataBound" PageSize="10" Message="" OnNeedDataSource="grv_cand_shifts_NeedDataSource" >
                <MasterTableView DataKeyNames="id" Width="100%"  >
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                        </telerik:GridClientSelectColumn>
                        <telerik:GridBoundColumn DataField="id" HeaderText="id" SortExpression="id" UniqueName="id"
                            Visible="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="shift_date" HeaderText="Shift date" ReadOnly="True"
                            UniqueName="shift_date" DataFormatString="{0:dd/MM/yyyy}">
                        </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn DataField="start_time" ReadOnly="True" Visible="False" UniqueName="start_time"
                            HeaderText="Start Time">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="end_time" Visible="False" UniqueName="end_time"
                            HeaderText="End Time">
                            </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="person" HeaderText="Person" UniqueName="person"
                            SortExpression="person">
                        </telerik:GridBoundColumn>
                        <telerik:GridDropDownColumn DataField="rota_period_id" DataSourceID="sql_rota_period"
                            HeaderText="Rota period" ListTextField="label" ListValueField="id" UniqueName="rota_period_id">
                            <filtertemplate>
                                            <telerik:RadComboBox ID="RadComboPeriod2" DataSourceID="sql_rota_period" DataTextField="label"
                                                DataValueField="id" AppendDataBoundItems="true" SelectedValue='<%#  ((GridItem)Container).OwnerTableView.GetColumn("rota_period_id").CurrentFilterValue %>'
                                                runat="server" OnClientSelectedIndexChanged="Period2Changed">
                                                <Items>
                                                    <telerik:RadComboBoxItem Text="All" />
                                                </Items>
                                            </telerik:RadComboBox>
                                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

                                                <script type="text/javascript">
                                    function Period2Changed(sender, args) {
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                        tableView.filter("rota_period_id", args.get_item().get_value(), "EqualTo");
                                    }
                        </script>
                    </telerik:RadScriptBlock>                    
                        
</filtertemplate>
                        </telerik:GridDropDownColumn>
                        <telerik:GridBoundColumn DataField="email" HeaderText="Contact" ReadOnly="True" UniqueName="email" Visible="False">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings >
                    <Selecting AllowRowSelect="True" />
                    <ClientEvents OnFilterMenuShowing="filterMenuShowing" OnGridCreated="getGridObject" />
                </ClientSettings>
                  <PagerStyle AlwaysVisible="True" Mode="NumericPages" />
                <ExportSettings ExportOnlyData="True" IgnorePaging="True">
                </ExportSettings>
              
                <FilterMenu OnClientShown="MenuShowing">
                </FilterMenu>
                <HeaderStyle Wrap="True" />
              
            </telerik:Radgrid>&nbsp;
Pavlina
Telerik team
 answered on 23 Jun 2010
8 answers
149 views
I handle the OnCommand client-side event for a Grid. I pull out the ID of the record of interest. Part of that record is a byte stream that contains the contents of a PDF file. The OnCommand handler calls radopen to display an aspx page:
            function RadGrid1_OnCommand(sender, eventArgs) {  
                var nID = sender.get_masterTableView().get_dataItems()[0].getDataKeyValue("ID");  
                var commandName = eventArgs.get_commandName();  
                if (commandName == "PDF") {  
                    var wnd = window.radopen("/ShowInvoicePDF.aspx?ID=" + nID, null);  
                    return false;  
                }  
            }  
 
The ShowInvoicePDF markup is just like the VS2010 wizard created it and I added nothing to it. I do this in the Page_Load method.
        protected void Page_Load(object sender, EventArgs e)  
        {  
            int nID = Convert.ToInt32(Request.QueryString["ID"]);  
            Invoice invoice = Invoice.FindByID(nID);  
 
            Response.Clear();  
            Response.ClearContent();  
            Response.ClearHeaders();  
            Response.Buffer = true;  
            Response.ContentType = "Application/pdf";  
            Response.AddHeader("Accept-Ranges", "bytes");  
            Response.AddHeader("Accept-Header", invoice.PDFData.Length.ToString());  
            Response.AddHeader("Cache-Control", "public");  
            Response.AddHeader("Cache-Control", "must-revalidate");  
            Response.AddHeader("Pragma", "public");  
            Response.AddHeader("expires", "0");  
            //Response.BinaryWrite(invoice.PDFData);  
            Response.OutputStream.Write(invoice.PDFData, 0, invoice.PDFData.Length);  
            //Response.Flush();  
            //Response.Close();  
            Response.End();  
        }  
 
When the webapp is run using IE 8 under Windows 7, the radwindow comes up but all I see is the rotating RadAjaxLoadingPanel wheel. If I use FireFox it works fine. If I run the ShowInvoicePDF.aspx file directly from the IE browser, it works fine, so there must be some kind of interaction with javascript/ajax/radwindow happening. Why is this happening (an answer of "because you are using MS IE" is not a valid response)? What do I need to do to make it work on all browsers?
Daniel
Telerik team
 answered on 23 Jun 2010
1 answer
179 views
i have used in my project telerik captcha in the registeration page,
i got display on the page every thing working is fine but when i type the characters from the captcha image in to text box it is telling "The code you typed is in correct" even i typed correctly it is telling like this
so please can any one tell why it is telling like this...

i used basic version of telerik captcha
Pero
Telerik team
 answered on 23 Jun 2010
1 answer
139 views
Hi dear all,

I want to add treeview on the left side of the page and make it PinUnpin. But it doesn't work.
I choice Defaultcommand= PinUnpin
When I run it this error occour.

"Telerik.Web.UI.RadDock with ID='RadDock1' is docked into a Telerik.Web.UI.RadDockZone with ID='RadDockZone1', but it is not allowed to dock. Please, set the DockMode property to Docked, or undock the Telerik.Web.UI.RadDock control."

Pls, help me how to do it work smoothly.

Thanks and best Regards
Naunton
Pero
Telerik team
 answered on 23 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?