Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
104 views
Dear Team,


i ve a web site with many rad controls in front page like Rad Dock, Rad Menu, Rad Grid, Rad Tool Tip, Rad Slider.

While opening the front page all rad controls are opening first than rad slider.

i want to show rad slider first or with other other controls.

could u give the suggestion, why rad slider is opening later.

Also give some solution.


regards,
Satyadev.
Slav
Telerik team
 answered on 24 Aug 2012
1 answer
68 views

Hi,

I am dynamically adding RadComboBoxes to placeholder and I have a search Button and reset Button.
I am using Page method to data bind  RadComboBox as shown in the link.
On clicking "search" Button,  I collect values from these Comboxes and process the information.
By clicking "Reset" button, I  clear the selection from Comboboxes .

After a post back from "search" button, if I try to reset ComboBoxes, it does not clear the selection from  comboBoxes.
But if "Reset"  button is clicked before any post back to server,   it successfully  clears selection from comboBoxes.



Dynamically Adding Comboxes :
             RadComboBox  radAutoCompleteBox = new RadComboBox();
             radAutoCompleteBox  .ID = f"ACPTBox"+ i;
              radAutoCompleteBox.WebServiceSettings.Method = "GetDataForSearchControl";
              radAutoCompleteBox.WebServiceSettings.Path = "TSearch.aspx";
              radAutoCompleteBox.CssClass = "TSrchCBBox"; 
              
              radAutoCompleteBox.OnClientItemsRequesting = "autoCompleteRequesting";
             
              radAutoCompleteBox.Skin = "Office2010Blue";
              radAutoCompleteBox.EnableEmbeddedSkins = true;
              radAutoCompleteBox.EnableViewState = true;
              radAutoCompleteBox.AutoPostBack = false;
              radAutoCompleteBox.AllowCustomText = true;
              radAutoCompleteBox.EnableLoadOnDemand = true;
              radAutoCompleteBox.EnableVirtualScrolling = true;
              radAutoCompleteBox.ShowMoreResultsBox = true;
             
           

TO CLEAR SELECTION 

                  radAutoCompleteBox.ClearSelection(); //THIS DOES NOT WORK
                  radAutoCompleteBox.Items.Clear(); 
                  radAutoCompleteBox.SelectedIndex = -1;
                  radAutoCompleteBox.Text = "";


             

http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx 

Can someone help me in solving this issue?
Thanks,
Prava
Ivana
Telerik team
 answered on 24 Aug 2012
1 answer
89 views
hii,
how can i hide the next/prev buttons in calender?

thanks....
Princy
Top achievements
Rank 2
 answered on 24 Aug 2012
1 answer
75 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
66 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
451 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
54 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
74 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
168 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
79 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?