Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
118 views
After uploading any file remove button gets cut the edges shown,Its looks weird in GUI.

Thanks,
Amit 
Plamen
Telerik team
 answered on 17 Jan 2012
1 answer
48 views
I'm asking for ideas.  I have a very large text file which I would like to present within a grid - or another viewer and have it "feel" like a text file.

So here is what I have:
We took a very large text file and reloaded into a table - line by line.  The table would look like this ..
line_number ---- line_value
1--------------------"the small"
2--------------------"red fox"
3--------------------"jumps over the fence"


Here is a challenge - Custom Paging:
This file contains million lines.  Far too many records to just pull out of the db and hand to a grid.  So I need custom paging or chunk/chapter processing.

So Ideas?
Are there any demos that might come close to a neat way to present this data?  We are working to implement grid custom paging but it would be nice to give it a feel of browsing through a file too.

Thanks for the thoughts.

Tim T.



Tsvetina
Telerik team
 answered on 17 Jan 2012
3 answers
141 views
Hi all,

I'm facing a strange behaviour. I have a RadComboBox, it is populated on server side, like this:

 

RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value  1 - 1", "1")); 
RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value  1 - 2", "1")); 
RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value  1 - 3 ", "1")); 
RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value  2", "2"));

As can be see, three items have the same value (1). The problem is, in the client side, I select a item, for exemple, "Value 1 - 3", so, when the combobox last the focus, the item will be automatic set to "Value 1 - 1".

Why this happen? Is there a way to stop this?

Thanks.

Kalina
Telerik team
 answered on 17 Jan 2012
1 answer
165 views
Hi all, I'm having an issue trying to get the right look for our grid.
The Grid autogenerates all the columns, but in the edit mode the grid expands the whole page and sometimes it creates an horizontal scroll at page level, what I want to do is that the grid respects the specified grid's width and if necessary enlarge the horizontal scroll at grid level. My aspx code is something like this:

<telerik:RadGrid id="{@id}" runat="server" AutoGenerateColumns="True" AllowMultiRowSelection="True"
    AllowMultiRowEdit="True" MasterTableView-EditMode="InPlace" Skin="Windows7"Width="50%">
    <HeaderContextMenu EnableAutoScroll="True"/>
    <MasterTableView DataSourceID="{@id}_" HorizontalAlign="NotSet">
      <Columns>
          <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
            <ItemStyle CssClass="MyImageButton" />
          </telerik:GridEditCommandColumn>
      </Columns>
      <EditFormSettings ColumnNumber="2"  InsertCaption="New">
        <FormTableItemStyle Wrap="False" />
        <FormCaptionStyle CssClass="EditFormHeader" />
        <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" />
        <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
        <FormTableAlternatingItemStyle Wrap="False" />
        <EditColumn ButtonType="ImageButton" InsertText="Insert record" UpdateText="Update record"
            UniqueName="EditCommandColumn1" CancelText="Cancel edit" />
        <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow" />
      </EditFormSettings>
    </MasterTableView>
    <ClientSettings  AllowColumnsReorder="True" ReorderColumnsOnClient="false">
        <Selecting AllowRowSelect="True" EnableDragToSelectRows="false"/>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
</telerik:RadGrid>

And i hooked the ColumnCreated event for preventing to wrap, like this:

protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e){
    if (e.Column is GridBoundColumn)
    {
        (e.Column as GridBoundColumn).DataFormatString = "<nobr>{0}</nobr>";
    }
}

I attached screenshots that represent the actual grid behaviour in edit mode...

Thanks in advance,
Diego.
Tsvetina
Telerik team
 answered on 17 Jan 2012
1 answer
224 views
Hi

I am trying to export the html content below to PDF format via the RadEditor:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><META http-equiv="Content-Type" content="text/html; charset=utf-16"><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"><title>INTELLIGENCE SERVICES CONTROL ACT NO. 40 OF 1994</title><link type="text/css" rel="stylesheet" href="/templates/BWCommon.css"><link type="text/css" rel="stylesheet" href="/mylnb/SiteCommon.css"><script type="text/javascript" src="/templates/vendor/jquery-1.6.1.min.js"></script><script type="text/javascript" src="/templates/links.js"></script><script type="text/javascript" src="/templates/popup.js?2"></script><script type="text/javascript" src="/templates/hoverbox.js?2"></script></head><body><p class="Generator-Heading" style="text-align:center">To browse use the Table of Contents on the left or the links provided below.</p><p><br></p><p class="Generator-Heading">Contents</p><p class="Generator-Item" style="margin-left:15pt"><a href="../../../jilc">Legislation - South Africa - National</a></p><p class="Generator-Item" style="margin-left:30pt"><a href="../../kilc">Acts and Regulations</a></p><p class="Generator-Item" style="margin-left:45pt"><a href="../alrg">I</a></p><p class="Generator-Item" style="margin-left:45pt;color:#00267F;margin-top:12pt"><b>  <img style="border:0" width="8" height="9" src="/templates/arrows.gif" alt="">  INTELLIGENCE SERVICES CONTROL ACT NO. 40 OF 1994</b></p><p><br><br></p><p><br><br></p></body></html>

But this fails with the following exception : 
Exception Details: System.Xml.XmlException: Invalid XHTML. RadEditor content should be correct XHTML in order to export to PDF.

What encoding does the XHTML validation use? And can it be set somewhere?

Thanks.


Rumen
Telerik team
 answered on 17 Jan 2012
1 answer
60 views
Hello, 

I am trying to make a staff scheduling program, I am wondering if it is possible to get the hours across the top on a day view

screenshot :
http://i.imgur.com/I0Wj7.png 


I would like something similar to : 

====================================================================================

8am 9am 10am 11am 12am 1pm

Mike --------------------------------

Joe -------------------------------------------


====================================================================================
Peter
Telerik team
 answered on 17 Jan 2012
2 answers
119 views
Hi, I have a snippet like this
function ShowSuccessNotificationMessage(title, message) {
            var notifObject = $find("<%=RadNotification.ClientID %>");
            notifObject.set_title(title);
            notifObject.set_text(message);
            notifObject.show();
It works with 3.5 NET framework, but, I updated to 4.0, and doesn't work anymore.
I have the Telerik2011Q2 version

Notification markup is setted with LoadContentOn="EveryShow" (but I didn't need that property in 3.5).
Any idea?
Martin
Top achievements
Rank 1
 answered on 17 Jan 2012
0 answers
49 views
hi 
how can i add a combox for each binded  items in my Listview??

and also i wanna bind this comboboxes to a datalist 

can you please help me?

thanx
Best Regards
Pouya
Top achievements
Rank 1
 asked on 17 Jan 2012
1 answer
185 views

I would like to know the best way to utilise a radwindow for the following scenario.

in my application im setting a link to allow a user to mark where their location is on google maps. the google map is being loaded in a radwindow, im currently passing the record id and postcode to the map page via a querystring. is this the best way or is there an alternative?

where im having a problem is i want to include a button whereby the user clicks after moving the marker and this function will close the window and pass the parameters for id, postcode, lat + lng coordinates to the calling page.

the samples ive found are client side but i need the parameter values server side as i want to update a database record with the coorinates related to the location set by the user.

i also need a way to deal with the user closing the window via the x in the corner rather than my button. maybe a prompt?

so the main issue is, once the user clicks the button to close the window how do i get the values in my code-behind module?

Marin Bratanov
Telerik team
 answered on 17 Jan 2012
1 answer
149 views
I have an intranet site where anonymous access has been turned off.  When I try to use a web service to populate the scheduler I get an error: "You are not authorized to view this page due to invalid authentication headers"
How do I set the authorization header? Thanks
Peter
Telerik team
 answered on 17 Jan 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?