Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.0K+ views
I am opening a DatePicker from a asp:panel controlled by a modal popup extender.  The datepicker is displaying behind the modal popup.  I've added a CSS hack to kick up the z-index of the datepicker, and according to the dom inspector I'm using, the z-index of the datepicker is changing.  But no matter how high I set that z-index, the datepicker continues to draw behind the modal popup.

Any ideas?


Logan Marshall
Top achievements
Rank 2
Iron
 answered on 01 May 2017
6 answers
133 views

I've tried following the directions in: http://www.telerik.com/forums/what-event-is-fired-on-resize  but it doesn't appear that onResizeEnd is called when auto resizing.

I have the RadEditor inside a RadWindow and I need to run some javascript to resize the RadWindow when the RadEditor auto-sizes.  Can I get some direction about what event to trap on so I can run my javascript to resize my Rad Window manually?

Thanks!

Rumen
Telerik team
 answered on 01 May 2017
2 answers
146 views

I'm using the EditorModule RadEditorStatistics and it always returns one less character than what has actually been entered in the text box. I'm not sure if it's the way I've implemented it or if that is just the way it works. Any help would be appreciated. I'm including the markup and js I use. Any help would be greatly appreciated.

<telerik:RadEditor ID="redJustification" runat="server" EditModes="Design"
        MaxTextLength="4000" SkinID="DefaultSetOfTools" ContentAreaMode="Div" OnClientInit="CharCountInit"
        Height="225px" Width="98%" Style="background-color: White; overflow: auto; display: block"
        Skin="Default" TabIndex="51">
        <Tools>
            <telerik:EditorToolGroup>
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="Cut" />
                <telerik:EditorTool Name="Copy" />
                <telerik:EditorTool Name="Paste" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="SelectAll" />
                <telerik:EditorTool Name="FindAndReplace" />
                <telerik:EditorSeparator />
                <telerik:EditorTool Name="AjaxSpellCheck" />
                <telerik:EditorSeparator />
            </telerik:EditorToolGroup>
        </Tools>
        <Modules>
            <telerik:EditorModule Name="RadEditorStatistics" />
        </Modules>
    </telerik:RadEditor>
function CharCountInit() {
    var originalRender = Telerik.Web.UI.Editor.Modules.RadEditorStatistics.prototype.render;
 
    Telerik.Web.UI.Editor.Modules.RadEditorStatistics.prototype.render = function () {
        originalRender.apply(this);
 
        this.get_editor().remove_selectionChange(this._onDoCountDelegate);
        this.get_editor().attachEventHandler("onkeydown", this._onDoCountDelegate);
    };
}

 

 

 

 

 

 

 

 

 

Rodney
Top achievements
Rank 2
 answered on 01 May 2017
1 answer
763 views

Hi guys

I have a database that has been populated with raw html programmatically, but when I try to inline text-edit those fields to tweak content, it fails to 'Update' because the data in 2 columns contains some raw html. How can I tell radgrid to allow it for specific columns?

I (as webmaster) am not worried about users hacking because only I have (secured) access to this function.

Thanks for your help!

 

Clive

Rumen
Telerik team
 answered on 01 May 2017
1 answer
186 views

first I have my RadScheduler in a page calling a webservice using a custom provider (MyDbSchedulerProvider)
I am adding dynamic category coloring to my appointments.
I was able to add them manually to the front code as

<ResourceStyles>
    <telerik:ResourceStyleMapping Type="Calendar" Key="cat1" Text="category 1" BackColor="#DEB887" BorderColor="#000000" />
    <telerik:ResourceStyleMapping Type="Calendar" Key="cat2" Text="category 2" BackColor="#000000" BorderColor="#FFFFFF" />
</ResourceStyles>

then in my provider code I tried a few things but only got this to work so far

Dim oResource As Resource
Select Case (i Mod 4)
    Case 0
        'apt.CssClass = "rsCategoryAqua"
        'apt.BackColor = Drawing.Color.Aqua
        'apt.ForeColor = Drawing.Color.Black
        oResource = New Resource("Calendar", "cat1", "category 1")
        apt.Resources.Add(oResource)
    Case 1
        'apt.CssClass = "rsCategoryBeige"
        'apt.BackColor = Drawing.Color.Beige
        'apt.ForeColor = Drawing.Color.Black
        oResource = New Resource("Calendar", "cat2", "category 2")
        apt.Resources.Add(oResource)
End Select

ok I tried to remove the code front tags and add instead in the page behind

RadScheduler1.ResourceStyles.Add(New ResourceStyleMapping("Calendar", "cat3", "category 3"))
RadScheduler1.ResourceStyles.Add(New ResourceStyleMapping("Calendar", "cat4", "category 4"))

^^ didn't work
I also tried this

RadScheduler1.Resources.Add(New Resource("Calendar", "cat1", "category 1"))

^^ didn't work
highest preference is to add these colorings only in the provider but if I need to I can also add them dynamically in my page vb code if needed.
I use the webservice to keep from doing any database calls in the page to slow down my page. it would help to have the coloring only in the provider (webservice call) also.

Rumen
Telerik team
 answered on 01 May 2017
1 answer
181 views
I am looking to programmatically insert a new item in the TreeList client-side (javascript). I basically want to create a new item, set the new cell values,  its parent, and insert it into the tree at a predetermined position.  I found how to do this with the TreeView, but not the TreeList.
Eyup
Telerik team
 answered on 01 May 2017
1 answer
106 views

Hi,
I have problems retrieving the text of a raddropdownlist.
I populate the ddl in a quite basic way (Articles is a datatable):

ddlArticle.DataSource = Articles;
ddlArticle.DataTextField = "Description";
ddlArticle.DataValueField = "CodArt";
ddlArticle.DataBind();

Changing the selected value triggers nothing.
A button near the ddl triggers some events (basically, a databind on a radgrid); at this time i need to read datatextfield and datavaluefield:

string opv = ddlArticle.SelectedValue;
string articlename = ddlArticle.SelectedItem.Text;

ddlArticle.SelectedValue works perfectly and opv really contains the selected value, but ddlArticle.SelectedItem.Text throws an exception:

Exception thrown: 'System.NullReferenceException' in App_Web_prodotto.aspx.11948b1e.cmqcknjt.dll ("Object reference not set to an instance of an object.")

So i tried another way:

string opv = ddlArticle.SelectedValue;
RadComboBoxItem Item = ddlArticle.FindItemByValue(opv);
string article = Item.Text;

Again, opv contains the correct value, but Item.text is null, and Item is null too.

I am using Telerik 2016.3.

Thank you for any help you can provide.

 

 
Eyup
Telerik team
 answered on 01 May 2017
1 answer
235 views

Hi Team,

We need to prevent auto correct for raddatepicker. such as client entered 04/31/2017 it is automatically changed as 05/01/2017. we dont want autocorrect. instead of we need to show warning. if i entered 04/32/2017 it is throw warning correctly. we dont want just script for fix this issue. In our application we are using more than 500 pages. we need to have the common fix. it is very urjent. Please help us ASAP.

 

Thanks,

 

 

Eyup
Telerik team
 answered on 01 May 2017
0 answers
149 views

HI,

I  am using a Batch Mode to do updates and deletes,I am using GridButtonColumn for delete  operations and I am using OnDeleteCommand to bind the server side code. Now when I click the Delete buttons the row is deleted on Client side but server side even is triggered only when I hit 'Save Changes' which is fine.

I want to disable the row until the user hits save changes button(for visual indication that this row is marked for deletion and will be deleted on hitting save changes button) and causes a post back.

 

 

Thanks,

Harish.

Harish
Top achievements
Rank 1
 asked on 28 Apr 2017
3 answers
129 views

There are 4 directories I'm curious if I need to distribute along with our deployed web products:

RadControls

Scripts

TabControl

radSkins

Rumen
Telerik team
 answered on 28 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?