Telerik Forums
Community Forums Forum
0 answers
112 views
Hello,
It's interesting: Playing with Sprites and jQuery: animated menu

Kind regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 30 Jun 2009
1 answer
105 views
When I was searching the forums I found a strange bug. I didn't know where else to put this so I put it here.

I navigated to the specific control and ran my search and I am presented with this screen...
Screen 1





I get 5 pages of results so I am presented with the paging option at the bottom of the screen. When I clicked the 'Next' button the strangeness happened. 

  1. My search string changed from 'calculated column' to 'calculatedcolumn' removing the space
    Screen 2
  2. The paging then displayed # of 1
    Screen 3



Atanas
Telerik team
 answered on 30 Jun 2009
1 answer
145 views
Hi,

 I am usinng EditMode ="InPlace" of RadGrid  for insert and edit operations in radgrid..With insert extra button is shown..
The sample code is as below.  how to remove that additional button i want only link button . how to aoid that extra button and to  apply css for the edit and insert cancel link buttons?
Thanks in advance,
Laila


 <telerik:RadGrid ID="Radgrid1" runat="server" GridLines="None" AllowPaging="True"
                AllowSorting="false" AutoGenerateColumns="False" PageSize="10" Width="97%" OnNeedDataSource="Radgrid1_NeedDataSource"
                OnInsertCommand="Radgrid1_InsertCommand" OnUpdateCommand="Radgrid1_UpdateCommand"
                OnItemDataBound="Radgrid1_ItemDataBound" Skin="WFM" EnableEmbeddedSkins="False">
                <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                <MasterTableView DataKeyNames="Pharma_Rep_Id" GridLines="None" Width="100%" CommandItemDisplay="Top"
                    ShowHeader="true" EditMode="InPlace" CommandItemSettings-AddNewRecordText="Insert"
                    EditItemStyle-ForeColor="Black">
                    <Columns>
                        <telerik:GridEditCommandColumn>
                        </telerik:GridEditCommandColumn>
                        <telerik:GridTemplateColumn HeaderText="Title" SortExpression="Title" UniqueName="Title"
                            ItemStyle-HorizontalAlign="left">
                            <ItemTemplate>
                                <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("TITLE") %>' ForeColor="Black"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="left" VerticalAlign="Middle" ForeColor="black" />
                            <EditItemTemplate>
                                <asp:DropDownList ID="ddlTitle" runat="Server" AutoPostBack="true" Font-Bold="false"
                                    ForeColor="black" ToolTip="" Width="200px">
                                    <asp:ListItem Text="Pharma Rep Title_1" Value="2655"></asp:ListItem>
                                    <asp:ListItem Text="Pharma Rep Title_2" Value="2656"></asp:ListItem>
                                    <asp:ListItem Text="Pharma Rep Title_3" Value="2657"></asp:ListItem>
                                    <asp:ListItem Text="Pharma Rep Title_4" Value="2658"></asp:ListItem>
                                    <asp:ListItem Text="Pharma Rep Title_5" Value="2659"></asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemStyle HorizontalAlign="left" VerticalAlign="Middle" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="Reason" HeaderText="Reason" UniqueName="Reason"
                            MaxLength="50" SortExpression="Reason">
                            <ItemStyle HorizontalAlign="left" VerticalAlign="Middle" ForeColor="black" />
                        </telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings ColumnNumber="2" CaptionFormatString="Edit details for Reason {0}"
                        CaptionDataField="Reason">
                        <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                        <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                        <FormMainTableStyle CellSpacing="0" CellPadding="3" Width="100%" />
                        <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"
                            Height="110px" Width="100%" />
                        <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                        <FormStyle Width="100%" BackColor="#eef2ea"></FormStyle>
                        <EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                            <ItemStyle BackColor="black" />
                        </EditColumn>
                        <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                    </EditFormSettings>
                </MasterTableView>
                <HeaderContextMenu EnableEmbeddedSkins="False" Skin="WFM">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </HeaderContextMenu>
            </telerik:RadGrid>
      
Pavlina
Telerik team
 answered on 24 Jun 2009
1 answer
95 views
Hi,

     Could you'll please guide in filtering the paragraph option I want to retain H1, H2, H3, H4 only and delete others like Formatting, Address list etc. Please let me know which javascript file needs to changed and wat should be deleted.Im  using external .css file which contains Paragraph option from H1 to H4 but still I can find dropdown populating values for Formatting, Address etc please let me know which is this display occuring and what I need to do delete other values retaining only H1, H2, H3 and H4
Rumen
Telerik team
 answered on 23 Jun 2009
0 answers
85 views
Hello,
I want to share this useful article:
Intermediate JQuery Performance metrics and tuning

Best regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 22 Jun 2009
1 answer
67 views
Can you guys not put a year on the post's date information?  Too many times I'm looking at a solution in the forums and have no idea if it's from 2009 or 2006!...   and if they don't mention the version of the tools they are using...  it's impossible.
Valentine
Telerik team
 answered on 22 Jun 2009
0 answers
81 views
Hello,
Nice job: Smart Columns with CSS & jQuery

Kind regards
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 22 Jun 2009
1 answer
138 views
We are pleased to announce the Beta for Q2 2009!

Demos
Full Release Notes

Download now from your account! (see attached screenshot)

We are looking forward to your feedback.

Best Regards,
Telerik Team
Jørgen
Top achievements
Rank 1
 answered on 17 Jun 2009
1 answer
133 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
205 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?