Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
I have a grid that has one template column that i format each rows data to a specific style. On this grid there are links that you can click for each row that pops up a rad window to show the details of the item clicked. When i click the link the window opens an stays where I clicked on the row but the grid itself jumps back to the top so I have to scroll to find the open window.  Is that usual, I am using Q2 2010 controls . I have my maintain scroll position on postback but  set to true so when the grid does a post back like paging it maintain the position but when i call the rad window it jumps back to the top each time.  for a example of what is happening you can view the link below I have a test site setup.

 setupremoved     
click on a title and you will see that the window opens near the click but the grid jumps back to the top  if you need code i will post it thanks in advance

Sincerely Dwayne
Dwayne
Top achievements
Rank 1
 answered on 26 Sep 2010
1 answer
115 views
Hello,

I am new to Telerik controls and here is my first issue.

There is a WSI service that provides a JPG image as byte[] array. The image can be easily saved to the file as following:

FileStream fs = new FileStream(fullPath, FileMode.Create);
fs.Write(picture_aray, 0, picture.Length);
fs.Flush();
fs.Close();

Now, i am trying to use RadBinaryImage control and its DataValue property:

EmployeePhoto.DataValue = picture_array;

The result is rendered as an empty image.

<img style="height: 340px; width: 344px;" src="../Telerik.Web.UI.WebResource.axd?imgid=11b68653b19b407494f577727fdb969d&amp;type=rbi" id="ctl00_m_g_f2e35c4b_5688_4365_852b_d3bfe094880d_ctl00_EmployeePhoto">

As you see, dimensions of image are correctly set, so there is no problem with byte[] data. Instead there is something wrong with handlers.

I edited web.config file for sharepoint to include
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
in System.webServer - > Handlers.

But this did not help. Any ideas?

Ross
Top achievements
Rank 1
 answered on 25 Sep 2010
1 answer
87 views
Hello,

I am attempting to write code to sort the grid using an IEnumerable object as the data source.

Basically, I just get the column that the user is sorting by and perform an ORDER BY on my IEnumerable object and then rebind it to the grid.

The issue I am running into is that when I do it this way, the arrows in the column header that denote the sort direction (ascending, descending) do not appear.

Is there a way in which I can manually get the arrows to appear?

Thanks,
Dave
Iana Tsolova
Telerik team
 answered on 25 Sep 2010
1 answer
79 views
Hello,

I am using a Radgrid to display some data that I am returning via Linq.  The procedure running the Linq statement returns the data as an IList<ActivityAssociation> (where ActivityAssociation is the type).  This IList contains data from several different tables.

I want to allow the user to sort the data on the radgrid.  I have no problem displaying the data, but if I use the IList as the DataSource, I cannot sort the data without errors being thrown.

If I traverse the IList, the properties I get are things such as ActivityAssociation.ActivityId, ActivityAssociation.PERSON.PERSON_NAME, etc.  I can set the DataField to "ActivityId" as well as "PERSON.PERSON_NAME" and display the data fine, but if I set the Sort Expression to "PERSON.PERSON_NAME", it claims that it cannot find the column whenever I try to sort and rebind the table.  I even re-generate the IList prior to rebinding.

I was able to get around this by looping through the IList and creating a DataTable to use as the grid's datasource, but this is not the optimal solution as the amount of data returned could be large.

Does anybody have any suggestions?

Thanks,
Dave


Iana Tsolova
Telerik team
 answered on 25 Sep 2010
5 answers
375 views
I am trying to extend the the rad async uploader to do something similar to the demo but i am not having any luck with getting the custom configuartions  before inseting the image. The example i was trying to follow was this
http://demos.telerik.com/aspnet-ajax/upload/examples/async/imageuploader/defaultvb.aspx

Dwayne
Top achievements
Rank 1
 answered on 25 Sep 2010
0 answers
52 views
2 answers
205 views
Hi,

I have a repeater and I want to use 2 radnumerictextboxes in the template. Then I need to call a javascript function on one of them that will copy its value to the other control onblur

<telerik:RadNumericTextBox runat="server" ID="txtRisk" NumberFormat-DecimalDigits="2" Type="Number"  Width="65" CssClass="BetslipTextBox" ShowSpinButtons="true" ButtonsPosition="Right" IncrementSettings-InterceptArrowKeys="true" IncrementSettings-Step="1" MinValue="5" MaxValue="9999" ></telerik:RadNumericTextBox>

<telerik:RadNumericTextBox runat="server" ID="txtWin" NumberFormat-DecimalDigits="2" Type="Number"  Width="65" CssClass="BetslipTextBox" ShowSpinButtons="true" ButtonsPosition="Right" IncrementSettings-InterceptArrowKeys="true" IncrementSettings-Step="1" MinValue="5" MaxValue="9999" ></telerik:RadNumericTextBox>

I did this in code-behind:

RadNumericTextBox w = (RadNumericTextBox)e.Item.FindControl("txtWin");
RadNumericTextBox r = (RadNumericTextBox)e.Item.FindControl("txtRisk");
w.Attributes.Add("onblur", "return CalculateRisk(" + w.ClientID + "," + r.ClientID + ");");

in the javascript:

This shows me the value correctly:
 alert(document.getElementById(win.id).value);
which is:
ctl00_ContentPlaceHolder1_rptName_ctl01_txtWin

but I can't set it

when I view source it shows that it added a "_text" to the end of the id so it really is:

ctl00_ContentPlaceHolder1_rptName_ctl01_txtWin_text


This does set it (when I hard code it):
document.getElementById('ctl00_ContentPlaceHolder1_rptStraight_ctl01_txtWin_text').value = "50";

What is the right way to do this?  The above code does work for a regular asp:textBox but I want to use yours!

I also tried  <ClientEvents OnBlur="TestOnBlur /> and was able to get the sender but how do I access the other controls if I cant pass them?

Thanks

Jennifer
Top achievements
Rank 1
 answered on 24 Sep 2010
3 answers
126 views
Hi everyone,

I have a simple site that I am working on, and have a page which uses an asp.net MasterPage and a RadAjaxPanel to hold the main content of the page.  Within this are several regular asp.Panels. 

The idea is to have a single sign-up page, showing different asp.Panel instances to indicate the step in the process.  This works fine.

Near the end is the facility to upload an image or video, and I am using RadUpload (with the RadProgressManager).  Again, this works fine, BUT here is where my newbie-to-Telerik status lets me down.

I'm not totally clear on how I know when a file has finished uploading.  I expected there to be some kind of event to which I could place some code, but other than using something like:

if (Page.IsPostBack)
{
   // perhaps we've uploaded a file?
   if (RadUpload1.UploadedFiles.Count>0)
   {
        panSampleTestUploadSelect.Visible = false;
        panSampleTestUploadComplete.Visible = true;
   }
}

...I am not sure what else to do.  I think I must be misunderstanding something here.  The other bit of code I am using is an asp.Button to trigger the upload (button has been explicitly set to PostBack):

protected void CmdUpload_Click(object sender, EventArgs e)
{
    if (RadUpload1.UploadedFiles.Count > 0)
    {
        System.Threading.Thread.Sleep(3000);
    }
}

I'm not even clear why I this thread should sleep for 3 seconds - can anyone explain?  Incidentally, I copied this from an example in the online help.

OK, thanks for any help!
Cori
Top achievements
Rank 2
 answered on 24 Sep 2010
2 answers
157 views
I am using the Editor in RTL mode.  Everything seems to be working ok except for some of the manager dialogs.  For example, if I launch the Image Manager and select a file from the list, the Properties tab is hidden off to the left of the dialog.  When I move my cursor over to where the Properties tab should be it suddenly appears (you can see this behavior in your live demo here: http://demos.telerik.com/aspnet-ajax/editor/examples/righttoleft/defaultcs.aspx).  When I click on the Properties tab, many of the controls to set the property values are all shifted over and inaccessible.  The "link" to tie the Width and Height properties together to maintain the image proportions is not there at all.

I just installed the latest Q2 2010.2.826 version of the dll and am still having issues.

Can you please let me know if there is a fix for this?

Thank you.
Dan
Dan
Top achievements
Rank 1
 answered on 24 Sep 2010
2 answers
184 views
I have a website that was using the ASP.Net Ajax controls version 2009.3.1208.35.  I have installed the 2010.2.826.35 version and am trying to upgrade my website.  I run the Upgrade Wizard and everything runs successfully.  If I look in the Bin folder of my website I can see that the new version of the Telerik.Web.Ui.dll is there.  However, as soon as I rebuild my website it reverts back to the old version.  I can right-click on the dll file within Visual Studio and say Update Reference and the new version is copied in again.  But then it goes away if I rebuild.

Can you help figure out why the latest version keeps getting overwritten?

Thanks.
Dan

P.S. I have other websites also using the Telerik controls that upgraded fine.
Dan
Top achievements
Rank 1
 answered on 24 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?