Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
231 views
Hello

I am using User Control as Edit Form for RadGrid , there is a combo box inside that user control, how can I set the default value for that combo, in this example  there are only text boxes there and it is easy to set defaule values for them, but how about combo box?
Simon
Telerik team
 answered on 02 Jul 2009
2 answers
139 views
I have a grid that defaults to edit mode.

When I sort any column, it closes out of edit mode.  How can I maintain the grid in edit mode after sorting?

Here is the NeedDataSource for the grid:

protected void rgridDemandEntry_NeedDataSource(object sender, EventArgs e) 
    { 
        if (_demand.DemandID > 0 && _gridMode == "Edit") 
        { 
            _demandDT = GetDemandByDemandID(_demand.DemandID).Tables[0];  // Load the grid with the data for the demand ID 
        } 
        else 
        { 
            _demandDT = GetDemandDrgTable(0).Tables[0];  // Start a new grid with blank counts and the latest version entry 
        } 
        rgridDemandEntry.DataSource = _demandDT; // Load the datatable into rgridDemandEntry 
        for (int i = 0; i < _demandDT.Rows.Count; i++) 
        { 
            rgridDemandEntry.EditIndexes.Add(i); 
        } 
    } 


And here is the grid:
<telerik:RadGrid runat="server"  
        ID="rgridDemandEntry"  
        OnNeedDataSource="rgridDemandEntry_NeedDataSource" 
        OnItemDataBound="rgridDemandEntry_ItemDataBound" 
        OnItemCommand="rgridDemandEntry_ItemCommand" 
        Skin="Office2007"  
        AutoGenerateColumns="false" 
        AllowMultiRowEdit="true" 
        AllowPaging="false" 
        AllowSorting="true"> 
        <MasterTableView EditMode="InPlace" DataKeyNames="drgNum" CommandItemDisplay="TopAndBottom"> 
            <Columns> 
                <telerik:GridBoundColumn HeaderText="DRG #" DataField="drgNum" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="MDC" DataField="mdc" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="DRG Description" DataField="drgDescription" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="% Req. Rehab" DataField="pctReqRehab" ReadOnly="true" /> 
                <telerik:GridBoundColumn HeaderText="Medicare DC" DataField="dischargeCountMedicare"/> 
                <telerik:GridBoundColumn HeaderText="Total DC" DataField="dischargeCount" /> 
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Visible="false" /> 
            </Columns> 
            <CommandItemTemplate> 
                <asp:Button runat="server" ID="btnUpdate" Text="Save" CommandName="UpdateAll" ValidationGroup="VGDemandDRG" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btnCancelCurrent" runat="server" Text="Cancel" OnClick="btnCancelCurrent_Click" ForeColor="Blue" Font-Underline="true" /> 
            </CommandItemTemplate> 
        </MasterTableView> 
    </telerik:RadGrid> 

Carl
Top achievements
Rank 1
 answered on 02 Jul 2009
1 answer
466 views
Hi.

 How much page size i can be give at maximum. Because suppose i am given too much page size like 2000 maximum, whether It will be work out or thrown an exception error. Because i am getting error if am crossing maximum limit for page size.

So could u any body help me

Regards,
AS
Dimo
Telerik team
 answered on 02 Jul 2009
1 answer
109 views
Hi

I am getting the following unknown pageRequestManagerServerException. The error is mentioned below, it is occuring when i am choosing any filtetering combobox or any filtering control. Event i accnot be done paging too. Plz help me in this scenario

"sys.webforms.pageRequestManagerServerException:an unknown error occured while processing the request on the server.The
 status code returned from the server was: 12030"



Thanx,
Appu

Princy
Top achievements
Rank 2
 answered on 02 Jul 2009
5 answers
137 views
Hi
 I hav one problem for my Radgrid paging..

        while calling the below code the paging or page index changed does not working. As a result i cannot move to next page from my first page displayed as well.

My code snipper is below:
 protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
      RefreshCombos();
      
    }

    //To refresh the resultset
    private void RefreshCombos()
    {
        objDA= new ClassDA();
        DataTable dt= objDA.GetDetails();

        RadGrid1.DataSource =dt;
        RadGrid1.MasterTableView.Rebind();
        
    }

I am used the code what ever it is given by the Telerik help page for filtering controls. But it is not working fine while page moving

Thanks
Appu
Daniel
Telerik team
 answered on 02 Jul 2009
1 answer
158 views
Hi,
  One of the last requirement we have during evaluation for the RadControls, is the ability to create thumbnails of the created "article" to be displayed as thumbnails in the grid control. This thumbnails will serve as a preview functionality to the users while browsing through the grid control.
  After checking the RadEditor's export functionality, it has export to pdf, word, etc., but there no option to export the editor's contents as an image.
  Alternatives I can think of is, in the RadGrid, have a column with RadEditor in Preview Mode in every row, however, I'm not sure how heavy this will be - will it be fast still?.

   Is there anyway to export the Editor's content as an Image? This will truly be useful in such scenarios.
  
  Lastly, I tried the Export to PDF demo, but when setting an Image to absolute position, the exported PDF will not display as per what is shown in the editor.

Many Thanks,
Henry Wu 
Tervel
Telerik team
 answered on 02 Jul 2009
2 answers
109 views
Hi

I want to change the look of the Day and Week view of the Rad Schedular.

Is it possible to make the Day and Week view the Appoints show in Stacks as in Month View..

For Example, In 9.30 time slot there are two appointments ..
I want to show them one below another and each of them take the full width of the page..

Hope I am clear about the requirement.

Please help me out...

Thanks
Archan
Samir Patel
Top achievements
Rank 1
 answered on 02 Jul 2009
2 answers
142 views
hi.. I'm trying to follow alon the lines of this white paper. http://www.telerik.com/help/aspnet-ajax/grdsavingsettingsonperuserbasis.html
I have a class file (perist.vb) containing the class. I am confused on how to use the example however
my code behind is as follows . THe class from the white paper  file is verbatim copy/paste
Imports Telerik.Web.ui  
Partial Class temp_somepage  
    Inherits System.Web.UI.Page  
    Dim x As PersistMe   
 
    Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit  
        If Session("Settings") IsNot Nothing Then  
            x.LoadSettings(Session("Settings"))  
        End If  
    End Sub  
    Protected Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender  
        Session("Settings") = x.SaveSettings  
    End Sub  
End Class 

when trying to run it.. i end up with the object reference not set to object  session("settings") = x.savesettings.
Can you please assist on this as I see I am returning the settings of the grid on savesettings... however I don't see how the GridInstance is to be used.  Thank you.
Yavor
Telerik team
 answered on 02 Jul 2009
1 answer
125 views
Hi

I am using Firefox and IE browser to run my project simultaneously. But after some time i am getting the following error on FireFox browser, when i close it down at once and restarts again it works fine for some time. I dont know what is the problem on this

The page at http://localhost:3798 says

"The state information is invalid for this page and might me corrupted"



regards,
SA
Shinu
Top achievements
Rank 2
 answered on 02 Jul 2009
3 answers
292 views
Hi

I hoping that someone in here can help with with my problem.

I have a grid which are grouped and by default they should all be collapsed.

Then if i expand one group i get the items associated with that group. Thats fine.

Each item is editable and it uses a usercontrol to handle the editing.

BUT, when i press edit on an item (Im using code behind, so it makes postback) all group are now again collapsed.

I can make the clicked item appear in its group but not the whole group or nor the usercontrol to edit the clicked item in.

Any way to make this happen?

Thanks in advance
Sebastian
Telerik team
 answered on 02 Jul 2009
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?