Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
109 views
Hi,
I want to make an item invisible, based on certain attributes of it. Is it possible in the grid? For example if the item is marked as deleted don't show it on grid. The actual delete is performed after certain user actions. Please let me know if any solution is available other than maintaining two list one actual list with and one list for View.

Thanks you
Kunmuni
Kunmuni
Top achievements
Rank 1
 answered on 29 Jun 2009
1 answer
202 views
Hi,

I would like to know how I can set the FileExplorer in Readonly mode, no matter the value of PathPermissions on files/folders.

I have written my own FileBrowserContentProvider, for my database filesystem, but the "readonly mode" data is not in the filesystem data, but somewhere else in my app (computed value).

So is it possible to add a "readonly" mode to the FileExplorer, that deactivate toolbar buttons, context menu, and drag-drop ?

Thanks.
Fiko
Telerik team
 answered on 29 Jun 2009
1 answer
236 views
I have a timer that opens an existing radwindow using the RegisterStartupScript method since it's inside of an update panel:
Dim scriptstring As String = "window.radopen('something.aspx', 'YOZ');" 
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "YOZ", scriptstring, True) 
'YOZ being the ID of one of my windows in the windowmanager

What i need to do now is to find out if this window is indeed open so i don't keep refreshing the page when i call the script to load the window again (which is what's happening). I would also like to close this window programatically if need be. 

thanks!


Fiko
Telerik team
 answered on 29 Jun 2009
2 answers
186 views
I have an editable grid that needs to have one of its cells conditionally editable.  I decided that the best place to make this check would probably be the EditCommand event.  My rationale was that when an item was clicked to be edited, I would grab the ID from it, and if it was greater than 0, I would grab the GridTextBoxColumnEditor for the DataKey cell and set its TextBox to Enabled = false.  Below is my code snippet.
    <telerik:RadGrid ID="coreDataEntriesGrid" runat="server" Width="700" EnableViewState="true" HorizontalAlign="Center" 
     AutoGenerateColumns="false" AllowSorting="false" OnRowDrop="CoreDataEntriesGrid_RowDrop" Skin="Web20" 
     OnNeedDataSource="CoreDataEntriesGrid_NeedDataSource" OnUpdateCommand="CoreDataEntriesGrid_UpdateCommand" 
     OnInsertCommand="CoreDataEntriesGrid_InsertCommand" OnEditCommand="CoreDataEntriesGrid_EditCommand"> 
        <MasterTableView DataKeyNames="ObjectID,DataKey,DataValue,IsActive" EditMode="InPlace" CommandItemDisplay="Top"> 
            <Columns> 
                <telerik:GridEditCommandColumn ButtonType="LinkButton" CancelText="Cancel" EditText="Edit" UpdateText="Update"  /> 
                <telerik:GridBoundColumn HeaderText="Key" DataField="DataKey" ItemStyle-Width="100" 
                 ColumnEditorID="dataKeyEditor" UniqueName="DataKey" /> 
                <telerik:GridBoundColumn HeaderText="Value" DataField="DataValue" ItemStyle-Width="500" 
                 ColumnEditorID="dataValueEditor" UniqueName="DataValue" /> 
                <telerik:GridCheckBoxColumn HeaderText="Active" DataField="IsActive" ItemStyle-Width="50"  
                 UniqueName="IsActive" /> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings AllowRowsDragDrop="true"> 
            <Selecting AllowRowSelect="true" /> 
            <ClientEvents OnRowDropping="CoreDataEntriesGrid_RowDropping" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
     
    <telerik:GridTextBoxColumnEditor ID="dataKeyEditor" runat="server" TextBoxStyle-Width="100" /> 
    <telerik:GridTextBoxColumnEditor ID="dataValueEditor" runat="server" TextBoxStyle-Width="500" /> 

        protected void CoreDataEntriesGrid_EditCommand(object source, GridCommandEventArgs e) 
        { 
            GridEditableItem item = e.Item as GridEditableItem; 
            int id = (int) item.GetDataKeyValue("ObjectID"); 
            if (id > 0) 
            { 
                (item.EditManager.GetColumnEditor("DataKey") as GridTextBoxColumnEditor).TextBoxControl.Enabled = false; 
            } 
        } 
 

What's happening is that I'm getting an ArgumentOutOfRangeException on the line item.EditManager.GetColumnEditor("DataKey").  I figured ok, this is obviously not the right event to tap into.  However, when I was in debug mode, I put a watch on item.EditManager.GetColumnEditor("IsActive") and that returned the correct GridCheckboxColumnEditor without tossing the exception.  The only thing that I could tell that was different was the fact that I'm setting the ColumnEditorID for the DataKey column and not on the IsActive column (besides the obvious fact that they're different column types), so I tried taking it out and letting the BoundColumn handle it on its own, but that had the same result.  Could you point me in the right direction?

Thanks,
Jared
eakins05
Top achievements
Rank 1
 answered on 29 Jun 2009
6 answers
147 views
Hi,

I'm changing the background color of an appointment, and not using you skin/style
everything works great,
but there is a small gap in the upper part of the appointment that doesn't fill the whole cell,

I'm using the following

 .RadScheduler .rsAptContent, .RadScheduler .rsAptIn, .RadScheduler .rsAptMid, .RadScheduler .rsAptOut
        {
            background-image: none !important;
        }

It also display differently in IE & FF

http://80.179.90.69/ie.png
http://80.179.90.69/ff.png





Please advise,
Mickey
Mickey
Top achievements
Rank 1
 answered on 29 Jun 2009
3 answers
161 views

Hello sir,

       Collapsing and enlarging group is not working in Rad Grid. I am calling RefreshCombos() function given in demo site from Rad grid PreRender event. But is working before filtering controls is calling but not working once after the items is filtered. I dont know what is the proble.. So plz help me to find the solution.

I am using the following code in order to work filtering properly:
 protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
 
        if ((RadGrid1.MasterTableView.FilterExpression != string.Empty ))
        {
            RefreshCombos();
        }
        
    }

Regards,
Appu
Pavlina
Telerik team
 answered on 29 Jun 2009
2 answers
161 views
I have a grid that has about a million line items... everyone who would come to the webpage would get the same dataset...

I want to know how to preload it, and place it in memory so that it is cached and ready to display instantly for everyone who visits that page... sort of like you do for the 300,000 line item demo for the grid...

Because of the large size... (and there will be no edits to that grid)... if I were to place the dataset in a session variable.. when serveral users visit the page and load the grid.. it will cause the server to err...(out of memory)

I want one cached dataset that would be used for all visitors.. is that possible?

Your help is appreciated,

Thanks,

Jeff
Georgi Krustev
Telerik team
 answered on 29 Jun 2009
3 answers
166 views
I have a radgrid that is embedded in the InsertTemplate of a FormView control. When i am trying to insert a new record into the formview control and then try to add items to the rad grid, the edit template that i have set up for radgrid does not show when i click the "Add" button on the radgrid. The strange thing is that the next time the page does a postback to the server the template then becomes available. Any ideas on what is causing this issue?
Pavlina
Telerik team
 answered on 29 Jun 2009
1 answer
154 views
Hello ,

I have 2 radscheduler's on same page . one of them works perfectly but when trying to update other one i keep getting error

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Selection out of range
Parameter name: value" .

 Insert , draging and resizing works perfectly fine but double clicking an appointment creates problem . i have used same events for both Scheduler to insert and update also same resources .


I am new to radScheduler can you please help me out . i cant figure out the problem .

Thank You
Vipin
Peter
Telerik team
 answered on 29 Jun 2009
1 answer
143 views
Okay, if someone can give me a hand hear I would definitely appreciate it.  I'm not sure if I'm doing something wrong, don't understand how this is supposed to work or simply found a bug.  I'm trying to use the RadTabStrip with an associated RadMultiPage together with a SiteMap.  I've found many resources on the combination of two of those three items but very little that discusses the use of all three, or at least in the way I'm (trying to) use them.

The site map contains entries for several pages at the same level in the hierarchy (siblings), each with several nodes.  These child nodes do not have a URL entry but instead are (intended to) switch the PageView of the RadMultiPage. The top level nodes (which have URLs) work as expected, each linking to the correct page.  The child tabs of each of these pages display correctly but do not perform what I expected the when clicked.  The child tabs of the page listed first in the SiteMap display a PageView but the PageView they are displaying is offset by 1.  That is, the first child tab on the first page is displaying the second PageView, the second is displaying the third, etc.  This leaves the last tab not displaying a PageView at all.  Also, the child tabs on each other page after the first do not display a PageView.

I've tried using the client side API to try to determine what is occuring and it would appear that the child tabs on all pages are attempting to display a PageView with the same index as the the index of the node in the SiteMap.  That is, the first page's third child node (which is the fourth node) is attempting to display the fourth PageView, which does not exist.

Thoughts? Ideas? Suggestions? Am I simply misunderstanding how this should be operating? AKA: "user error"?  If I am doing things correctly and it "should" be working I have a stripped down example that demonstrates the situation, but I've also included a few of the appropriate snippits.

Thanks for any help.

web.sitemap

 

 

 

    <siteMapNode url="~/Index.aspx" title="Fruits" description="" > 
        <siteMapNode url="~/Page1.aspx" title="Page1" description="" > 
            <siteMapNode title="Apple" description="" /> 
            <siteMapNode title="Bananna" description="" /> 
            <siteMapNode title="Carrot" description=""  /> 
        </siteMapNode> 
        <siteMapNode url="~/Page2.aspx" title="Page2" description="" > 
            <siteMapNode title="Date" description="" /> 
            <siteMapNode title="Eggplant" description="" /> 
            <siteMapNode title="Fig" description=""  /> 
        </siteMapNode> 
    </siteMapNode> 

 

 

Page1.aspx

 

 

    <asp:SiteMapDataSource ID="siteMapDataSource" runat="server" ShowStartingNode="false" />  
    <telerik:RadTabStrip ID="radTabStrip1" runat="server" DataSourceID="siteMapDataSource" MultiPageID="radMultiPage1" SelectedIndex="0" />  
    <telerik:RadMultiPage runat="server" id="radMultiPage1" SelectedIndex="0" >  
        <telerik:RadPageView runat="server" ID="radPageView1" >Page View - Apple</telerik:RadPageView>  
        <telerik:RadPageView runat="server" ID="radPageView2" >Page View - Banana</telerik:RadPageView>  
        <telerik:RadPageView runat="server" ID="radPageView3" >Page View - Carrot</telerik:RadPageView>  
    </telerik:RadMultiPage>  
 

Page2.aspx

(Same structure as Page1)

Paul
Telerik team
 answered on 29 Jun 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?