Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
184 views
I have a rad date picker in the item template of the grid
<telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Date" UniqueName="Date" Visible="true"
 <ItemTemplate> 
  <telerik:RadDatePicker Skin="Web20"  ID="RadDate"  runat="server" Width="95px"
   <Calendar ID="Calendar" runat="server" > 
   </Calendar> 
   <DateInput ID="DateInput_GateWayDate" runat="server"  Width = "60px"  
                                            DateFormat="M/d/yyyy" > 
</DateInput> 
  <DatePopupButton HoverImageUrl="" ImageUrl="" /> 
</telerik:RadDatePicker> 

Its working fine in Firefox 3
But in IE 8, the first row of the grid shows correctly.
But in the second row the date inputs width is increased.
How to correct this?
kollam2003
Top achievements
Rank 1
 asked on 28 Apr 2009
7 answers
278 views

Hi 

I am working on Export Excel; But I am looking for few answers...

1. How to align Caption to Right side.... I need Caption only for Excel so I am creating it while calling Excel only.... I tried using CssClass but it is not working..... I am not using "CommandItemTemplate"......

 

 

2. I am getting extra column on right side on excel for all views, except default mastertable view... Could you please suggest wht is that I am doing wrong? And how to remove to extra column?

3. Also Table is not getting border completly.... Top side of Header and bottom side of table is not showing border... could you suggest the way to achieve it..

Please see below look of Excel ........Caption is set in 3 rows, but it is showing me in center, I want it on right side....
Also please extra column on right hand side...and border issues....

Thanks,
Pradip

Client Name
Detail
Detail 2
Column 1 Column 2 Column 3 Column 4 Column 5 Column 6 Column 7 Column 8 Column 9 Column 10 Column 11 Column 12 Column 13  
Client 1     '08/'09 81,691,829 81,691,829 81,691,829 $6,044,001 $6,044,001 $6,044,001 $0.074 $0.074 $0.074  
  Sub 1   '08/'09 7,038,183 7,038,183 7,038,183 $692,072 $692,072 $692,072 $0.098 $0.098 $0.098  
Sub 4   '08/'09 16,773,133 16,773,133 16,773,133 $1,660,219 $1,660,219 $1,660,219 $0.099 $0.099 $0.099  
Sub 5   '08/'09 6,692,000 6,692,000 6,692,000 $886,796 $886,796 $886,796 $0.133 $0.133 $0.133  
Client 2     '08/'09 152,417,843 152,417,843 152,417,843 $8,635,388 $8,635,388 $8,635,388 $0.057 $0.057 $0.057  
Client3     '08/'09 35,796,307 35,796,307 35,796,307 $276,533 $276,533 $276,533 $0.008 $0.008 $0.008  
Client 4     '08/'09 3,387,345 3,387,345 3,387,345 $54,711 $54,711 $54,711 $0.016 $0.016 $0.016  

Pavel
Telerik team
 answered on 28 Apr 2009
1 answer
225 views
I have a RadGrid with Auto Insert/Update/Delete on using EditForm mode.  I want to add a compare validator between a field called lowvalue and highvalue.  What is the best way to do this.
lowvalue and highvalue I am using GridNumericColumn. 

I am at a crunch in the project so I will take the easiet approach client/server side doesn't matter, I just need to make sure the low value is less than or equal to the high value if the high value is not null or empty
and the high value is greater than or equal to the low value if the low value is not null or empty.  If the validation fails I need to display an error message in the EditMode of the form and prevent the insert/update.

Note: If you suggest using an ItemTemplate or EditTemplate please also provide a complete reference and/or demo.  I have been trying to research the EditTemplate but I have not found any good tutorials.  I am a total novice at the ItemTemplate/EditTemplate approach.
Pavlina
Telerik team
 answered on 28 Apr 2009
1 answer
209 views
Hi I am using version 2009.01.0402.35 of the RadTreeView.
I am attempting to put simple HTML (mainly BRs and &nbsp;s) into the text of RadTreeNodes via clientside Javascript.
I realise that set_text() will strip the tags and found in the forums to set the innerHTML propertry of .get_textElement() instead.
I also understand that will not be persisted after a postback.
My issue is however, when I rearrange the nodes, ie move this node up or down a level in the tree, again using entirely client javascript, the node's text is set back to it's original nonHTML value.

I am considering putting the value I want inside a custom attribute and then after the reshuffle operation restting the innerHTML from the attribute but consider this to be clunky as well as wasting memory, viewstate and CPU cycles.

Alternatively is there a way of insterting a new lines (or line breaks) into the text value of the node without using HTML?

Thanks
CodeR
Top achievements
Rank 2
 answered on 28 Apr 2009
4 answers
183 views
how can I call the same popup window from a different link button other than the GridEditCommandColumn?

I have to create a copy functionality in the radGrid. So If have  one more linkbutton with 'copy' text and call the same window as an edit and pass an extra parameter (commandname = 'copy') then I can insercept this and send it to the database as a copy item.

Can someone please provide me an example ?
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2009
1 answer
288 views
Hi,

I was wondering if anyone could give me some suggestion on what would be the best way to go if i wanted to disable weekends form my date picker calendar?

I added a CustomValidator to my form and that was a pretty straight forward, i also wanted to disable from the visual calendar, but not remove it.

Thanks,

Fabio
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2009
3 answers
84 views
PagerStyle-Mode="NextPrevNumericAndAdvanced"
The Page Size textbox only is wide enough for 1 number. If there are 10 or more pages the textbox is not big enough.
How can I make the textboxes for this style larger?
J.
Princy
Top achievements
Rank 2
 answered on 28 Apr 2009
4 answers
234 views
I'm looking to add a RadComboBox to a custom server control (a custom WebPart CatalogPart control).  Basically, my webpart catalog pulls a directory from a database, and I want to use the properties to populate the RadComboBox for the user to select the desired WebPart.

What do I need to do in order to declare a new instance of a RadComboBox programmatically, and to add items to it manually?
Kevin Kembel
Top achievements
Rank 1
 answered on 28 Apr 2009
16 answers
831 views

I have found that for the telerik provided skins that produce a border around the cell, for example Inox which just has a horizontal border, I must change blank values to &nbsp; to see that border when the value is blank.

Is there a better way to handle this situation where I must change the value in itemdatabound to get the border to show?

ex:

if

(dataView["CodeDesc"].ToString().Trim().Length == 0)

{

dataitem[

"CodeDesc"].Text = "&nbsp";

}

Justin
Top achievements
Rank 1
 answered on 28 Apr 2009
1 answer
69 views
I'm trying to adapt the drag and drop grid sample (with pending orders and shipped orders) to my particular situation and am having some difficulty.

I can't the correct syntax for how to reference each grid's clientid since it is in a user control.  I'm trying as follows:
uc2_RadGrid1.ClientID

But that is not correct.  What is the correct syntax in the javascript below for correctly grabbing a reference to a grid's clientID when it is inside a user control?

Thx!

In my situation, I have each grid in a different user control along with some other items on the screen.  My two user controls each have a RadGri1 grid in them, and they are defined in the page as:

<%@ Register src="ContactGrid.ascx" tagname="ContactGrid" tagprefix="uc2" %> 
<%@ Register src="ContactSelected.ascx" tagname="ContactSelected" tagprefix="uc4" %> 
 

and the script block taken from the sample is:

    <telerik:RadScriptBlock runat="server" ID="scriptBlock">  
 
        <script type="text/javascript">  
            <!--  
                function onRowDropping(sender, args)  
                {   
                    if (sender.get_id() == "<%=uc2_RadGrid1.ClientID %>")  
                    {  
                        var node = args.get_destinationHtmlElement();   
                        if(!isChildOf('<%=uc4_RadGrid1.ClientID %>', node) && !isChildOf('<%=uc2_RadGrid1.ClientID %>', node) )  
                        {   
                            args.set_cancel(true);   
                        }  
                    }  
                    else 
                    {   
                        var node = args.get_destinationHtmlElement();   
                        if(!isChildOf('trashCan', node))  
                        {   
                            args.set_cancel(true);   
                        }  
                        else 
                        {  
                            if (confirm("Are you sure you want to delete this selection?"))  
                                args.set_destinationHtmlElement($get('trashCan'));  
                            else 
                               args.set_cancel(true);   
                        }  
                    }  
                }  
                  
                function isChildOf(parentId, element)  
                {  
                    while(element)  
                    {   
                        if (element.id && element.id.indexOf(parentId) > -1)  
                        {   
                            return true;  
                        }  
                        element = element.parentNode;  
                    }  
                    return false;  
                }  
                -->  
        </script>  
 
    </telerik:RadScriptBlock>  
 
Kevin
Top achievements
Rank 2
 answered on 27 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?