Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views

When a node of the treeview (in a combobox) is clicked, the text and value of this node is set to the selected item of the combobox. client side this works well. serverside the selectedvalue is rondomly empty.

function
nodeClicking(sender, args) {

 

 

var comboBox = $find("<%= cbEmployees.ClientID %>");

 

 

var node = args.get_node()

 

comboBox.set_text(node.get_text());

comboBox.trackChanges();

 

var item = comboBox.get_items().getItem(0);

 

item.set_value(node.get_value());

item.set_text(node.get_text());

comboBox.commitChanges();

comboBox.hideDropDown();

comboBox.attachDropDown();

}

Shinu
Top achievements
Rank 2
 answered on 26 Jul 2011
5 answers
106 views
Hello

I am getting text from radtreeview and trying to put the text in radeditor

i am doing it using fallowing JavaScript it is working fine in chrome. In IE8 pasteHtml is overwriting previous content in radeditor
function SetPlaceHolders(sender, args) {
     
            var Tree = $find("<%=RadTreeView_CommonControls.ClientID%>");
            var selectedNode = Tree.get_selectedNode();
            var text = selectedNode.get_value();
 
            if (text != null) {
             
 
                var editor = $find('<%= RadEditor_setupContent.ClientID  %>');
                          
                 editor.pasteHtml(text);
            }
        }
 i have tried fallowing links still i am facing same problem :

http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-replacing-all-text-in-ie8.aspx
http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-after-node-at-cursor-position.aspx
Thanks and regards
Alekhya
Dobromir
Telerik team
 answered on 26 Jul 2011
1 answer
128 views
Some of the issues I notice with ImageEditor demo on the Telerik site, is that the dialogs are slow. It's almost like it's using the same window to display all the dialogs. Is this a correct assumption and is it only me who experiences this slowness (in IE7 it's more noticeable, but in Chrome there is only a slight noticeable delay)?

Another issue I notice is that when you insert text, it looks pixelated, almost like there isn't any Anti-Aliasing going on with the text. Is this something that will be fixed?

Those are just some of the issues I notice with the RadImageEditor control demo.
Niko
Telerik team
 answered on 26 Jul 2011
2 answers
79 views
Hi ,

   Am using Radgrid having 200 columns with 5 to 10 rows only retrive. But it take long time to retrive. There is any way to increse the performance.

thanks,
vinoth
vinoth sansar
Top achievements
Rank 2
 answered on 26 Jul 2011
1 answer
221 views
Hi,

I can't seem to find a way to stop the resizing feature of the RadTextBox. Need to have this feature to keep website consistent with other Telerik controls.

Can somebody help please?

Andrew
Galin
Telerik team
 answered on 26 Jul 2011
2 answers
81 views
I was hoping to not need to redo all of my Telerik RadEditor web parts but that might be the case.  My thought was that by adding...
<dependentAssembly>
        <assemblyIdentity name="RadEditorSharepoint" publicKeyToken="1f131a624888eeed" culture="neutral" />
        <bindingRedirect oldVersion="6.1.3.0" newVersion="6.1.6.0" />
      </dependentAssembly>

Stil says it can't find 6.1.3.0.

What do I have wrong or am I out of luck?
Clint
Top achievements
Rank 1
 answered on 26 Jul 2011
1 answer
231 views
Hi,

Requirement:
     if any value of control change a flaf "dirty" is set to true else it is false. When user leave that page and if dirty flag is true. He is asked to save records or close window without saving.

We are using below script to find dirty flag for all the controls.

<script>
 
 
    var isDirty = false;
    var resetControls = ""// should be in , separated with # in ids
	var msg = 'You haven\'t saved your changes.\n Do you want to save changes ?';
 
 
 
 
	$(document).ready(function () {
	    alert($(".section :hidden").length);
	    
	    $(":submit,:reset ").click(function () {
	        isDirty = false;
	        alert("Dirty flag reset");
	    });
	    $(':input').change(function () {
	        if (!isDirty) {
	            alert("Dirty flag set")
	            isDirty = true;
	        }
	    });
 
	    window.onbeforeunload = function () {
	        if (isDirty) {
	            return msg;
	        }
	    };
 
	});
 
 
</script>

Above script is working fine with all input controls except hidden fields. Specifically RadComboBox and RadDatePicker are using hidden fields to post data.

Could you please provide solution so that we can check dirty flag with rad controls ?
Kalina
Telerik team
 answered on 26 Jul 2011
2 answers
186 views
Hello,

I need to render a RadMenu from code behind; I would like to do simply calling a sub (will be responsible to generate the menu) but I did not find anything similar around.
The call will be something like:
BuildMenu()

This sub will do the following:

Define the root menu and build the submenu for each root.

How can I acheive this?
Thanks
Kate
Telerik team
 answered on 26 Jul 2011
2 answers
99 views
I'd need to display an Export to Pdf icon to the RadGrid control (CommandItemSettings.ShowExportToPdfButton = true) but with a custom implementation of my own as I'm using an external tool for the export to pdf.

How would that be possible to overwrite the default PdfExport functionality?

Please advise.

Many thanks,

Pooya
Top achievements
Rank 1
 answered on 26 Jul 2011
4 answers
207 views
Hello everybody,
I have seen many posts and comments about this but none do works,
I have a RadGrid with a GridDropDownColumn, I tend to make it invisible in Edit Mode(when I click Edit Button of selected row) under specific Condition in Code Behind.It is not in Inplace Mode.Here Is My Source Code :
I want to hide "SiteOwnerId" under Specific Condition.
<telerik:RadGrid ID="RadGridUserInfo" CssClass="myRadGrid" GridLines="None" runat="server"
  
AllowAutomaticDeletes="True" PageSize="12" AllowPaging="True" AutoGenerateColumns="False"
  
OnItemUpdated="RadGridUserInfo_ItemUpdated" OnItemDeleted="RadGridUserInfo_ItemDeleted"
  
OnItemInserted="RadGridUserInfo_ItemInserted" OnDataBound="RadGridUserInfo_DataBound"
  
AllowFilteringByColumn="True" OnItemCreated="RadGridUserInfo_ItemCreated" OnInsertCommand="RadGridUserInfo_InsertCommand"
  
OnUpdateCommand="RadGridUserInfo_UpdateCommand" OnNeedDataSource="RadGridUserInfo_NeedDataSource"
  
OnEditCommand="RadGridUserInfo_EditCommand" OnItemDataBound="RadGridUserInfo_ItemDataBound"
  
OnDeleteCommand="RadGridUserInfo_DeleteCommand" 
  
oncolumncreated="RadGridUserInfo_ColumnCreated">
  
<SelectedItemStyle Font-Names="Tahoma" Font-Size="11px" ForeColor="#8abe23" />
  
<MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="UserInfoId"
  
HorizontalAlign="NotSet" AutoGenerateColumns="False" Font-Names="Tahoma" EditFormSettings-FormStyle-ForeColor="Black"
  
Font-Size="11px">
  
<CommandItemTemplate>
  
<div style="padding: 5px 5px;" dir="rtl">
  
asp:LinkButton ID="LinkButton4" runat="server" Font-Names="Tahoma" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="../Images/Icons/Refresh.gif" />به روزآوري اطلاعات</asp:LinkButton>
  
</div>
  
</CommandItemTemplate>
  
<Columns>
  
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
  
<ItemStyle CssClass="MyImageButton" />
  
</telerik:GridEditCommandColumn>
  
<telerik:GridButtonColumn ConfirmText="آيا از حذف ركورد جاري مطمئنيد؟" ConfirmDialogType="RadWindow"
  
ConfirmTitle="حذف ركورد جاري" ButtonType="ImageButton" CommandName="Delete" Text="حذف"
  
UniqueName="DeleteColumn">
  
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
  
</telerik:GridButtonColumn>
  
<telerik:GridDropDownColumn DataField="SiteOwnerId" EditFormColumnIndex="1" HeaderText="شركت فروشنده پنل"
  
UniqueName="SiteOwnerId" ListTextField="SiteOwnerName" ListValueField="SiteOwnerId"
  
DataSourceID="sds_SiteOwner" ColumnEditorID="GridDropDownEditor">
  
</telerik:GridDropDownColumn>
  
</Columns>
  
<EditFormSettings ColumnNumber="3" CaptionDataField="UserInfoId" CaptionFormatString="ويرايش اطلاعات"
  
InsertCaption="">
  
<EditColumn ButtonType="ImageButton" InsertText="ثبت پنل" UpdateText="ويرايش پنل"
  
UniqueName="EditCommandColumn1" CancelText="لغو ويرايش">
  
</EditColumn>
  
</EditFormSettings>
  
</MasterTableView>
  
</telerik:RadGrid>
Princy
Top achievements
Rank 2
 answered on 26 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?