Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
147 views
Hi,
I took a look at the Webmail system demo and downloaded the source code. Unfortunately, I could not find a vb version. I wonder if we have the source code in vb? if we do, may you please show me where I can download it!

Kind regards,
Hai Tran
Hai
Top achievements
Rank 1
 answered on 06 Apr 2011
3 answers
313 views
I am adding columns in grid dynamically. The header row formatting does not comes in export to excel. i set the back color and fore color of header in the header style section of grid but nothing comes up in excel file.


Thanks,
Abhinandan Bansal
Pavlina
Telerik team
 answered on 06 Apr 2011
2 answers
74 views
Hi,

I am using RadgridQ12010 Asp.net ajax controls

In my page i am using Radgrid it contains 10 columns

primaryid, systemid, patientsysid, pat firstname.etc..

In radgrid i removed default filteroptions but i am using that methods

my problem is first i sort the colum(pat.first name) start with g(so i type g), then i remove and sorth another column primaryid.

but system display only combination of column primaryid and patfirst name(start with g).but i want only the sorth the primay id not the pat.first name.

Pls tell the solution

herewith i attached my code snippets

<telerik:RadGrid ID="grUserlist" runat="server" ShowFooter="True" Skin="Outlook"
                    AllowPaging="True" AutoGenerateColumns="False" GridLines="None"
                    AllowFilteringByColumn="True" AllowSorting="True" Width="99.8%" OnDataBound="grUserlist_DataBound"
                    OnItemDataBound="grUserlist_ItemDataBound"
                    onprerender="grUserlist_PreRender"
                    onneeddatasource="grUserlist_NeedDataSource" >
                    <GroupingSettings CaseSensitive="false" />
                    <MasterTableView>
                        <Columns>
                            <telerik:GridTemplateColumn FilterControlWidth="100%" AllowFiltering="False"
                                ShowFilterIcon="False" HeaderText="Review" CurrentFilterFunction="StartsWith"
                                FilterDelay="1000000" >
                                <HeaderTemplate>
                                    <headerstyle/>
                                    <asp:Label runat="server"  ID="lblstatus">View</asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ibtnView" runat="server"
                                        ImageUrl="~/App_Themes/Admin_Theme/Images/view_icon.gif"
                                        CommandArgument='<%#  Eval("PRECERT_NO_NEW") + "$" + Eval("MEMBER_PRIMARY_ID") + "$" + Eval("MEMBER_SYSTEM_ID") + "$" + Eval("PATIENT_SYSTEM_ID") + "$" + Eval("MEMBER_FIRST_NAME") + "$" + Eval("MEMBER_LAST_NAME") + "$" + Eval("PATIENT_FIRST_NAME") + "$" + Eval("PATIENT_LAST_NAME") %>' />
                                </ItemTemplate>
                                <HeaderStyle Wrap="False" Width="40px" HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn DataField="TRANSACTION_NO" FilterControlWidth="100%" HeaderText="Transaction #"
                                    UniqueName="TRANSACTION_NO" CurrentFilterFunction="StartsWith" FilterDelay="1000000"
                                    ShowFilterIcon="False">
                                    <HeaderStyle Width="100px" HorizontalAlign="Center" Font-Bold="True" />
                                    <ItemTemplate>
                                        <%-- <asp:LinkButton ID="LinkButton1" runat="server" Text="REQUEST_ID" CommandName="Select" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "REQUEST_ID").ToString()%>'></asp:LinkButton>--%>
                                        <asp:Label ID="linkTrnNo" runat="server" Text='<%# Eval("TRANSACTION_NO") %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="left" />
                                </telerik:GridTemplateColumn>


Thanks
Shamupsk





shamu kumar
Top achievements
Rank 1
 answered on 06 Apr 2011
2 answers
40 views
On of my btton click event I am opening one panel in model popup (using Ajax popup extender).

Some Rad DatePkrs and Rad Combos are there in the popup.Now when I tried to select Date , at that time that date pkr popup is not opening. 

Com box is also not opening.

If any one knows what is the issue dan please tell me.

-Thanks
Jason Gajewski
Top achievements
Rank 1
 answered on 06 Apr 2011
11 answers
330 views
Hello,

I have a RadGrid with nested tables, for now called parent and child. It is a business rule that no parents can be childless, and that only the children can be removed. This results in a situation where the parent will have to be deleted when the last child is deleted.

At the moment, in the OnDeleted method, I am using
item.FireCommandEvent(RadGrid.DeleteCommandName, ""); 
to remove the parent item, after checking if the parent is now empty.

This results in a ArgumentOutOfRangeException at:
at System.Collections.ArrayList.get_Item(Int32 index) 
at Telerik.Web.UI.GridDataKeyArray.get_Item(Int32 index) 
at Telerik.Web.UI.GridTableView.FilterDetailDataSource() 
at Telerik.Web.UI.GridTableView.DataBind() 
at Telerik.Web.UI.GridTableView.Rebind() 

I assume because it's looking for a non-existent parent element when trying to create the now empty detailtable.

Can anyone help me resolve this situation. Basically I want the parent item removed when a child item is removed. I tried using the NeedDataSource event to check for empty parents and remove them directly on the database, but I'm not having much success with assigning already existing DataSources to the master and detail tables.

Thanks


Tri Nguyen
Top achievements
Rank 1
 answered on 06 Apr 2011
1 answer
50 views
I have question. What is the best way to filtering huge part of data in RadGrid. My database table has sth about 1 million records. I must filtering data and counting aggregates and I want that this may take possible fast.
Pavlina
Telerik team
 answered on 06 Apr 2011
0 answers
57 views
I've bound data to a radgrid which I'm using to just reimplement a preexisting gridview control.

I keep getting the error "System.Web.HttpException: The DataSourceID of 'drpGradesEdit' must be the
ID of a control of type IDataSource.  A control with ID 'sqlDSGradesEdit' could not be found." when
the grid goes into edit mode
 
One of the columns has a button that fires the Edit command and two have radcombobox + SQLDataSource controls on their Edit templates 
and when I click the edit button I loop through the following bit of code until I get the the item before the one I clicked edit on, and once
It finishes the sub for that previous item It jumps to my error handling function with the above error message.


Protected
Sub rgUserQuals_RowDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgUserQuals.ItemDataBound
       ' Check that Item sending the event is a RadGrid Data Item
       If (TypeOf e.Item Is Telerik.Web.UI.GridDataItem) Then
           'Go through all the Rad grid Items in edit mode and 
           Dim GridEditableItem As Telerik.Web.UI.GridEditableItem
           If (TypeOf e.Item Is Telerik.Web.UI.GridEditableItem) And e.Item.IsInEditMode Then
               ' Then
               Try
                   Dim teststring As String = ""
                   teststring = Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("Qualification")
                   Dim gs As SqlDataSource = CType(e.Item.FindControl("sqlDSGradesEdit"), SqlDataSource)
                   gs.SelectParameters("Qualification").DefaultValue = _
                   Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("Qualification")
                   gs.SelectParameters("QualType").DefaultValue = _
                   Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("QualType")
                   Dim cbo As Telerik.Web.UI.RadComboBox = CType(e.Item.FindControl("drpGradesEdit"), Telerik.Web.UI.RadComboBox)
                   cbo.DataSourceID = gs.ID
                   cbo.DataBind()
                   cbo.SelectedValue = Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("Grade")
                   Dim ss As SqlDataSource = CType(e.Item.FindControl("sqlDSSchoolsEdit"), SqlDataSource)
                   ss.SelectParameters("SchoolName").DefaultValue = _
                   Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("SchoolName")
                   Dim rcbuqes As Telerik.Web.UI.RadComboBox = CType(e.Item.FindControl("rcbUsersQualEditSchool"), Telerik.Web.UI.RadComboBox)
                   rcbuqes.DataSourceID = ss.ID
                   rcbuqes.DataBind()
                   rcbuqes.SelectedValue = Me.rgUserQuals.MasterTableView.DataKeyValues(e.Item.ItemIndex)("SchoolName")
               Catch ex As Exception
               End Try
           End If
       End If
   End Sub
Gordon
Top achievements
Rank 1
 asked on 06 Apr 2011
3 answers
103 views
Hi, I'm using RadGrid, to show a list of components. The problem is, when I tried to click on a record, to enter the edit form, the page takes more than 10-15 seconds only to display the editing form. This issue doesn't happen on Chrome or fxf, in those browsers it only takes 3-4 secs to load the page. 

Do you know what I can do to improve the performance on IE??
I already tried disabling pagination, sorting and other features.... I also tried showing only 5 records to see if there's a problem with the qty of data, adding custom pagination to return less results, minimizing Css. 

Is there any known issue with IE? 

I would really appreciate any help you can give me. 

Thanks,
Janise Piombo
Pavlina
Telerik team
 answered on 06 Apr 2011
1 answer
57 views
Hi there,

the value of the shape attribute isn't a well formed xhtml value. The radeditor writes an uppercased value into the shape attribute.

<area shape="RECT" coords="10,10,202,121" href="http://www.google.com" target="_blank" alt="no comment">

If you change the attributes value to a xhtml valid lowercased value, the Image Map Editor doesn't find the area.

Steps for reproducing that

1. Open this Url http://demos.telerik.com/aspnet-classic/editor/examples/ImageMap/DefaultCS.aspx
2. Add the following imagemap code into the editor.

<img style="width: 300px; height: 192px;" usemap="#rade_img_map_RadEditor1_0" src="/aspnet-classic/Editor/Img/UserDir/Marketing/banner.gif" id="Img1" border="0">
<map name="rade_img_map_RadEditor1_0" id="rade_img_map_RadEditor1_0">
<area shape="RECT" coords="10,10,202,121" href="http://www.google.com" target="_blank" alt="no comment">
<area shape="CIRCLE" coords="113,160,21" href="http://www.msdn.com" target="_blank" alt="no comment"></map>

This image map code is editable with the Image Map Editor
3. Change to html view

replace the uppercase "RECT" and "CIRCLE" shapes to "rect" and "circle" the imagemap will be well formed but you can't find the circle shape within the Image Map Editor.

Thanks and best regards
Uwe
Marin Bratanov
Telerik team
 answered on 06 Apr 2011
1 answer
112 views
I have a page that internally opens up a rad window.  On that rad window, it opens up a smaller rad window (to enter some options).  So Main Window opens Rad Window1 which opens Rad Window2.  When Rad Window2 times out, or encounters an error, I try and make a call to a javascript function on Main Window.  I thought I could do this using GetRadWindow.BrowserWindow.BrowserWindow.JSCall(), however, that is throwing the same error that GetRadWindow.BrowserWindow.JSCall() is throwing (JSCall is undefined).  Is there a way to make this call back to the Main Window from the second Rad Window opened?

Thanks,

Josh
Marin Bratanov
Telerik team
 answered on 06 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?