Telerik Forums
Community Forums Forum
1 answer
142 views
when it comes to describing drawing glitches etc, it would be handy to be able to upload images etc.
if the answer is to write a support ticket / bug report, the beta version should be selectable.

Regards
Erwin
Atanas
Telerik team
 answered on 16 Jun 2009
1 answer
223 views
Hello Telerik

I have implement Drag and drop functionality in my page usign RadGrid. But I am not able to achieve this functionality.
I have taken reference of telerik Demo application 
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

But in this demo also reordring of grid rows is not working. Only movement of rows between within two grid is working 

   .aspx page code

<

 

radControls:RadScriptBlock runat="server" ID="scriptBlock">

 

 

<script type="text/javascript">

 

 

function onRowDropping(sender, args)

 

{

 

if (sender.get_id() == "<%=grdFieldValueList.ClientID %>")

 

{

 

var node = args.get_destinationHtmlElement();

 

 

if(!isChildOf('<%=grdFieldValueList.ClientID %>', node) )

 

{

args.set_cancel(

true);

 

}

}

}

 

 

function isChildOf(parentId, element)

 

{

 

while(element)

 

{

 

if (element.id && element.id.indexOf(parentId) > -1)

 

{

 

return true;

 

}

element = element.parentNode;

}

 

return false;

 

}

 

 

</script>

 


<radControls:RadGrid ID="grdFieldValueList" runat=server AutoGenerateColumns=false OnRowDrop="grdFieldValueList_RowDrop">

 

<ClientSettings AllowRowsDragDrop=true >

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="true"/>

 

 

<ClientEvents OnRowDropping="onRowDropping" />

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="true" />

 

 

</ClientSettings>

 

 

<MasterTableView DataKeyNames="FieldCode" GridLines="Both" BackColor="White">

 

 

<Columns>

 

 

 

<radControls:GridBoundColumn DataField="FieldCode"></radControls:GridBoundColumn>

 

 

<radControls:GridBoundColumn DataField="DisplayName"></radControls:GridBoundColumn>

 

 

 

</Columns>

 

 

</MasterTableView >

 

 

 

</radControls:RadGrid>

 


aspx.cs page code

 

private static DWField GetFieldValue(IList<DWField> valuesToSearchIn, int FieldCode)

 

{

 

foreach (DWField fieldValue in valuesToSearchIn)

 

{

 

if (fieldValue.FieldCode == FieldCode)

 

{

 

return fieldValue;

 

}

}

 

return null;

 

}

 

 

protected void grdFieldValueList_RowDrop(object sender, GridDragDropEventArgs e)

 

{

 

if (e.DestDataItem != null && e.DestDataItem.OwnerGridID == grdFieldValueList.ClientID)

 

{

 

//reorder items in grid

 

 

IList<DWField> fieldValueList = (IList<DWField>)Session["FieldList"];

 

 

DWField tmpFieldValue = GetFieldValue(fieldValueList, (int)e.DestDataItem.GetDataKeyValue("FieldCode"));

 

 

int destinationIndex = fieldValueList.IndexOf(tmpFieldValue);

 

 

if (e.DropPosition == GridItemDropPosition.Above && e.DestDataItem.ItemIndex > e.DraggedItems[0].ItemIndex)

 

{

destinationIndex -= 1;

}

 

if (e.DropPosition == GridItemDropPosition.Below && e.DestDataItem.ItemIndex < e.DraggedItems[0].ItemIndex)

 

{

destinationIndex += 1;

}

 

List<DWField> ValuesToMove = new List<DWField>();

 

 

foreach (GridDataItem draggedItem in e.DraggedItems)

 

{

 

DWField tmpOrder = GetFieldValue(fieldValueList, (int)draggedItem.GetDataKeyValue("FieldCode"));

 

 

if (tmpOrder != null)

 

ValuesToMove.Add(tmpOrder);

}

 

foreach (DWField dwField in ValuesToMove)

 

{

fieldValueList.Remove(dwField);

fieldValueList.Insert(destinationIndex, dwField);

}

 

Session[

"FieldValueList"] = fieldValueList;

 

grdFieldValueList.DataSource = fieldValueList;

grdFieldValueList.DataBind();

 

//grdFieldValues.Rebind();

 

e.DestDataItem.Selected =

true;

 

}

}


The problem is that RowDrop(Serevr side event is getting not fired  every time. It is getting fired sometimes and I am not able to find in which scenario it is getting fired .

Kindly provide me the resolution of this problem

Thanks
 Monika Sharma
Bruno
Top achievements
Rank 2
 answered on 12 Jun 2009
3 answers
132 views
Over the years, I subscribed to quite a number of forum threads. Today I wanted to unsubscribe from old threads, but found that this is quite time-consuming (go to my profile, click subscribed forum threads, click each thread, click the unsubscribe link, etc.)

Therefore I'd like to suggest that you add an unsubscribe link directly in the "subscribed threads" list (http://www.telerik.com/community/forums/subscriptions.aspx). This would make unsubscribing so much easier.

Thanks and best regards.
Kalina
Telerik team
 answered on 11 Jun 2009
0 answers
121 views
It is our pleasure to present you the much improved and completely new RadDock for WinForms (Q2 2009 Beta). You can find detailed information on what is new and improved here: RadDock for WinForms Q2 2009 Beta.Project upgrdaing instructions are also included.

The beta is available for download from your Telerik accounts --> Downloads (or Free Trials for the trial version) --> RadControls for WinForms:

RadControls for WinForms Beta Download


We are eager to get your feedback on the RadDock beta, so please use the WinForms Beta Forum to send us your comments.

Enjoy!
 
All the best,
The Telerik Team
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 09 Jun 2009
1 answer
170 views
Hi,
       Am using Radeditor list and as well as webpart, things goes fine with webpart but I have issue in List Items, Paragraph styles on Saving will not getting applied for Rich Text and the same will work fine in Enhanced Rich Text

Here the code which I could see in View source for the entered text in editors

In Rich Text

This is Rich Text

Where as In Enhanced Rich Text its the text is wrapped in div

%3cdiv class%3dExternalClassE3422639FCD448D2B1B6F8BB1322DC69%3e%3ch1 class%3dExternalClass3C796753EB8940BFADB7514CBFC2775C%3eThis is Enriched Text%26nbsp%3b%3c/h1%3e
%3c/div%3e
is it bcos its wrapped in div the paragraph styles are getting applied on save in case of Enhanced and wat we need to do for the same to get applied for Rich Text

Please guide me why this difference when text is passed in Rich Text and Enhanced Text appears like this in view source
Lini
Telerik team
 answered on 05 Jun 2009
2 answers
788 views
I am getting this message as a result of adding the line

using Telerik.WebControls;

Any idea how to fix that?

Thank you.
L
Top achievements
Rank 1
 answered on 05 Jun 2009
0 answers
56 views
Hello,
I hope this useful
21 Scripts and Tips to Decrease Website Server Load

Best regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 03 Jun 2009
0 answers
112 views
Hello,
I found it useful.
the Ultimate jQuery list

Kind regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 03 Jun 2009
1 answer
166 views

Hi,

I am a telerik user but I haven't purchased a commercial license. 

One of the biggest problems I have is that bugs I may find cannot be reported via a support ticket for rapid checking because I'm not a paying customer. In my case, I haven't brought a license because I want to learn the API and a couple of issues I have found need fixing first (which I am sure they will be), but I push the controls just as much as a paying customer.

Any chance we can submit tickets too? Direct support by email may be useful (some mechanism to see progress on the bugs we may find).

Thanks

Paul
Telerik team
 answered on 01 Jun 2009
0 answers
77 views
Hello,
I want to share this:  30 Best jQuery Plugins - May 2009

Best regards
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 30 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?