Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hi - my grid is as follows:

<telerik:RadGrid CellSpacing="0" CellPadding="0" OnItemDataBound="rgItemDataBound" Skin="Vista" ShowHeader="true"  PagerStyle-Position="TopAndBottom"  AllowPaging="true" PageSize="10" AutoGenerateColumns="false" Width="700" ID="RadGrid1" runat="server"
 
 
<MasterTableView  > 
 
     
    <Columns> 
    
    <telerik:GridTemplateColumn> 
     
      <ItemTemplate> 
     <div class="documentRow"
      
      
     
      
     <div class="documentInfo"
      
 
<h3>  <%# Eval("Subject").ToString() %></h3
 
 
 
      <class="postDate"><strong>Added:</strong> <%# Eval("PostDate", "{0:dd MMM yyyy}")%> | <strong>Views:</strong>  <%# Eval("TotalViews").ToString() %></p>  
     <class="documentBody">  <%# Eval("Body").ToString() %>  <%#  Eval("PostID", "<href='/media/p/{0}.aspx'>View document</a>") %></p
       
       
        
        
</div> 
 
    
       
     </div> 
      
     </ItemTemplate> 
     
    </telerik:GridTemplateColumn> 
    
       
  </Columns> 
     
      </MasterTableView> 
 
 
</telerik:RadGrid> 

How do I add sorting to this as there aren't clearly defined columns in the grid? I'd like to be able to sort on Subject, PostDate and Views

Thanks
Pavlina
Telerik team
 answered on 21 Apr 2010
1 answer
126 views
Hi,

I have the following tooltip to display static text:

 

<telerik:RadToolTip ID="reportInfoTip" runat="server" Animation="Fade" ContentScrolling="Auto"

 

 

Position="MiddleRight" RelativeTo="Element" TargetControlID="ddlSiteLogReport"

 

 

ShowEvent="FromCode" OffsetX="32" OffsetY="12" ShowCallout="false" EnableViewState="true"

 

 

Sticky="true" Width="580px" Height="98px" ManualClose="true" />

 


When clicking on Print Preview in the IE8 or Firefox 3.5.8 the tooltip goes out of the printing area or half away depending on the text in it. When changing zoom to 60% it display as it looks in the browser. It also happens with the tooltip demo site under First Look.
Is it possible to print a tooltip or any workarounds available?

Thanks & Regards,
Constantin
Constantin Dimitrov
Top achievements
Rank 1
 answered on 21 Apr 2010
11 answers
253 views
My Unique customer ID is: WT370784

I create app local resources for my page using visual studio:
WebMeetingScheduler.aspx.resx <-. default
WebMeetingScheduler.aspx.pt.resx <- for my languange

<%@ Page Language="C#" MasterPageFile="~/Office/Office.Master" StylesheetTheme="OfficeSkin" 
    AutoEventWireup="true" ValidateRequest="false" Codebehind="WebMeetingScheduler.aspx.cs" 
    Inherits="MeetingPointOffice.Office.WebMeetingScheduler" meta:resourcekey="PageResource1" UICulture="auto" 
    Culture="auto" %> 

The options "auto" don't have any impact in the RadScheduler control. is this correct?

So i add Culture="Portuguese (Portugal)" in my code:
<telerik:RadScheduler ID="scheduler" runat="server" 
                CustomAttributeNames="MeetingID,MeetingStateID,UserID,Subject,Description" 
                Skin="Outlook" 
                OnFormCreated="scheduler_FormCreated" 
                OnClientAppointmentMoveStart="OnClientAppointmenMoveStartHandler" 
                OnClientAppointmentResizeStart="OnClientAppointmentResizeStartHandler"   
                OnFormCreating="scheduler_FormCreating"   
                OnAppointmentDelete="scheduler_AppointmentDelete"   
                OnAppointmentDataBound="scheduler_AppointmentDataBound"   
                  
                Culture="Portuguese (Portugal)" 
                meta:resourcekey="schedulerResource1" > 

I start to see Portuguese language in my page, but Not everything is translated
a1.jpg show that Today, OK, Cancel are not translated
a2.jpg show the hours in a bat format, should be 11, 12, 13, 14, 15, 16, 17 etc

can you help me?
Best Regards.
Miguel Nazario
Top achievements
Rank 1
 answered on 21 Apr 2010
2 answers
120 views
I would like to show a message if someone inputs an Amount larger than my MaxValue.  For example, if they inputted $300 and my max value was $299, I would like to show them a link that says something like "Click here for help".  

Any suggestions? 
WebGeek
Top achievements
Rank 1
 answered on 21 Apr 2010
1 answer
179 views
Hi,

I am using single XML file to update both MasterTable and DetailTable views.

When I edit a row in detailTable, then XML is updated and so is values of few columns in mastertableview.
The update in detailTable view take place via edit template and by default after UpdateCommand completion, which updates required XML. The control goes to NeedDatasource and DetailTableDataBind. sample code below

protected

 

void RadGridFinancials_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

    RadGrid1.DataSource = ds.Tables[

"NEWXML"];
    // OR should I use
    //RadGrid1.MasterTableView.DataSource = ds.Tables["NEWXML"]; But this also does not update mastertableview
    // HierarchyLoadMode = "ServerOnDemand"

 

}

 

protected void RadGridFinancials_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)

 

{

 

    e.DetailTableView.DataSource =  ds.Tables["NEWXML"];

 

 

}
But after these calls only detailtableview gets updated and not mastertableview.
So How can I update mastertableview columns after update in row of detailtableview ?
This is required because few columns in mastertable view is valued as sum of a particular column in detailtableview. So an update in row of childtable needs to update parent tableview row.

Iana Tsolova
Telerik team
 answered on 21 Apr 2010
1 answer
267 views
can I get ahold of this and replace it in ItemDataBound with something else if no ratings have been submitted for an entry?
Mira
Telerik team
 answered on 21 Apr 2010
6 answers
185 views
I'm running into a problem with custom forms and client side population of resources.  When I do server side population, it works, but then I'm running into time out issues - and I just don't want to do it server side. I don't have those time out  issues client side, but there is a gotcha.

In the _populateResources function, the first for loop is never entered with Client Side population.  There aren't any event types that are populated.

Is this a known problem?
Shawn McCollum
Top achievements
Rank 1
 answered on 21 Apr 2010
1 answer
159 views
Hello,

I am working on a project that currently contains a RadGrid and RadFilter control for the grid.  It has been very helpful in getting the filtering that I need done!

However, in my grid, I have a DateTime column that has date and time in seconds.  The way the data in my database is set up, there are entries that only differ by seconds, so I want to be able to filter down to the "second" level.  When I use the RadFilter to filter on this column, it lets me type in the exact date and time (with seconds) I need and works as expected.  But when I apply the filter, if I had written the time in seconds, it automatically changes the look of the query to hh:mm tt.  Even though the query takes into account the seconds I entered, they are no longer displayed in my current filter. 

Is there currently any way to edit how date and time are displayed in RadFilter, or can I only get it shown as "mm/dd/yyyy hh:mm tt"?

Thanks!

EDIT:  Sorry for the double post!  I got a server error the first try, but apparently it still went through.
Nikolay Rusev
Telerik team
 answered on 21 Apr 2010
1 answer
267 views
I have a library that will read a PDF file from disk and convert page 1 to a bitmap, how do I place it in an image or binaryimage column in a grid without writing it back out to disk?

Thanks
Veli
Telerik team
 answered on 21 Apr 2010
4 answers
204 views
I have a grid with a master table and a detail/child table.  Both tables have a balance field.  The master table's balance field is the sum of it child balance fields.  When a child record is updated, I want the parent balance to reflect the change.  When I call Rebind() at the end of the UpdateCommand handler for a detail table, Get the following error.

"There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource."

I read a few treads related to this error but nothing helped for my particular circumstance.
Wyatt
Top achievements
Rank 1
 answered on 21 Apr 2010
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?