Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
233 views
I am using radinputmanager on my aspx page to validate data type for columns. This works perfect but when i added the following code using RadAjaxmanager the Radinputmanager validations stopped working. Anyone knows how to resolve this?

I am using the code below to show the hour glass when a server request is being processed on the page.

 

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

 

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="massEditGrid">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="massEditGrid"></telerik:AjaxUpdatedControl>

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

<ClientEvents OnRequestStart="showHourGlass" OnResponseEnd="hideHourGlass" />

</telerik:RadAjaxManager> 

 

 

Maria Ilieva
Telerik team
 answered on 16 Mar 2011
1 answer
243 views

I am testing the trial version of Telerik controls and need to assess how it will handle a very specific situation. I am using a close derivative of the load on demand sample. The key differences are that each pageview uses the same control and I also have a public property that I set to control the pageview. The problem I am facing is that nothing displays onload or when I change tabs. Below is the code that is used on the tab page. Below I will mark the lines that are different from the Load on Demand Sample. Does anybody have an idea as to what I am doing wrong?

 

 

 

 

 

 

 

 

 

 

<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1"  
</telerik:RadAjaxLoadingPanel
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" 
                                LoadingPanelID="LoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1"
                            
 LoadingPanelID="LoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<script type="text/javascript">
    function onTabSelecting(sender, args) {
        if (args.get_tab().get_pageViewID()) {
            args.get_tab().set_postBack(false);
        }
       }
</script>
  
<div style="float:left;">
    <telerik:RadTabStrip OnClientTabSelecting="onTabSelecting" ID="RadTabStrip1" 
        SelectedIndex="0" CssClass="tabStrip"
        runat="server" MultiPageID="RadMultiPage1" Skin="Sitefinity"   
        OnTabClick="RadTabStrip1_TabClick" Orientation="VerticalLeft"  
    </telerik:RadTabStrip
</div>  
<div style="float:left;"
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" 
            SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated"
    </telerik:RadMultiPage>
</div>

 

and here is the Code Behind.

 

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    
           //This is different I am using a datasource to generate the tabs
        RSOracleData RSOD = new RSOracleData();
        RSOD.ConnString = ConfigurationManager.ConnectionStrings["OracleConnection"].ToString();
        DataSet DS = RSOD.GetPageTabs(Thread.CurrentThread.CurrentUICulture.ToString(), "Laws");
        RadTabStrip1.DataSource = DS;
        RadTabStrip1.DataTextField = "TABNAME";
        RadTabStrip1.DataValueField = "TABID";
        RadTabStrip1.DataBind();
        if (DS.Tables.Count > 0)
        {
            AddPageView(RadTabStrip1.FindTabByText(DS.Tables[0].Rows[0]["TABNAME"].ToString()));
        }
    }
}

private void AddTab(string tabName)
{
    RadTab tab = new RadTab();
    tab.Text = tabName;
    RadTabStrip1.Tabs.Add(tab);
}
  
protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
{ 
        //This is different I am loading one particular control and setting a property in it     
    webproject1.Controls.PageViewGrid PVControl = new webproject1.Controls.PageViewGrid();
    PVControl.PageViewID = Convert.ToInt32(e.PageView.ID.Replace("PV", ""));   
    PVControl.ID = e.PageView.ID + "_userControl"  
    e.PageView.Controls.Add(PVControl);   
  
  
private void AddPageView(RadTab tab)   
  
    RadPageView pageView = new RadPageView();
     //I am using a value to determine the tab instead of using the text
    pageView.ID = "PV" + tab.Value;
    RadMultiPage1.PageViews.Add(pageView);    
    tab.PageViewID = pageView.ID;
}

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
    AddPageView(e.Tab);
    e.Tab.PageView.Selected = true;
}

 

Dimitar Terziev
Telerik team
 answered on 16 Mar 2011
4 answers
226 views
I am trying to modify the indent tool to use a left padded div instead of a blockquote.  I understand that the RADEditor uses execCommand that is provided by the browser, but I am trying to override this so that I can use a padded div instead of the browsers implementation.

I am using the OnClientCommandExecuting event in the RADEditor with the following JavaScript, which isn't working exactly as I thought it would.  Any help would be greatly appreciated!

Regards,
Neil

function OnClientCommandExecuting(editor, args) {
        var commandName = args.get_commandName();
        var editorParentSelection = editor.getSelection().getParentElement();
 
        switch (commandName) {
 
            case "Indent":
                      var editorParentSelection = editor.getSelection().getParentElement();
                var currentSelection = editor.getSelection().getRange();
                var wrapper = document.createElement("div");
                wrapper.setAttribute("style", "margin-left: 30px");
                wrapper.innerHTML = currentSelection.endContainer.textContent;
                output = $telerik.getOuterHtml(wrapper);
                 editor.pasteHtml(output);
                console.log(editorParentSelection.outerHTML);
 
                args.set_cancel(true);
                break;
 
            case "Outdent":
                editorParentSelection.outerHTML;
                break;
 
            default:
                break;
        }
 
    }

Neil
Top achievements
Rank 1
 answered on 16 Mar 2011
5 answers
129 views
Hi all,
someone konw why the AppointmentCreated or AppointmentInsert doen't fire when using a CustomSchedulerProvider?
Thank's

Danilo

 

Peter
Telerik team
 answered on 16 Mar 2011
4 answers
109 views
Hi.
Veronica
Telerik team
 answered on 16 Mar 2011
1 answer
136 views

I have a colorpicker that is formatted with a picker button.  In Internet Explorer 6, when selecting a color from the palette, the selected color is not displaying.  This works fine in Firefox or Safari.  When I set the SelectedColor to any color, it does not work either.

 

 

<

 

 

telerik:RadColorPicker runat="server" ID="cpColor" Width="210px" SelectedColor="White" ShowEmptyColor="false" ShowIcon="true" PaletteModes="All" Style="float: left;">

 

 

 

 

</telerik:RadColorPicker>


 

 

Niko
Telerik team
 answered on 16 Mar 2011
0 answers
58 views
Hi,

I need to Show the Weekends as Group using the RadScheduler.


Regards,
Pavan



Pavan
Top achievements
Rank 1
 asked on 16 Mar 2011
3 answers
191 views

i am using Hierarchial Grid(3 levels).
in the first level i am using session parameter to fetch the records .
for the second level i am passing the first level DataKeyName as selectparameter  to fetch records. i have attached the screenshot of the Grid.

i have written insertcommand for the second level where i need MetricMeasureNumber to add new record .
in insertcommand i have used

 

 

GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;

MetricMeasureNumber =

 

Convert.ToInt32((item["MetricMeasureNumber"].Controls[0] as TextBox).Text);

to get the MetricMeasureNumber,but it is giving null,

please share your experiences,
thanks in advance.

 

Princy
Top achievements
Rank 2
 answered on 16 Mar 2011
3 answers
114 views
When I upload a new version of my code to my site, browser which are opened on the web page emit the following error as in the screenshot.
Is there a way to avoid this?

Thanks
Genady Sergeev
Telerik team
 answered on 16 Mar 2011
5 answers
157 views
I have a user control that consists of a RadUpload, RadProgressManager, RadProgressArea, and a button.  This user control is nested in another user control which is ajaxified by a RadAjaxManager.  I've scoured the forums and tried everything I came across, including adding a call to __doPostBack() and adding a handler to the RadAjaxManager to disable AJAX when my button raises the event.  My click event doesn't roll up to the outer user control or the page its on.  Any suggestions??? I can provide code if necessary, but I think my description makes the scenario clear.  Thanks!!
Kate
Telerik team
 answered on 16 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?