Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 views
Hi,

RadGrid uses Object datasource, with  AllowAutomaticUpdates="true". Items of Grid turns editable when double clicked.
How can we stop items to turn editable ?. Any property like Items.IsEditable = false. We have a button to toggle Edit.

Regards,
Martin

Daniel
Telerik team
 answered on 17 Dec 2008
1 answer
71 views

Hi folks,

I installed today the new release of 2008.3.1125.20 of telerik and none of the samples i could found on telerik.com for the google-like suggest code work.
The event ItemRequrested is not fired with any settings of LoadOnDemand.
As the sample, I put the RadComboBox in the RadGrid control, this one is ajaxified and all the other actions works fine.
I found 2 versions of OnClientItemsRequesting on telerik.com and none of them works, the version on the Online-Demo is deprecated.
Simon put the finger on a problem about this control and published a fix of highlight (http://www.telerik.com/community/forums/aspnet-ajax/combobox/select-first-item-when-using-contains-filter.aspx) is it possible to check also the control against the sample provided for the Google-like Filtering (http://demos.telerik.com/aspnet-ajax/Controls/Examples/Integration/GridAndCombo/DefaultVB.aspx?product=grid) please.

Thank you to provide me quickly a fix or solution to make it working, thanks in advance.

Alexandre

Simon
Telerik team
 answered on 17 Dec 2008
3 answers
251 views
Hello,

I am using numeric textbox for entering account number that can start from 000
The control cuts off leading zeros. Is there any way I can get the number a customer enters?

Thank you.
Dimo
Telerik team
 answered on 17 Dec 2008
1 answer
122 views
hai All,

    I have a hierarchical grid in my page. after editing  a record in the detailstable(Inner Grid) iam calling the NeedDataSource method of the master table to get the updated values. Now the Master data table is binded with the updated values, but the values of the details table which i have edited is empty. Once clicking Refresh it is showing correctly.

Code:

after editing
Grid1.NeedDataSource(null,null)
Grid1.databind();

I want the values to be refreshed in the grid when i update some records.

Thanks in advance.
Daniel
Telerik team
 answered on 17 Dec 2008
1 answer
91 views
I just watched some trainer videos on the grid trying to familiarize myself with the possibilities of the grid. In the one on grouping it says and shows you can set the GroupByExpressions collection in the properties window to make sure a group by is set already when rendering the grid so the user doesn't have to do this.

However there is no such property in my properties window. In the property builder there is a property GroupByExpression for each column but this doesn't have any effect when I set this to "Parent" or "Group By Parent" like I need to in my case.

I managed to get this functionality working though by typing in by hand in the aspx code:
<GroupByExpressions> 
     <telerik:GridGroupByExpression> 
       <SelectFields> 
          <telerik:GridGroupByField 
            FieldName="Parent" 
            HeaderText="Parent"/> 
       </SelectFields> 
       <GroupByFields> 
          <telerik:GridGroupByField 
             FieldName="Parent" /> 
       </GroupByFields> 
     </telerik:GridGroupByExpression> 
   </GroupByExpressions> 

So it working, however I cannot find it in the UI of the grid nor the properties window.
here is a screenshot: http://212.123.29.43/Content/GroupByExpression.jpg

Can you tell me what I am missing? (using the latest version 2008.3.1125)

Steven
Top achievements
Rank 2
 answered on 17 Dec 2008
1 answer
271 views

 

I am currently using Telerik version 2008.3.1105.35
I have set width and height for the radwindow manager but i was not reflecting when page render. the width and height automanically changed at the runtime. following code we used for radwindow.
"<
telerik:RadWindowManager ID="RadWinMgrQualification" runat="server" Left=""  NavigateUrl="" Title="" Top="" >  

 

 

<Windows 

 

 

<telerik:RadWindow ID="Qualification" runat="server" Modal="True" Title="Qualification" Height="500px"  

 

 

Width="600px" Left="100px" Top="100px" ReloadOnShow="True" Behavior="None" />  

 

 

</Windows 

 

 

</telerik:RadWindowManager>"

how to give fixed height and width for radwindow.

Georgi Tunev
Telerik team
 answered on 17 Dec 2008
4 answers
167 views
Hello,
DataFormatString works fine if I bind the datasource on the server, however after a client side bind DataFormatString no longer seems to be applied.
For Example: 18/10/2007 Changes to: Thu Oct 18 2007 00:00:00 GMT-0400 (Eastern Daylight Time) after a sort, paging etc.

Column Tag:

<
telerik:GridBoundColumn HeaderText="Date of Service" SortExpression="ClaimDateOfService" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" DataField="ClaimDateOfService" />                                                        


OnCommand:

 

 


function grdMemberClaims_Command(sender, args)  
{  
    var currentPageIndex = sender.get_masterTableView().get_currentPageIndex();  
    var pageSize = sender.get_masterTableView().get_pageSize();  
    var sortExpressions = sender.get_masterTableView().get_sortExpressions();      
    sender.get_masterTableView().clearSelectedItems();  
    if(sortExpressions.length > 0 && currentPageIndex > 0)      
        sender.get_masterTableView().set_currentPageIndex(0);      
    var sortExpressionssortExpressionsAsSQL = sortExpressions.toString();                            
    MemberInquiryService.GetMemberClaimsByMemberId("<%=MemberId %>",currentPageIndex * pageSize, pageSize, sortExpressionsAsSQL, GetMemberClaimsByMemberIdCompleted);           
    logDebug("MemberInquiryService", "GetMemberClaimsByMemberId",  "MemberId=<%=MemberId %>" + " PageSize=" + pageSize + " ResultOffset=" +(currentPageIndex * pageSize) +" SortExpression="+sortExpressionsAsSQL);                       
    args.set_cancel(true);  


Do I need to reset the DataFormatString in the OnCommand Event Handler, how would I do that.
If not is there a workaround?
This is happening with all formated columns Decimals etc.

Thanks,
Marc

Nikolay Rusev
Telerik team
 answered on 17 Dec 2008
1 answer
240 views
Hai All,

        I am using fileupload inside Radgrid.I have several tabs in my page.but while using document upload page in the application,It is doing a postback.I would like to know about how to avoid this post back in my page.here is the code which i used in my application:

 
 aspx page: 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnRequestStart="conditionalPostback"> 

 <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />  

 

 

 

 <telerik:RadGrid ID="RGDocuments"   

<PagerStyle Mode="NextPrevAndNumeric" />  

<MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="PKID,DocumentType,DocumentName,UploadedTime,DocumentExpiryDateFlag,DocumentExpiryDate">  

<Columns> 

<telerik:GridTemplateColumn HeaderButtonType="TextButton" UniqueName="Upload" HeaderText="File Name">  

 

<ItemTemplate  

<asp:Label runat="server" ID="lblFileName" Text='<%# Eval("FileName") %>' />     

</ItemTemplate  

<EditItemTemplate  

<asp:FileUpload Width="400" BorderColor="AliceBlue" onclick="return Check()" ID="RadUpload1"  runat="server" />   

</EditItemTemplate>   

</telerik:GridTemplateColumn> 

 

</Columns>   

</MasterTableView 

</telerik:RadGrid>

aspx.cs Code  

 

protected void RGDocuments_ItemDataBound(object sender, GridItemEventArgs e)  

{ 

 

FileUpload upload = (FileUpload)e.Item.FindControl("RadUpload1"); 

RadAjaxPanel1.ResponseScripts.Add(string.Format("window['UploadId'] = '{0}';", upload.ClientID)); 

 

 

}

 

 
Atanas Korchev
Telerik team
 answered on 17 Dec 2008
4 answers
321 views
I would like to allow the user to be able to click anywhere in the column header to sort the grid by that column. RadGrid currently seems to only support clicking on the header Text. Are there any documented demos that show how to do this?
Crescent
Top achievements
Rank 1
 answered on 17 Dec 2008
0 answers
124 views
Hai All,

        I am using fileupload inside Radgrid.I have several tabs in my page.but while using document upload page in the application,It is doing a postback.I would like to know about how to avoid this post back in my page.here is the code which i used in my application:

 
 aspx page: 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnRequestStart="conditionalPostback"> 

 <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />  

<

<telerik:RadGrid ID="RGDocuments"   

<PagerStyle Mode="NextPrevAndNumeric" />  

<MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="PKID,DocumentType,DocumentName,UploadedTime,DocumentExpiryDateFlag,DocumentExpiryDate">  

<Columns> 

<telerik:GridTemplateColumn HeaderButtonType="TextButton" UniqueName="Upload" HeaderText="File Name">  

 

<ItemTemplate 

 

<asp:Label runat="server" ID="lblFileName" Text='<%# Eval("FileName") %>' />    

 

</ItemTemplate 

 

<EditItemTemplate 

 

<asp:FileUpload Width="400" BorderColor="AliceBlue" onclick="return Check()" ID="RadUpload1"  runat="server" />  

 

</EditItemTemplate>  

 

</telerik:GridTemplateColumn> 

</Columns>   

</MasterTableView 

</telerik:RadGrid>

aspx.cs Code

 

protected void RGDocuments_ItemDataBound(object sender, GridItemEventArgs e)  

{ 

 

FileUpload upload = (FileUpload)e.Item.FindControl("RadUpload1"); 

RadAjaxPanel1.ResponseScripts.Add(string.Format("window['UploadId'] = '{0}';", upload.ClientID)); 

 

 

 

}

 
sudheer
Top achievements
Rank 2
 asked on 17 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?