Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
219 views

Hi!
I've read and read all day and I believe noone has written about how to update a for instance a label inside CommandItemTemplate client side when selecting some rows in the grid.
In my case I have

<
telerik:RadGrid ID="RadGrid1" runat="server"  AllowMultiRowSelection="true" >
<ClientSettings>
<Selecting AllowRowSelect="true" />
</ClientSettings>
<MasterTableView CommandItemDisplay="Top" DataKeyNames="Id" Width="100%">
<CommandItemTemplate>
<asp:Label ID="Totall" runat="server" ></asp:Label>
</CommandItemTemplate>
<Columns>

<
telerik:GridBoundColumn DataField="Id" HeaderText="Id" ReadOnly="True" UniqueName="Id" Visible="false">
</telerik:GridBoundColumn>

<
telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" SortExpression="Amount" UniqueName="Amount" DataFormatString="{0:N2}">
<HeaderStyle Width="50px" />
</telerik:GridBoundColumn>

<telerik:GridClientSelectColumn HeaderStyle-Width="20px" ItemStyle-Width="10px" UniqueName="Select1" />

</Columns>
</MasterTableView>
</telerik:RadGrid>

How do I get the selected amounts from each row and show the total selected amount in label "Total" in the CommandItemTemplate?  (and keep selected rows selected)
Thanks a million in advance and best regards.
Soren.

Soren
Top achievements
Rank 1
 answered on 03 Apr 2008
2 answers
99 views
Hello!

I use following JavaScript code to force a postback with "TextChange" event on some radComboboxes and radTextboxes, but always one event fires. Any Ideas?


           objControl = $find("rcboMatJobNo")  
           objControl.set_text("Job")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "")  
 
           objControl = $find("rtxtMatAmount")  
           objControl.set_value("Amount")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "")  
 
           objControl = $find("rtxtMatPrice")  
           objControl.set_value("Price")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "")  
 
           objControl = $find("rcboMatMaterialNo")  
           objControl.set_text("Mat")  
           __doPostBack(objControl.get_id(), '{\"Command\":\"TextChanged\"}', "")  
 
Markus
Top achievements
Rank 1
 answered on 03 Apr 2008
1 answer
91 views
Hello,
I'm doing as much as I can serverside.  I have a node on a treeview.. and in the text I add a count of children nodes the parent has to the text of the node.

Upon editing the text, the count is still there...  and I'd have to delete it everytime i wanted to make a change to the text.

What's the best way to programmatically remove the count I append to the text in order to properly edit the node?   Can it be done serverside?
Nikolay
Telerik team
 answered on 03 Apr 2008
8 answers
222 views
Hi

We have 1 problem we need to solve.  It's a very specific one.  The scheduler works perfect if the  start time is a round hour, for ex 7 or 8.  But when it is 7.30 AND the duration of an appointment is 20 minutes, the height of the appointment is twice as big as should be.

I have an example : [img]http://img.skitch.com/20080303-pfm1cxqp3iax2arts36hg2ijeu.jpg[/img]

You can see that on wednesday it works perfect, appointments between 10 and 12.  But on monday, it's between 7.30 and 12 and the height is incorrect.

If we check the html the scheduler created, we see that you guys print a 200% on the div?

<td class="rsCell"><div class="rsWrap" style="z-index: 36;"> 
    <div title="07:30" id="ctl00_placeActionZone_Ant_calendar1_radCalendar_35_0" class="rsApt" style="height: 200%; width: 45%; padding-bottom: 2px; left: 0%;"> 
    <div class="rsAptWrap" style="padding-bottom: 1px;"> 
        <div class="rsAptInner"> 
            <div class="rsAptContent"> 
 <div class="appointement free" style="background-color: rgb(255, 255, 0); color: rgb(17, 17, 17);"> 
            <img src="images/general/trans.gif" class="appointement_icon">07:30 </div> 
     
                                            </div> 
</div><a class="rsAptDelete" href="ant_modules/#">delete</a><div class="rsAptResize" style="z-index: 80;"> 
                                            <!-- --> 
                                        </div><div class="rsAptBottom"> 
                </div> 
 
            </div> 
            </div> 
    </div></td> 


Any ideas how we can solve this problem?

Andres
Top achievements
Rank 1
 answered on 03 Apr 2008
1 answer
100 views
Hi,

I am tring to changethe existing skin for Grid.I am making the change on Vista skin.Right now I change to background color of grid by giving like this in the CSS file.
.RadGrid_Vista
{
    border:1px solid #a7bac5;
   /* background:#fcfcfc;*/
    color:#333;
}

My problem is I want to change the header and footer also like this.How can I do that? Which property I have to change?

Regards,
Jincy
jincy
Top achievements
Rank 1
 answered on 03 Apr 2008
1 answer
159 views
Hi  I have an issue with exporting RadGrid Prometheus to excel.

1. I am using radgrid with Footer. Footer contains totals of the columns. When I try to export the data to excel, my footer comes on the TOP of data, just below the header.  Is there any way that I can make the footer appear at the end of the rows?

Thanks!

Emeleen
Steve
Telerik team
 answered on 03 Apr 2008
1 answer
215 views
On the click event of a checkbox, we want to disable a RadDatePicker. As per the help (ms-help://MS.VSCC.v80/MS.VSIPCC.v80/telerik.radcontrols.prometheus.2007.Q3/telerik.radcontrols.prometheus.2007.Q3/cldClientSideAPI.html) we act on the dateInput and the popupButton.

But when the RadDatePicker is disabled, when there is a postback, an exception is thrown during the client side "dispose" of the component.

This is the part of the code used to enable/disable the RadDatePicker
....
        var datePickerInput= control.get_dateInput();
        if ( enableFlag && !datePickerInput.get_enabled())
        {
            datePickerInput.enable();
            $addHandler( control.get_popupButton(), "click", control._onPopupButtonClickDelegate);
        }
        else if ( !enableFlag && datePickerInput.get_enabled())
        {
            datePickerInput.disable();
            $removeHandler( control.get_popupButton(), "click", control._onPopupButtonClickDelegate);
        }
....
Is there another way to completly disable the RadDatePicker? Or is there a way to prevent the exception to be thrown when no handler is installed on the popupButton?

Thanks,

Hugues Ferland
Konstantin Petkov
Telerik team
 answered on 03 Apr 2008
7 answers
298 views
Hi,

    What should I need to do to apply this feature even to newly created sites? I was able to deploy this feature in my site and I am able to use it now in my blog site. But I need a way to automatically apply this feature to newly created sites. What do you suggest I should do?

Thanks!
Arthur
Lini
Telerik team
 answered on 03 Apr 2008
1 answer
150 views
To improve performance on our web site, we only add RADTooltip instances to our control hierarchy (ASP.NET) when a user is logged in. We do have RADEditor instances but these have "Enabled" set to false.

This works great - no Telerik script files are downloaded until we need them.

Unfortunately, when a postback occurs, a "scriptStartupBlock" is being emitted and causing a JavaScript error, since none of the Telerik client libraries have been downloaded. Here is the script:

if (!$telerik.isSafari)
{
 var links = document.body.getElementsByTagName('link');
 if (links && links.length>0)
 {
  var documentHead = document.getElementsByTagName('head')[0];
  if (documentHead)
  {
   for (var i=links.length-1;i>=0;i--)
   {
    var linkTag = links[i];
    if (linkTag.title == 'Telerik stylesheet')
    {
     if ($telerik.isIE)
     {
      linkTag = linkTag.cloneNode(true);
     }
     documentHead.appendChild(linkTag);
    }
   }
  }
 }
}
Lini
Telerik team
 answered on 03 Apr 2008
1 answer
144 views
Is it possible to get the Grid to display filters like how SharePoint's document library does? Where if you click the little arrow it'll give you a selection list of all the items listed in that column, you select it and it'll filter everything but that item.

I thought I saw an example with this, but perhaps I'm mistaken.

Brett
Ves
Telerik team
 answered on 03 Apr 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?