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

I think i've come across a bug in the advanced edit form using webservice population. A recurring appointment is moved in time when you doubleclick any occurence but the first one and select "edit series".

This can be reproduced in your online demo of webservice data population.

Steps to reproduce:
1: Create a daily recurring event. Starting Sep. 1st  2009 with 10 recurrences
2: Doubleclick Sep. 5th 2009 and select "Edit series"
3: Open advanced form

The advanced form has start date set to Sep 5th with 10 recurrences. By accepting the entire series is moved 5 days ahead.
Your other demos behave as expected and keep the original start date.

Hope you can fix this and maybe even provide an immidiate workaround.
Peter
Telerik team
 answered on 07 Sep 2009
7 answers
207 views
Hi,
I have a Radmenu which has an item template inside it. I am using onmouseover and onmouseout events inside the radmenu.
Here is the error which internex explorer gives. (the error occurs if i fastly mouve the mouse over the items)
Webpage error details 
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; FDM; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729) 
Timestamp: Thu, 27 Aug 2009 14:19:42 UTC 
 
 
Message: 'style.getPropertyValue' is null or not an object 
Line: 176 
Char: 1 
Code: 0 
URI: http://www.arkadas.com.tr/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.311.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af48f6488-574a-46fe-9b15-624f013d8c03%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3ae330518b%3a1e771326%3ac8618e41 
 


 Below is my RadMenu.
<telerik:RadMenu Width="150px" DataFieldID="OID" DataValueField="OID"  
    DataTextField="Name" ID="MenuCategories" runat="server"  
    DataSourceID="DataSourceMenu"       
    AppendDataBoundItems="False" DefaultGroupSettings-Flow="Vertical"  
    Flow="Vertical" Skin="MyDefaultLeft" EnableEmbeddedSkins="false" 
    ondatabound="MenuCategories_DataBound" DataFieldParentID="OIDParent"  
    MaxDataBindDepth="2" EnableAutoScroll="True">   
      <ItemTemplate> 
        <table width="140px"
            <tr> 
                <td id="td" runat="server" onmouseover='<%#Open(Eval("OID"))%>' onmouseout='<%#Close(Eval("OID"))%>'
                    <asp:LinkButton ID="linkButton" Font-Underline="false" OnClick="linkButton_Click" CommandArgument='<%#Eval("OID") %>' runat="server" Text='<%#Eval("Name")%>'></asp:LinkButton> 
                </td> 
            </tr> 
        </table>                 
      </ItemTemplate>          
</telerik:RadMenu> 
 

Here is my code for "Open" and "Close"
public string Open(object o) 
        { 
            string ret = ""
             
            if (!Categories.Exists(x => x.OIDParent == new Guid(o.ToString()))) 
            { 
                ret = string.Format( "newwindow=window.radopen('../PageReproductionDetails.aspx?oid={0}',null);" , o.ToString() ) + "newwindow.moveTo(520,300);"
            } 
            return ret; 
 
        } 
 
public string Close(object o) 
        { 
            string ret = ""
            if (!Categories.Exists(x => x.OIDParent == new Guid(o.ToString()))) 
                ret = "newwindow.close();"
            return ret; 
        } 
 

I could not find any solutions.

Regards.

Kamen Bundev
Telerik team
 answered on 07 Sep 2009
1 answer
83 views
Hello all.  I am trying to get a datakeyname from the parent
of a child table when the Context Menu is displayed.  I am
having a difficult time trying to figure this out.  Any ideas?
Thanks.

// Abbreviated function for ease of reading  
function ShowContext(sender,args){  
var menu = $find("GridContextMenu");  
var selectedindex = args.get_itemIndexHierarchical();  
 
//Not sure about below  
var parentindex = sender.get_parentView().getDataKeyNames("EventId");  
 
menu.show(args.get_domEvent());  


Joshua
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2009
1 answer
201 views
I have a hierarchical grid - the Master table and a details table. When the user expands a row in the parent table the details table is loaded. The details table has an Add New Record button. When this is pressed, I need to obtain the value of some column in the parent row that was expanded. This must be done on the client-side using javascript. Note: the parent row is not selected, it's just expanded, so I cannot rely upon obtaining the selected row. I could not find any API method for the client side on how to obtain a value in the parent row. Any suggestions?

Thanks
Johann
Yavor
Telerik team
 answered on 07 Sep 2009
0 answers
106 views
I hv grid , i calculate the the row content total in below i want the total like tis

Grouping within Grouping

grid group by First group by Marks , Age
Then Group by Div

--------------------------------------------------------------------
Emp          Marks                Age             Per       Div
--------------------------------------------------------------------
Marks    : 55            Age : 25                Div  : A
--------------------------------------------------------------------
rahul         55                     25                   60         A
kailsh         55                    25                  70          A
--------------------------------------------------------------------
                        Count        2                                    2
-------------------------------------------------------------------
Marks    : 55            Age : 25                Div  : B
--------------------------------------------------------------------     
nitin             55                   25                   80         B
--------------------------------------------------------------------
                        Count       1                                   1


-------------------------------------------------------------------
Marks    :45            Age : 26                Div  : C
-------------------------------------------------------------------- 
abc           45                     26                  90            c
pqr            45                     26                  90            c
------------------------------------------------------------------
                        Count        2                                    2


I Want Group Footer Like this
If inner group div is different dont show the footer of first group statment , it will calucate the whole group count example shown below .....   It fist groups the  Marks    : 55            Age : 25          Div  : A  Then It it will gorup within that group
Marks    : 55            Age : 25                Div  : B whose Div B ...........Total count of the group is 3 ? how to do this like below example now i will get the output is like above sample

--------------------------------------------------------------------
Emp          Marks                Age             Per       Div
--------------------------------------------------------------------
Marks    : 55            Age : 25                Div  : A
--------------------------------------------------------------------
rahul         55                     25                   60         A
kailsh         55                    25                  70          A
-------------------------------------------------------------------
Marks    : 55            Age : 25                Div  : B
--------------------------------------------------------------------     
nitin             55                   25                   80         B
--------------------------------------------------------------------
                        Count       3                                  3


-------------------------------------------------------------------
Marks    :45            Age : 26                Div  : C
-------------------------------------------------------------------- 
abc           45                     26                  90            c
pqr            45                     26                  90            c
----------------------------------------------------------------
                        Count        2                                    2



kindly please help me urgent ..... How hide the total of first group it calculate the first + second group then show the total.




Thanks
Regards
Rahul





          

     <telerik:RadGrid ID="dgAddCart" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Skin="Black" AllowPaging="True" ShowFooter="true" ShowStatusBar="True">
                    <GroupingSettings  GroupContinuesFormatString=" "  GroupByFieldsSeparator = "  " />
                    
                    <FooterStyle BackColor="White" ForeColor="Red" BorderWidth="2px" BorderColor="ActiveCaption"
                        BorderStyle"Groove" />
Rahul
Top achievements
Rank 1
 asked on 07 Sep 2009
1 answer
131 views

I'm working on a project where i need to upload images to a DB. The images could vary in size when being uploaded by the clients, but when inserted in the DB, they cannot be larger than 640x480. I went through the examples in the documentations, they all reference saving the images to the file system. I'm having a hard time doing the conversion to a bitmap, then to a GraphicImage, then back to a byte stream to insert in the DB. Loading the original UploadedFile into the DB is not an issue at all:

Dim FileBytes(PhotoFile.InputStream.Length - 1) As Byte

 

 

 

PhotoFile.InputStream.Read(FileBytes, 0, PhotoFile.InputStream.Length)

Any help would be appreciated,
-Sam

 

Genady Sergeev
Telerik team
 answered on 07 Sep 2009
1 answer
157 views
I have added the radscheduler to my website.

I want to use the xmlprovider to bind xml (as a file) to the scheduler to display content. Many of the demos use xml files in the scenario (as the description states) but don't show these such files.

As a result, is there an example of the layout the xml file should follow?

Thanks
Atanas Korchev
Telerik team
 answered on 07 Sep 2009
1 answer
276 views
Hello.

i have a question about radgrid groups, by default i need to click little arrow to expand/collapse the group.
Is it possible to have same behaviour when clicking on group header (the text which come from <SelectFields>) ?

Thank You !
Princy
Top achievements
Rank 2
 answered on 07 Sep 2009
3 answers
119 views
The RadGrid is billed as supporting the following features:
  • Codeless databinding
  • Codeless insert, update, delete datasource operations
  • Codeless paging, sorting, selecting, filtering

My scenario:

I bind a grid to a webservice.  This works fine.

I'm using the following grid markup:

        <telerik:RadGrid ID="GridCustomers" runat="server" 
                AllowPaging="True" 
                AllowSorting="True"
                Skin="Simple"
                AutoGenerateColumns="False">
            <MasterTableView EnableViewState="False">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="CustomerId" SortExpression="CustomerId" UniqueName="CustomerId" DataType="System.String" HeaderText="Customer ID" />
                    <telerik:GridBoundColumn DataField="ContactTitle" SortExpression="ContactTitle" UniqueName="ContactTitle" DataType="System.String" HeaderText="Contact Title" />
                    <telerik:GridBoundColumn DataField="ContactName" SortExpression="ContactName" UniqueName="ContactName" DataType="System.String" HeaderText="ContactName" />
                </Columns>
            </MasterTableView>
            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" 
                ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <DataBinding Location="RadGrid.aspx" EnableCaching="true" SelectMethod="GetData" />
           </ClientSettings>
        </telerik:RadGrid>
        <telerik:RadAjaxLoadingPanel ID="Panel1" runat="server"/>

My sorts don't happen automatically on the client side.  Of the samples I've seen so far on the Telerik site, all involve server or client side coding to make the sorts work.  Other third party vendors have grids which use codeless sorting.  I.e., you don't write either client or server side code to react to sort events, etc.  The grid emits JavaScript which does all this work automatically.

Can someone point me to a sample which demonstrates the Telerik idea of "codeless" sorting?

Thanks in advance.
BaiH
Top achievements
Rank 1
 answered on 07 Sep 2009
2 answers
198 views
I'm having trouble changing the expand/collapse button image in a grid. My goal is that I would like to keep the EnableEmbeddedBaseStylesheet ja EnableEmbeddedSkins false and set only the styles I need for the grid. This works fine and as expected, it also gets rid of the original styles of the button. The problem is that I can't find a place where to set the imageurl for the button.

I have tried several different solutions:

Inside mastertableview:
<ExpandCollapseColumn ButtonType="LinkButton"  CollapseImageUrl="myfirsturl" ExpandImageUrl="mysecondurl" />

In Prerender:
dim column = TryCast(mygrid.MasterTableView.GetColumn("ExpandColumn"), GridExpandColumn)
column.ButtonType = GridExpandColumnType.ImageButton
column.ExpandImageUrl = mysecondurl
column.CollapseImageUrl = myfirsturl

In ColumnCreated:
If TypeOf e.Column Is GridExpandColumn Then
            Dim column = TryCast(e.Column, GridExpandColumn)
            column.ButtonType = GridExpandColumnType.ImageButton
            column.ExpandImageUrl = mysecondurl
            column.CollapseImageUrl = myfirsturl
End If

Nothing works. I have a feeling that I'm trying to set it 1) int the wrong sub (even though many examples use solutions above) 2) to the wrong element. So how can I change it?




S V
Top achievements
Rank 1
 answered on 07 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?