Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
hi,,
how to save and load state of raddock in database..

thanks..
Shinu
Top achievements
Rank 2
 answered on 24 Aug 2012
2 answers
59 views
Hello telerik team,

the RadAjaxPanel loops under certain conditions and never stops until
clicking the browsers reload button.

I solved the problem, but other users might have the same problem some time.

Situation:
On the left side resides a country filter in a RadListBox and on the right side a
RadTabStrip with a RadMultipage. By selecting a country the tab reloads via the
RadAjaxManger and the AjaxPanel shows progress. Selecting another tab everything
works fine, but going back to the first tab and selecting another country, the AjaxPanel loops.

Reason:
I built some JavaScript around the RadListBox because i wanted multiple selection
without holding CTRL. I found the following script and it works fine:

Sys.Application.add_load(function () {
            var clb = findCountryListBox();
 
            $telerik.$(".rlbItem", clb._getGroupElement())
            .click(function (event) {
                event.stopImmediatePropagation();
                event.ctrlKey = true;
                clb._onClick(event);
            });
  });

The programm worked until i wanted to set the initial width of a RadSlider in percentage.
I added a couple of lines at the top of the Sys.Application.add_load method, but changing
the width of the slider in this method prevents the AjaxPanel from proper execution.

Sys.Application.add_load(function () {
            var clb = findCountryListBox();
            var ms = findMarginSlider();
         
        x = $("#marginTextRow").width();
       var offsetWidth = x * 0.9;
       ms.set_width(offsetWidth);
 
            $telerik.$(".rlbItem", clb._getGroupElement())
            .click(function (event) {
                event.stopImmediatePropagation();
                event.ctrlKey = true;
                clb._onClick(event);
            });
        });

Solution:
I changed the way to set the initial witdth which is shown here How to set the Width/Height of RadSlider in percentages
and the AjaxPanel runs fine.

I hope my post is not too confusing, but changing a controls property in the Sys.Application.add_load
method might be not a good idea if you're working with the RadAjaxManager and the RadAjaxPanel.

Firstable i tried several ways to configure the RadAjaxManger but nothing prevented the
AjaxPanel from looping until i moved the code that sets the slider width to another method.

Greetings,
Hubert
Hubert
Top achievements
Rank 1
 answered on 24 Aug 2012
5 answers
429 views
I have a bit strange issue in my tab , when I am trying to change the tab run time , it will select the tab but does not show tab page view!

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelDemo" runat="server" Skin="Metro">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManagerProxy ID="radAjaxManagerAllBetsDifficultToRead" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ucAllBetsDifficultToRead">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ucBetsDifficultToReadDetail" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="radMultiPageAllBetsDifficultToRead">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radTabStripAllBetsDifficultToRead" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <div id="maincontent" class="tabpage">
        <telerik:RadTabStrip ID="radTabStripAllBetsDifficultToRead" runat="server" SelectedIndex="0"
            Skin="Metro" MultiPageID="radMultiPageAllBetsDifficultToRead">
            <Tabs>
                <telerik:RadTab runat="server" Text="All Bets" Selected="True">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Selected Bets">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="radMultiPageAllBetsDifficultToRead" runat="server" SelectedIndex="0"
            CssClass="pageView" Width="98%">
            <telerik:RadPageView ID="radPageViewTakeBet" runat="server">
                <br />
                <uc1:AllBetsDifficultToRead ID="ucAllBetsDifficultToRead" runat="server" OnCheckClick="UcAllBetsDifficultToReadClick" />
                <br />
            </telerik:RadPageView>
            <telerik:RadPageView ID="radPageViewTranslate" runat="server">
                <br />
                <uc2:BetsDifficultToReadDetail ID="ucBetsDifficultToReadDetail" runat="server" />
                <br />
            </telerik:RadPageView>
        </telerik:RadMultiPage>
        <br />
        <br />
    </div>
</asp:Content>

Any one suggest me some idea for it!
All I am doing is one a user control Handler I am trying to change the tab index!
protected void UcAllBetsDifficultToReadClick(object sender, EventArgs e)
       {       
           
           radMultiPageAllBetsDifficultToRead.SelectedIndex = 1;
          radTabStripAllBetsDifficultToRead.Tabs[1].Selected = true;
           radMultiPageAllBetsDifficultToRead.PageViews[1].Selected = true;
 
          // radMultiPageAllBetsDifficultToRead.SelectedIndex = 1;
       }

Thanks for the time!

Hubert
Top achievements
Rank 1
 answered on 24 Aug 2012
1 answer
38 views
I have a situation where I would like to restrict the images shown in the manager window to a specific subset of the entire folder, but also allow them to upload images to that folder. Specifically, only display images that are already referenced in the text that has been loaded into the editor, or images that have been uploaded in the current session. 

For example, if the contents of the editor does not have any images, then no images would be available in the image manager, regardless of what the view folder contains. However, any images that were uploaded in that same session should be available to insert. Alternatively, if the editor has been loaded with content that does contain images, then those images, and only those images, should be available (again, except for images that the user uploads within that session).

This could be done if there was a way to define a search pattern for the view that's separate from the upload search pattern, but since that's not defined I'm looking for alternative means to replicate this functionality. I'm looking for a way to limit the images that are accessible by document's they are included in so a person who is editing document A can't see the images uploaded for document B.

Is there currently a way to implement this functionality?
Dobromir
Telerik team
 answered on 24 Aug 2012
1 answer
69 views
Hi Telerik Team,

I am stucked with an issue while using the RadTabStrip.
I have used RadTabStrip having three tabs and respective PageViews. In the PageView, I am calling a usercontrol, which is a gridview.
Now the bottom of my page has a button to Save, which is outside the TabStrip.

The issue is, when I try to save the contents of the grid that gets exposed through the pageview, my grid reloads and I loose all formatting, that I had done in the gridview_rowdatabound event.

Also below is the code where I am ajaxifying radTabStrip and RadMultiPage

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 <AjaxSettings>

 <telerik:AjaxSetting AjaxControlID="RadMultiPage1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadTabStrip1"/> 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1"/>

 </UpdatedControls>

 </telerik:AjaxSetting>

 <telerik:AjaxSetting AjaxControlID="RadTabStrip1">

 <UpdatedControls>

 <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />

 <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />

 </UpdatedControls>

 </telerik:AjaxSetting>

Looking forward for a quick response, as I am stucked with this issue from past 2 dayz, with nothing posted on net for the same.

Thanks!

 

Ishk
Top achievements
Rank 1
 answered on 24 Aug 2012
2 answers
158 views
Hi telerik team,

i have a problem setting the pie chart data via data binding correctly.

This is my class for binding:
internal class AssetsItemData
    {
        public double Value { get; set; }
        public string Color { get; set; }
        public bool IsExploded { get; set; }
        public string Text { get; set; }
    }

1. The pie chart explodes all parts. I tried bool and string representation for IsExploded.
How is the ExplodeField set correctly?

2. There's no TextField field.
Where can i set the text which is shown in the legend?

3. Tooltips and label data aren't rendered correctly, because i can not attach a culture to the chart.
How can i set the culture for a chart?

greetings,
Hubert
Hubert
Top achievements
Rank 1
 answered on 24 Aug 2012
1 answer
64 views
Hi,

I have a scheduler and i am adding dynamic Image button in every slot but i need to remove that image button from some slots in which i have data. so please tell me some solution.
 
I am adding Image button by this:

 protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
        {
            ImageButton btn = new ImageButton();
            btn.ImageUrl = "~/Images/Add.png";
            btn.CssClass = "FloatRight";
            e.TimeSlot.Control.Controls.AddAt(0, btn);
            btn.CommandName = "btn";
            btn.CommandArgument = e.TimeSlot.Start.Date.ToString();
            btn.Command += new CommandEventHandler(GoToUnitNumber);          
        }

Please check the attachment
Princy
Top achievements
Rank 2
 answered on 24 Aug 2012
1 answer
79 views
Hi,
I did found few articles for creating/overlapping chart.
However I am interested in code sample to get output as shown in attachment.

Many thanks in advance... :)
Evgenia
Telerik team
 answered on 24 Aug 2012
1 answer
59 views
Hi
I opened http://demos.telerik.com/aspnet-ajax/spell/examples/whatsnew/defaultcs.aspx and tried to add some french (german) words to spellcheck. Seems to me it always checks against English. I reproduce it in out application and confirmed on Telerik demo from demos.telerik.com.
Is something wrong with demos or control?
Thanks
Vladimir
Marin Bratanov
Telerik team
 answered on 24 Aug 2012
1 answer
51 views
I have an application that uses RadPanelBar (and RadPanelItem).  It seems to work ok on my development machine, but when I deploy to a QA environment, the panel loses its formatting.  I am deploying Telerik.Web.UI.dll, Telerik.Web.UI.Skins.dll, and Telerik.Web.UI.xml in my application's bin directory.  Is there anything else I need to be deploying?  I tried adding Telerik.Web.Design.dll, but that didn't fix it.

It seems to work ok when I use the Telerik.Web.Design.dll and Telerik.Web.UI.dll 2009.2.826.35, but we don't want to use such an old version.

Windows 2003 Server SP2 32 Bit
.NET Framework 3.5
Telerik RadControls for ASP.NET AJAX 2012.2.724.35.

Thanks!
Helen
Telerik team
 answered on 24 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?