Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
47 views
Hi,
I have a RadGrid with page index=10.
When user click next page, i need to know what is the next 10 records show to user because i need to update to system as READ so that system can keep track what record has been actually read by user and what is not.

Does anyone has any idea?
johnson lim
Top achievements
Rank 1
 asked on 16 Aug 2012
1 answer
451 views
Can anyone tell me how to get the following to work?  Its not showing my image...  If you supply code please use VB.. sorry C# isn't my strong point.

Thanks!

<telerik:GridTemplateColumn DataField="CountryName"
                            FilterControlAltText="Filter CountryName column" HeaderText="CountryName"
                            SortExpression="CountryName" UniqueName="CountryName" >
    <ItemTemplate>
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("CountryAbbreviation") %>'></asp:Label>
        <asp:Image ID="Image1" runat="server" ImageUrl='images/<%# Eval("CountryAbbreviation") %>.png' />
    </ItemTemplate>
</telerik:GridTemplateColumn>
Princy
Top achievements
Rank 2
 answered on 16 Aug 2012
3 answers
143 views
I have a RadGrid with GridDropDownColumn. Then I set the DataField attribute for the dropdownlist. When loading the GridView, the column display null. I don't know why it will be null.

 <telerik:GridDropDownColumn DataField="PV_TYPE" ListTextField="PV_TYPE" UniqueName="PvType" HeaderText="PV Type">
                            </telerik:GridDropDownColumn>
Shinu
Top achievements
Rank 2
 answered on 16 Aug 2012
3 answers
150 views
Dears,
I am using Telerik controls (product version 2010.1.519.35)
i have a RadDateTimePicker, when i press the open calendar popup button, the calendar is transparent and very hard to see numbers.
I tried to override the default style embedded in your DLL by using my style :
.PickerCss,
.PickerCss .rcTable
{     
   background-color:inherit !important;
}

but your style (in DLL) is !important too and it is taking precedence over my style.
of course i cannot delete your style , so what i can do ?
Regards.
Rabih
Top achievements
Rank 1
 answered on 16 Aug 2012
8 answers
344 views
Hi,

I have added a progress bar to one of my pages to monitor when a custom process is complete.  I used the code from the demo Upload/Monitoring For Custom Progess.

The progress bar opens and works great, but it doesn't close when the process is complete.  After reading the other threads concerning the Progress Bar not closing, I thought the problem might be that something in the procedure I am calling was preventing the Progress Bar from closing, so I commented out that line and ran it again and the Progress Bar still doesn't close.

Did I miss something in the example or is there a way to manually close or stop the progress bar?

Thanks

Here is the aspx code

<

 

telerik:RadProgressArea

 

 

ID="RadProgressArea1"

 

 

runat="server"

 

 

HeaderText = "Creating PDF Files For Invoices"

 

 

DisplayCancelButton="True"

 

 

ProgressIndicators="FilesCountBar,

 

FilesCount,

FilesCountPercent,

SelectedFilesCount,

CurrentFileName,

TimeElapsed,

TimeEstimated"

 

Skin="Hay">

 

 

 

<Localization Uploaded="Uploaded" />

 

 

</telerik:RadProgressArea>

 

 

<telerik:RadProgressManager ID="RadProgressManager1"

 

 

Runat="server"

 

 

SuppressMissingHttpModuleError="True"

 

 

RefreshPeriod="100" />

 

Here is the code on the button click

 

Private

 

Sub ibtPDFExport_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ibtPDFExport.Click

 

 

Dim aryInvoiceNumber() As String

 

 

 

 

 

Dim i As Integer = 0

 

 

Dim SqlStr As String = Nothing

 

 

 

 

 

Dim sdrIntranetObjects As SqlDataReader

 

 

Dim strDirectorySuffix As String = Nothing

 

 

 

 

 

Dim strFileName As String = Nothing

 

 

 

 

 

If Me.txtRecordsSelectedCount.Text = "0" Then

 

 

 

 

MsgBox(

"You must select at least 1 invoice to export.", vbOKOnly)

 

 

Else

 

 

 

 

 

Dim Progress As RadProgressContext = RadProgressContext.Current

 

Progress.Speed =

"N/A"

 

 

 

 

 

ReDim aryInvoiceNumber(Convert.ToInt16(Me.txtRecordsSelectedCount.Text) - 1)

 

 

For i = 0 To Convert.ToInt16(Me.txtRecordsSelectedCount.Text) - 1

 

aryInvoiceNumber(i) = Split(

Me.txtRecordsSelected.Text, ";")(i).ToString

 

SqlStr =

"SELECT InvoiceNumber, PeriodEnding, Contract, Customer From [dbo].BLL_BillingInvoiceHeader WHERE InvoiceNumber = '" & aryInvoiceNumber(i).ToString & "'"

 

 

 

 

sdrIntranetObjects = UDF_GetDataReader(SqlStr)

 

While sdrIntranetObjects.Read()

 

strDirectorySuffix = sdrIntranetObjects(

"Customer") & "\" & sdrIntranetObjects("Contract") & "\"

 

 

 

 

strFileName =

String.Format("{0:yyyy-MM}", sdrIntranetObjects("PeriodEnding")).ToString & "~" & sdrIntranetObjects("InvoiceNumber")

 

 

End While

 

 

 

 

sdrIntranetObjects.Close()

Progress.SecondaryValue = i + 1.ToString()

Progress.SecondaryPercent = ((i + 1) / Convert.ToInt16(

Me.txtRecordsSelectedCount.Text)).ToString()

 

Progress.CurrentOperationText = strDirectorySuffix +

"\" & strFileName

 

Progress.SecondaryTotal = Convert.ToInt16(

Me.txtRecordsSelectedCount.Text)

 

 

If Not Response.IsClientConnected Then

 

 

 

 

 

'Cancel button was clicked or the browser was closed, so stop processing

 

 

 

 

 

Exit For

 

 

 

 

 

End If

 

 

 

 

USB_CreatePDFReport(70001,

"no", strDirectorySuffix, strFileName, aryInvoiceNumber(0).ToString)

 

 

Next

 

 

 

 

 

End If

 

 

 

 

 

End Sub

 

Peter Filipov
Telerik team
 answered on 16 Aug 2012
3 answers
116 views
I have        
void rgtClients_ItemDataBound(object sender, GridItemEventArgs e)
{
switch (e.Item.ItemType)
{
                case Telerik.Web.UI.GridItemType.Header
....
}
but what is happening the case Telerik.Web.UI.GridItemType.Header is executed twice for the same e.Item.ItemIndex) 
So I have to keep track which row I am at, with if (intCurrentGridIndex != e.Item.ItemIndex)
What will cause such behavior? Should't it be iterating through rows, including header?
Marin
Telerik team
 answered on 16 Aug 2012
1 answer
110 views
Hi,

I am using RadNumeric Textbox inside Radcombobox and loading the products on Radcombobox using LoadonDemand. However, when I try to open the radcombobox I get the following error but this error doesn't occur if I bind my radcombobox without using loadondemand.

Is this a problem because I am using load on demand ?

Script control 'rntbInterval' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

Parameter name: scriptControl




<telerik:RadComboBox ID="rcbProducts" runat="server" Width="300px" Height="300px" Font-Names="Arial" Font-Size="XX-Small"  
                                            Skin="Windows7" EmptyMessage="- please select a product -" HighlightTemplatedItems="true"
                                            EnableLoadOnDemand="True" EnableVirtualScrolling="True" ShowMoreResultsBox="True"
                                            Filter="Contains">
                                            <ItemTemplate>
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lblProductName" runat="server"></asp:Label>
                                                        </td>
<td>
<telerik:RadNumericTextBox ID="rntbInterval" Font-Names="Arial" Font-Size="XX-Small"
                                                        ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true" IncrementSettings-InterceptMouseWheel="true"
                                                        runat="server" Type="Number" Width="50px" NumberFormat-DecimalDigits="0" IncrementSettings-Step="1"></telerik:RadNumericTextBox>
                                                    <asp:Button ID="btnSave" Text="Save" OnClick="btnSave_Click" runat="server" /></td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </telerik:RadComboBox>


Protected Sub rcbProduct_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles rcbProducts.ItemsRequested
 
        Dim sFilter As String = e.Text
        Dim data As DataTable = GetProducts(sFilter)
        Dim itemOffset As Integer = e.NumberOfItems
        Dim endOffset As Integer = Math.Min(itemOffset + ITEMS_PER_REQUEST, data.Rows.Count)
        e.EndOfItems = endOffset = data.Rows.Count
        'rcbProducts.DataTextField = "JobName"
        'rcbProducts.DataValueField = "LogisticProductKey"
        For i As Int32 = itemOffset To endOffset - 1
            Dim rcb As New RadComboBoxItem
            rcb.Text = data.Rows(i)("ProductCodeAndDesc").ToString()
            rcb.Value = data.Rows(i)("LogisticProductKey").ToString()
            rcbProducts.Items.Add(rcb)
            Dim lblProductName As Label = rcb.FindControl("lblProductName")
            lblProductName.Text = data.Rows(i)("ProductCodeAndDesc").ToString()
        Next
        e.Message = GetStatusMessage(endOffset, data.Rows.Count)
    End Sub
Princy
Top achievements
Rank 2
 answered on 16 Aug 2012
1 answer
291 views
How would I go about trimming white space in a textbox inside a radgrid when it's in Edit Mode.  I want to trim any white space AFTER the string. 
Shinu
Top achievements
Rank 2
 answered on 16 Aug 2012
0 answers
101 views
how to use Telerik PDFViewer in ASP.NET 2.0,please can you send me sample code.

i am using Telerik dlls version 2012.2.602.40,
Subhashchandra
Top achievements
Rank 1
 asked on 16 Aug 2012
1 answer
196 views
I am using RadCaptcha in our website and I want to change the label (type the code from the image) in to (type the letters from the image).I tried with CSS, but i can not able to override the label.Could you please suggest me how to override the label.
Princy
Top achievements
Rank 2
 answered on 16 Aug 2012
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?