Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
124 views

 

 

Hi,

I'm displaying a Combobox with multiple item selection by means of a checkbox. Does not allow custom text. The problem is that the default text displays always the first item. Is there any way to display the default text as blank or a custom text (by not setting the 'Allow Custom Text' property to true?)

Thanks.

<
telerik:RadComboBox ID="RCBRegion" runat="server" Width="100px"

 

 

 

Text="Select Region" DataTextField="Region" DataValueField="Region"

 

 

 

Skin="Web20">

 

 

 

<HeaderTemplate>

 

 

 

<table style="width: 115px">

 

 

 

<tr>

 

 

 

<td style="width: 115px;">

 

 

 

<asp:LinkButton ID="hlSelectAllRegions" runat="server" Text="Selection" onclick="hlSelectAllRegions_Click" ></asp:LinkButton>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox runat="server" ID="CheckBox1" Text=' <%# DataBinder.Eval(Container.DataItem, "Region")%>' />

 

 

 

</ItemTemplate>

 

 

 

 

</telerik:RadComboBox>

 

Kate
Telerik team
 answered on 06 Apr 2011
4 answers
313 views
is it possible to combine combobox with paging
if
yes, can you give some examples of how to do it.

thanks in advance
Kate
Telerik team
 answered on 06 Apr 2011
3 answers
118 views
Hello,

I have questions from customers who want to use Ipad for showing and editing webpages in Safaribrowser. Iphone is also actual.

Do Telerik have products for help here?

We have found some css-librarys for formatting controls on aspx-pages for Iphone. Any other good angles for attack this kind of problems or some good samles/demos to start with?


MK

Niko
Telerik team
 answered on 06 Apr 2011
2 answers
164 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
332 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
83 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
55 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
363 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
55 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
69 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?