Telerik etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Telerik etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

2 Eylül 2016 Cuma

Telerik ItemCommand Example And FindControls

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
   {
       if (e.CommandName == "YourCommandName")
       {
           // For Normal mode
           GridDataItem item = e.Item as GridDataItem;
           TextBox TextBox1 = item.FindControl("TextBox1") as TextBox;
           // Access your TextBox Here
 
 
           // For Edit mode
           GridEditableItem eitem = e.Item as GridEditableItem;
           TextBox TextBox2 = eitem.FindControl("TextBox2") as TextBox; // From Item Template
           TextBox TextBox3 = eitem["ColumnUniqueName"].Controls[0] as TextBox; // From Bound Column
           // Access your TextBox Here
       }
   }

14 Mayıs 2015 Perşembe

Chrome, Mozilla ve Explorer için 8 karakter boşluk bırakma

//Markup Kodu
  <telerik:RadEditor ID="txtRADEditor1" OnClientLoad="Editor_OnClientLoad1" runat="server" Height="100" Width="682px" ToolbarMode="ShowOnFocus" StripFormattingOptions="MSWordRemoveAll"  
                                 OnClientCommandExecuting="HTMLEditor_OnClientCommandExecuting" EnableResize="false" AutoResizeHeight="false" OnClientPasteHtml="OnClientPasteHtml">  
                                 <RealFontSizes>  
                                   <telerik:EditorRealFontSize Value="8px" />  
                                   <telerik:EditorRealFontSize Value="9px" />  
                                   <telerik:EditorRealFontSize Value="10px" />  
                                   <telerik:EditorRealFontSize Value="11px" />  
                                   <telerik:EditorRealFontSize Value="12px" />  
                                   <telerik:EditorRealFontSize Value="14px" />  
                                   <telerik:EditorRealFontSize Value="16px" />  
                                 </RealFontSizes>  
                               </telerik:RadEditor>  



//Java Script Kodu

function Editor_Tab_Press_For_Firefox(editor, args) {

    if (browser.isMozilla) {
        editor.attachEventHandler("onkeydown", function (e) {
            if (e.keyCode == '9') {
                editor.pasteHtml("&nbsp;&nbsp;&nbsp;&nbsp;");
                e.preventDefault();
                e.cancelBubble = true;
                e.stopPropagation();
            }
        });
    }
}

function Editor_OnClientLoad1(editor, args) {
    call_editor_1_justifyfull = true;

    editor.attachEventHandler("onkeydown", function (e) {
        if (e.keyCode == '9') {
            editor.pasteHtml("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
            e.preventDefault();
            e.cancelBubble = true;
            e.stopPropagation();
        }
    });

    Editor_Tab_Press_For_Firefox(editor, args);

    if (browser.isChrome) {
        editor.attachEventHandler("onkeydown", function (e) {
            if (e.keyCode == '9') {
                editor.pasteHtml("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
                e.preventDefault();
                e.cancelBubble = true;
                e.stopPropagation();
            }
        });
    }
}