Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
How do I change the text color for the file explorer grid and tree, when I use the Black skin
Now it is light gray, I want it black. I have set the background for the grid and tree to white ....
Even how I change the selected and mouseover
Princy
Top achievements
Rank 2
 answered on 21 Sep 2011
1 answer
295 views
Hi,

is there a way to use MaskedTextBox control with Mask property defined using standard regular expression syntax? The custom syntax does not cover all scenarios.

Thanks,
Alexander
Shinu
Top achievements
Rank 2
 answered on 21 Sep 2011
2 answers
147 views
I'm attempting to customize the insertimage.ascx to allow for a custom image dialog to populate the image source.  I reviewed the customization of the linkmanager.ascx and have tried the below code, but I keep getting a javascript error stating that the Telerik.Web.UI.Dialogs is undefined.  I've obviously forgotten something or misunderstood how to access our own image selector.  I've got to use custom dialogs for flash, images and slideshows.  I've got our document dialog working fine with teh LinkManager, but am stuck here.  Any assistance would be great.

<script type="text/javascript">
    function showCustomDialog() {
        debugger;
        var argument = {};
 
        var callbackFunction = function (sender, args) {
            var oTextBox = $get("ImageSrc");
            oTextBox.value = args;
        }
        var dialogOpener = Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().get_dialogOpener();
        dialogOpener.openUrl("/custom_editors/Images.aspx", argument, 900, 650, callbackFunction, null, "image manager", true, 36, false, true);
    }
</script>

<div id="InsertImage" class="reInsertImageWrapper" style="display: none;">
    <table cellspacing="0" cellpadding="0" border="0" class="reControlsLayout">
        <tr>
            <td style="vertical-align: top;">
                <label class="reDialogLabelLight" for="ImageSrc">
                    <span>[imagesrc]</span>
                </label>
            </td>
            <td class="reControlCellLight">
                <table border="0" cellpadding="" cellspacing="0">
                    <tr>
                        <td>
                            <input type="text" id="ImageSrc" class="rfdIgnore" />
                        </td>
                        <td style="padding-left: 4px;">
                            <input id="Button1" type="image" value="Browse" onClick="showCustomDialog();return false;" src="/images/icons/image_add.png" class="imgButton"/>
                            <tools:StandardButton runat="server" ToolName="ImageManager" id="ImageManagerCaller" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <label class="reDialogLabelLight" for="ImageAlt">
                    <span>[imagealttext]</span>
                </label>
            </td>
            <td class="reControlCellLight">
                <input type="text" id="ImageAlt" class="rfdIgnore" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="reImgPropertyControlCell">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <label class="reDialogLabelLight" for="ImageWidth">
                                <span>[width]</span>
                            </label>
                        </td>
                        <td>
                            <input type="text" id="ImageWidth" class="rfdIgnore" />  px
                        </td>
                        <td>
                            <label class="reDialogLabelLight" for="ImageHeight">
                                <span>[height]</span>
                            </label>
                        </td>
                        <td>
                            <input type="text" id="ImageHeight" class="rfdIgnore" />  px
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table border="0" cellpadding="0" cellspacing="0" class="reConfirmCancelButtonsTblLight">
                    <tr>
                        <td align="right">
                            <button type="button" id="iplInsertBtn">
                                [ok]
                            </button>
                        </td>
                        <td>
                            <button type="button" id="iplCancelBtn">
                                [cancel]
                            </button>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>

Rumen
Telerik team
 answered on 21 Sep 2011
1 answer
247 views
I have an aspx page that has a RadGrids. I want to perform different operation in clicking and double-clicking the row. I have two client-side events for OnRowClick and OnRowDblClick. But RowClick is always called even I have double-clicking the row. How to make

OnRowDblClick together with OnRowClick ?


 Here are my codes:

 

 

function OnRowClick(sender, eventArgs) {

 

    alert(

 

"Row-Clicking")

 

}

 

 

function RowDoubleClick(sender, eventArgs) {

 

    alert(

 

"Double-clicking")

 

 }

<

 

 

telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowSorting="false"

 

 

 

AllowMultiRowSelection="False" AllowPaging="True" GridLines="Both" ShowGroupPanel="false"

 

 

 

OnItemCommand="RadGrid_ItemCommand" OnNeedDataSource="RadGrid_NeedDataSource"

 

 

 

OnItemDataBound="OnGridItemDataBound">

 

 

 

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>

 

 

 

<MasterTableView DataKeyNames="MeterStationNumber" AllowMultiColumnSorting="False">
----

 

 

 

</MasterTableView>

 

<

 

 

ClientSettings AllowDragToGroup="false" EnableRowHoverStyle="true" >

 

 

 

<ClientEvents OnRowDblClick="RowDoubleClick" OnRowClick="OnRowClick"/>

 

 

 

</ClientSettings>

 

Princy
Top achievements
Rank 2
 answered on 21 Sep 2011
1 answer
317 views
Hi ,

I want the tool tip should be shown on hovering the items on radcombobox, I am loading all the items on server side itself.
Onclient side i want to show the item text when hovering on mouse.

Please guide me.

Regards,
Xavier
Shinu
Top achievements
Rank 2
 answered on 21 Sep 2011
1 answer
102 views
Hi,

I have a

1) start datetime column
2) End datetime column

I'm hoping to avoid having to rewrite everything and create a gridtemplate column for validation. I was wondering about anyway to perform javascript functions to warn the user that the End datetime column must always be greater than the start datetime column.


thanks,
Minh Bui
Shinu
Top achievements
Rank 2
 answered on 21 Sep 2011
1 answer
88 views
Looking for a way to use an autogenerated edit form and automatic operations but add properties such as logged in user and date and time for an insert or update.  Is there a way to append items to what is being inserted using the grid's operations or is doing it on the data source the better option?
Shinu
Top achievements
Rank 2
 answered on 21 Sep 2011
2 answers
115 views
Hi,
I have a Grid that includes 2 GridButtonColumns. One of the buttons is MoveUp and the other is MoveDown. I need to hide the MoveUp button for the first row and hide the MoveDown button for the last row.

Is there an example for hiding a GridButtonColumn in the codebehind?

Thanks,
Dan
Dan Lehmann
Top achievements
Rank 1
 answered on 20 Sep 2011
2 answers
90 views
Hi,

I want to print labels.
Is this possible using telerik controls?

Thanks,
Ravi
Jagat
Top achievements
Rank 1
 answered on 20 Sep 2011
1 answer
534 views
Read this for a full details... the JavaScript errors that led me to this are printed below.  Please either answer my question on this thread or or Stack Overflow if you know how to resolve this.

http://stackoverflow.com/questions/7491924/http-handler-cannot-find-axd-file-in-nested-web-application-folder-telerik-radsc


JavaScript Error #1:

ASP.NET Ajax client-side framework failed to load.

<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}

JavaScript Error #2:

Sys is not defined

<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('RadScriptManager1', document.getElementById('editorform'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00SU'], [], [], 90);
//]]>
</script>

JavaScript Error #3:

RadEditorCommandList is not defined

RadEditorCommandList['Edit Link'] = function(commandName, editor, oTool)
{
_editor
= editor;
_point
= editor.CreateRestorePoint();
var selection = editor.GetSelection();
var pe = selection.GetParentElement();
var id = '';
if (pe && pe.tagName.toLowerCase() == 'a' && pe.attributes['cms:asset_id']) {
id
= pe.attributes['cms:asset_id'].value;
}
window
.top.InlineLinkEditor.selection = selection.GetText();
window
.top.InlineLinkEditor.show('elementid=' + $('__elementId').value + '&xrefid=' + id + '&html=' + encodeURIComponent(selection.GetHtmlText()), editLink, null);
};




newb
Top achievements
Rank 1
 answered on 20 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?