Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hello

I am using a RadGrid, and have it sorted by a particular column by default, though manual sorting is disabled.  Is it possible to remove the shading/colour on the sorted column, so that it just looks like every other column?

I've tried using the following, but it does not seem to work:

this.grid.SortingSettings.SortedBackColor = Color.Empty;

Cheers

Mark
Shinu
Top achievements
Rank 2
 answered on 09 Feb 2012
0 answers
288 views
Hello Everyone,

I would like to do something similar to the Grid / Binary Images and Upload in Grid tutorial displayed on this telerik site, but not with binary images i would like to save the actual path to database. So basically i would like to save images to folder and image path in database and display images from folder in radgrid view based on the image path. I found a method not using telerik here but i would prefer to use telerik.

Thanks,
James
James
Top achievements
Rank 1
 asked on 09 Feb 2012
0 answers
35 views
I have been using RadTabStrip on a master page and using Microsoft Test Center 2010.  Everything was working fine (before error.png) until today when all of a sudden when I click Run Test the tab string changes from vertical to horizontal (menu error.png). any ideas of what the cause?
Phillip
Top achievements
Rank 1
 asked on 09 Feb 2012
1 answer
127 views

Hello,

I am trying to get the unit tests that are created using Telerik Testing Framework to run automatically on our build machine.  When the tests run I get the following error message.

- <message>
<![CDATA[
System.NullReferenceException : Object reference not set to an instance of an object.
  ]]>
  </message>
- <stack-trace>
<![CDATA[
at ArtOfTest.WebAii.Core.Manager.SetupDialogMonitoring()
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
at CFCAWeb.SC.Testing.SponsorsOnlineWeb_AccountHome.MySponsorships_TestBreadCrumb() in C:\Inetpub\wwwroot\CFCABeta\CFCAWeb.SC.Testing\Views\SponsorsOnlineWeb_AccountHome.cs:line 98
  ]]>
  </stack-trace>

I used NUnit framework, and used windows scheduler to schedule the run.  I have setup the 'Run as' userId as mine. Tests start and run fine If I stay logged on to the machine.  However, when I am not logged on to the machine, all  the tests fail giving the error message mentioned above.  I am using ArtOfTest.WebAii.dll version 2011.2.1305.0.

Any idea how I can get around this issue?  
Thanks
Bindu
Cody
Telerik team
 answered on 09 Feb 2012
0 answers
133 views
Hi

I have grid as ID, Type and FileName. EditTemplate of filename has two controls, fileupload control and textbox. Also I have two commanditems, as "add link", "add file". 
<CommandItemTemplate>
                <div style="padding: 5px 5px;">
                <asp:LinkButton ID="lnkbtnAddNewLink" runat="server" CommandName="InitInsertLink" Visible="true">
                    <img style="border:0px;vertical-align:middle;width:15px;" alt="" src="../Images/add_record.png" /> Add Link
                </asp:LinkButton>
                <asp:LinkButton ID="lnkbtnImportFile" runat="server" CommandName="InitInsertFile" Visible="true" >
                    <img style="border:0px;vertical-align:middle;width:15px;" alt="" src="../Images/add_record.png" /> Import File
                </asp:LinkButton>
</div>
</CommandItemTemplate>
 <telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID"
                        UniqueName="AttachmentID">
                    </telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Type" UniqueName="Type"
                        SortExpression="AttachmentType" HeaderStyle-Width="50px">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblType" Text='<%# Eval("Type") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:Label runat="server" ID="lblType" Text='<%# Eval("Type") %>'></asp:Label>
 </EditItemTemplate>
<telerik:GridTemplateColumn HeaderText="Upload" UniqueName="Upload">
                        <ItemTemplate>
                             <asp:Label ID="lblFileName" runat="server" Text='<%# Eval("FileName") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtFileName" runat="server" Text='<%# Eval("FileName") %>'></asp:TextBox>
                            <asp:FileUpload ID="fpSelectFile" runat="server" MaxFileSize="10240" MaxFileInputsCount="1" InitialFileInputsCount="1"  ToolTip="Select a file less than or equal to size of 10KB."  />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>


OnNeedDatasource, I attach the DataTable to the Grid. OnItemCommand, I create new Datarow and insert into the table, and call databind, the new row gets added to the grid, but it is noneditable. 


how can I achieve, when user click on Add link, button, I want to set Type=1 and make textbox visible. when user click add file, I have to set Type=0 and make upload control visible. 

Thanks
Sonie
Top achievements
Rank 1
 asked on 08 Feb 2012
2 answers
244 views
If you use the standard asp:datagrid and have a hyperlink column, the color will change once the link has been clicked. Same way as a standard web page with a hyperlink. The telerik:radGrid doesn't do this. What I have noticed is the link will slightly "Bold" the font once it has been clicked. How do you make a telerik:GridHyperLinkColumn behave like a "standard" web page hyperlink and change colors once the link has been clicked and maintain that history of being viewed?
dhuss
Top achievements
Rank 1
 answered on 08 Feb 2012
3 answers
143 views
Hi:

I was testing a RadNumericTextBox.  It is somewhat declared as follows:
<telerik:RadNumericTextBox ID="quantityTextBox" Runat="server" MaxLength="4"
    MaxValue="9999" MinValue="1" Text='<%# Bind("Quantity") %>' Width="60px"
    OnTextChanged="quantityTextBox_TextChanged" AutoPostBack="True"
    />
I was testing for XSS (cross site scripting) and was able to paste <scr into the textbox.  I was not able to type the value, but surprisingly, I was able to paste non-numeric data.

Phil
Elliott
Top achievements
Rank 2
 answered on 08 Feb 2012
0 answers
56 views
I need to export multiple tabs to different worksheets into a single excel, how can I do that.

Thanks,
Penchala Pavan.
Penchala
Top achievements
Rank 1
 asked on 08 Feb 2012
0 answers
199 views
I have 2 issues, both in month view of the Scheduler.

We have calendars with many, many events.  On too many days all of the calendar items were not showing.  So I added
<MonthView VisibleAppointmentsPerDay="99" AdaptiveRowHeight="true" />
This solved MOST of the issues. 

First, the last item in a day overlaps the week seperator row (with the day numbers) by about 50%.  See the attached image for an example.

Second, "Show More" is not displaying.  We really can't use AdaptiveRowHeight.  Some days have 20 events and the calendars are just too large.  So we really need to use VIsibleAppointmentsPerDay and MinimumRowHeight with Show More.

I though Show More wasn't appearing because of a CSS issue someplace.  But in looking at the rendered HTML, Show More isn't even being rendered.  I also can't find anything in the code that uses the LocalizationStrings class to set Show More to something else such as a blank string.

I've also attached our CSS (as a .jpg file) file for the rsElements

Does anyone have an idea how I can correct these issues?




Dan
Top achievements
Rank 1
 asked on 08 Feb 2012
2 answers
138 views
I like Kendo Web UI demo at: http://demos.kendoui.com/web/overview/index.html
Is there some way how to tweak ASP.NET AJAX RadPanelBar to behave in the similar way (inject content do page without postback, stay expanded on actual page, change address in URL?)
I’m starting a new web database application (mainly administrative interface) and I’m looking for best responsive and quick UI architecture. I’ve deep Telerik ASP.NET AJAX controls knowledge, so I prefer to stay within borders of ASP.NET AJAX. But if it will be unavoidable, I can switch to other technology as needed, of course.
Thank you very much for your advice.
Zdenek
Zdeněk
Top achievements
Rank 1
 answered on 08 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
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?