Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
87 views
Hi,

We have upgraded telerik version 2012.2.912.40 recently. After upgrade, the textboxes width is not getting displayed correct as specified in aspx when page loads first time in IE. If we refresh the page, it is loading with specified size. The developer tool shows the text box width (Inline style) as "297px" which is no where mentioned in our application. Attached the screenshot for reference. This issue happening after upgrade. The same issue with RadDatePicker  DateInput text box also.

Please help us to resolve this issue.

The textbox in the screenshot as defined in aspx as below for reference

 

 

<telerik:RadTextBox ID="txtValidYear" Width="40px" runat="server"

 

 

 

TextMode="SingleLine" MaxLength="4">

 


Angel Petrov
Telerik team
 answered on 11 Jan 2013
1 answer
176 views
Hi,
i've created a radwindow with contenttemplate.In this radwindow there's a radasyncupload that i sue for upload image. After this process i want to see the image always in this radwindow. I've two questions:

1) Can i use into radwindow with contenttemplate after process upload the property navigateurl so i load another page where i see the image uploaded.

2) How can to see the image into radwindow after upload process?

Bye 
Marin Bratanov
Telerik team
 answered on 11 Jan 2013
3 answers
223 views
Hi,
I am setting background color of RadScheduler's time slot based on some data source attribute.

protected void Schedule_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
    {
              ................
               If(condition == 1)
                       e.TimeSlot.Control.BackColor = Color.White;
               else
                        e.TimeSlot.Control.BackColor = Color.Grey;
                ....
}

On doing so, it is breaking hover background color (especially height). now, when I hover over a timeslot, it partially highlights  it as seen in the image attached. How can I give a background color to time slot and also  highlight  100% width and hieght of timeslot  on hover?

Thanks,
Prava
Ivan Zhekov
Telerik team
 answered on 11 Jan 2013
4 answers
130 views
How do I set the date selected in txPayDate to txtPaydate1 on change?  For example I have this:

<telerik:RadDatePicker ID="txtPayDate" Runat="server" OnDateSelected="OnDateSelected">
                </telerik:RadDatePicker>
<telerik:RadDatePicker ID="txtPayDate1" Runat="server" >
                </telerik:RadDatePicker>

I tried this in javascript:

    function OnDateSelected(sender, e)  
{                                    
        var dateInput = $find('<%= txtPayDate1.ClientID %>');
        dateInput.set_value(args.get_newDate().format("MM/dd/yyyy"));
 
}  

I tried this in code behind:

 txtPayDate1.DateInput.SelectedDate = txtPayDate.DateInput.SelectedDate

a few hours on something that would take me 10 seconds in access.
Anzar
Top achievements
Rank 2
 answered on 11 Jan 2013
1 answer
73 views
Hi I have a pie chart that has been created programatically.
I am trying to add localization here.
This is part of my SharePoint visual web part.
I have included the resource files for different languages.
follwoing is my code
totalallowedspace = getLocalizedValue("TotalSpaceAllotted", LCID);
i am getting the local value for the string from the resource file

PieChart.ChartTitle.Text = totalallowedspace+" "+ alloweddspace.ToString() + " " + "GB";
i am adding the string to the title with some value that is calculated from other methods.

This works perfectly for english but when i browse in French there is no Chart Visible.
It does not displays the chart.

How do i enable localization for the pie chart.

Please guide me through both ways from code behind and from UI side.
I have seen there are few resources for UI side but not for code behind.
Please Help
Danail Vasilev
Telerik team
 answered on 11 Jan 2013
3 answers
59 views
Hi all,

Im a beginner in telerik controls. I have a filter inside radgrid . the filter is working fine .After filtering the grid displays the filtered records.But in the page refresh ,the grid shows the whole records. I need the filtered records only. how can i do this.? Thanks in advance .
Shinu
Top achievements
Rank 2
 answered on 11 Jan 2013
3 answers
144 views

Hello,

First, I wish you a happy new year ! :-)

Secondly, I am trying to include in the code of my RadGrid the filter template which is being shown here :  http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx

But it seems that to fill the DropDown boxes , you are accessing  the database each time by defining SqlDataSource objects (for example SqlDataSource1 in the code sample :

<asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
       ProviderName="System.Data.SqlClient" SelectCommand="SELECT CustomerID, ContactName, ContactTitle, City, Country, Bool FROM Customers"
       runat="server"></asp:SqlDataSource>


What I want is to have in each dropdown box only the values that really appear into the corresponding RadGrid column (data from RadGrid datasource) and not all the available values from the database. For example, if I only have 3 different records in the grid, I just want to have the three corresponding values in my drop down boxes.

So can an you tell me how to define my DataSource for all DropDonwn boxes to achieve that ?I have been looking at ObjectDataSource but it seems that by using SqlDataSource or ObjectDataSource, il will always have to send an SQL request to the database. That's exactly what I want to avoid, as I already used an SQL request to retrieve the data when populating the RadGrid ...

 Thank you for your help.

Eyup
Telerik team
 answered on 11 Jan 2013
2 answers
70 views
Dear,

      I  have used datagird to loading data , When I set up one cloumn with  checkboxSelectColumn and set up "headertext=select all"" ,But  run this page, this grid didn't display headertext,only  a checkbox in head.

     Please help me to tell me how to solve this problem. thanks a lot.



David

Wei Dong
Top achievements
Rank 1
 answered on 11 Jan 2013
1 answer
61 views
Hi, I was wondering how I could go about the code behind on this. I have my grid which display records and can filter by active, inactive, etc... then when I want to look at further details, the details table does not populate and now I am getting an error on:

If

 

 

e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then

 

 

 

 

Dim record As table 1 = e.Item.DataItem<----------

 


that says:

Unable to cast object of type 'xxx.Model.database.table2' to type 'xxx.Model.database.table1' .

what is going on here?
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Jan 2013
1 answer
91 views
I have radgrid  and placing complete Radgrid  in edit mode.

I have save button in command template.

I need to update the rows when  save button is clicked.

Is there a way to know the list of changed rows on server side so I can issue the update command only to that particualr row. I do not want to issue command for all the rows irrespective  whether it is changed or not.

Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Jan 2013
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?