Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
356 views
Hi,

I would like to enable the Minimize/Maximize buttons on the RadWindow which has the opened document from the RadFileExplorer. So far, I was able to set FileExplorer.WindowManager.InitialBehavior to maximize, which maximizes the window, but there's a problem.
When opening a PDF document the RadFileExplorer in the back is "visible" over the document as 2 white squares(see attachment). Even so if I get rid of this problem, I would still like to implement Min/Max buttons. But I do not know how. :S

Best regards,
Thomas
Tomaž Lovrec
Top achievements
Rank 1
 answered on 17 May 2010
1 answer
126 views
What is the best way to insert a record using radgrid and LinqDataSource?

I'm using automatic operations (AllowAutomaticInserts) on a radgrid and one linqdatasource with "Inserting" event but the form go in error ! I have three key (not visibles to user) to add: 1 string, 1 integer and a integer calculated from database logic.

My piece of code:

protected

 

 

void ldsDestinazioni_Inserting(object sender, LinqDataSourceInsertEventArgs e)

 

{

 

 

Destinazione _nuovaDestinazione = e.NewObject as Destinazione;

 

_nuovaDestinazione.ID_Azienda =

 

SessionStore.Utente.ID_Azienda;

 

_nuovaDestinazione.ID_Cliente = (

 

int)ID_Cliente;

 

 

 

XSWDataContext _ordiniWeb = new XSWDataContext();

 

 

 

int _idDestinazione = 1;

 

 

 

var _destinazioni = _ordiniWeb.Destinazione.Where(d => (d.ID_Azienda == _nuovaDestinazione.ID_Azienda) &&

 

(d.ID_Cliente == _nuovaDestinazione.ID_Cliente));

 

 

if (_destinazioni.Count() > 0)

 

_idDestinazione = _destinazioni.Max(t => t.ID_Destinazione) + 1;

_nuovaDestinazione.ID_Destinazione = _idDestinazione;

_ordiniWeb.Destinazione.InsertOnSubmit(_nuovaDestinazione);

_ordiniWeb.SubmitChanges(System.Data.Linq.

 

ConflictMode.FailOnFirstConflict);

 

}


Please help!

Andrea 
Martin
Telerik team
 answered on 17 May 2010
1 answer
79 views
hi All

i am using telerik:RadSplitter (new Rad control 2010) i updated my old rad control to new one and problem is started
previously also my page performance was very less but when i replace with new control then my page performance is very very slow
rarely i have to wait even when i click  RadGrid  Cancel button also
and one more thing all this is happening in only one page where i am using telerik:RadSplitter,TabStrip,Multipage,Treeview these controls
 
Please give me suggestion for Page performance.
Yana
Telerik team
 answered on 17 May 2010
0 answers
186 views
Hi,

this shanker i did one project .I am using Radstylesheetmanager .Than my requirement is Register my own css file in Radstylesheetmanager.Now am facing design problem it's taking it's default skin .So how to add my own css file to Radstylesheetmanager please give me solution it's very argent please replay .

Please it's required it' very argent .

am using this type of code in my master page 

 <link rel="Stylesheet" href="css/styles.css" type="text/css" />

  <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" Runat="server">
    <CdnSettings BaseUrl="http://my.favorite.cdn" BaseSecureUrl="https://my.favorite.cdn" TelerikCdn="Enabled" />
   
    </telerik:RadStyleSheetManager>
      <telerik:RadScriptManager ID="scm" runat="server"  EnableScriptCombine="True" EnableHandlerDetection="false"  EnablePartialRendering="true"  LoadScriptsBeforeUI="False" 
            SupportsPartialRendering="False" >
   <CdnSettings BaseUrl="http://my.favorite.cdn" BaseSecureUrl="https://my.favorite.cdn" TelerikCdn="Enabled" />


i kindly request every one please help me it's very urgent .
    




thanks and regards 
shanker.B 
shanker bangari
Top achievements
Rank 1
 asked on 17 May 2010
1 answer
283 views
I have used the demo (located at http://demos.telerik.com/aspnet-ajax/toolbar/examples/applicationscenarios/gridcommanditem/defaultvb.aspx?product=grid) to create a radgrid with a command item toolbar. (I had to modify the inline code from C# to VB). Everything works fine except for the INSERT functions.

When inserting it shows the HospID and UserID fields as editable (HospID is autogenerated and UserID is a cookie parameter) which it doesn't do on the demo (The CustomerID is non-editable on demo). When I insert a Hospital name and click Add this hospital nothing happens.

The code is as follows:
    <form id="form1" runat="server"
<telerik:RadCodeBlock ID="radcodeblock1" runat="server"
    <script type="text/javascript"
        function onToolBarClientButtonClicking(sender, args) { 
            var button = args.get_item(); 
            if (button.get_commandName() == "DeleteSelected") { 
                args.set_cancel(!confirm('Delete all selected hospitals?')); 
            } 
        } 
    </script> 
</telerik:RadCodeBlock> 
    <telerik:RadScriptManager ID="ScriptManager1" runat="server"
    </telerik:RadScriptManager> 
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
         
        <telerik:RadGrid ID="RadGrid1" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" 
            DataSourceID="ds_Hospitals" Width="97%" AllowSorting="True" 
            AutoGenerateColumns="true" AllowPaging="True" GridLines="None" runat="server" 
            ShowFooter="True" AllowMultiRowSelection="True" PageSize="7" AllowMultiRowEdit="True" 
            HorizontalAlign="NotSet" OnItemDeleted="RadGrid1_ItemDeleted"
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <MasterTableView Width="100%" GridLines="None" CommandItemDisplay="Top" DataSourceID="ds_Hospitals" 
                EditMode="InPlace" HorizontalAlign="NotSet" DataKeyNames="HospID, UserID" AllowAutomaticInserts="True" AutoGenerateColumns="True"
                <CommandItemTemplate> 
                    <telerik:RadToolBar ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick" runat="server" OnClientButtonClicking="onToolBarClientButtonClicking"
                        <Items> 
                            <telerik:RadToolBarButton Text="Edit selected" CommandName="EditSelected" ImageUrl="~/images/toolbar/Edit.gif" Visible='<%# RadGrid1.EditIndexes.Count = 0 %>'></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton Text="Update" CommandName="UpdateEdited" ImageUrl="~/images/toolbar/Update.gif" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton Text="Cancel editing" CommandName="CancelAll" ImageUrl="~/images/toolbar/Cancel.gif" Visible='<%# RadGrid1.EditIndexes.Count > 0 OrElse RadGrid1.MasterTableView.IsItemInserted %>'></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton Text="Add new" CommandName="InitInsert" ImageUrl="~/images/toolbar/AddRecord.gif" Visible='<%# Not RadGrid1.MasterTableView.IsItemInserted %>'></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton Text="Add this hospital" CommandName="PerformInsert" ImageUrl="~/images/toolbar/Insert.gif" Visible='<%# RadGrid1.MasterTableView.IsItemInserted %>'></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton Text="Delete selected hospitals" CommandName="DeleteSelected" ImageUrl="~/images/toolbar/Delete.gif"></telerik:RadToolBarButton> 
                            <telerik:RadToolBarButton Text="Refresh hospital list" CommandName="RebindGrid" ImageUrl="~/images/toolbar/Refresh.gif"></telerik:RadToolBarButton> 
                        </Items> 
                    </telerik:RadToolBar> 
                </CommandItemTemplate> 
            </MasterTableView> 
            <ClientSettings> 
                <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
 
    <asp:SqlDataSource ID="ds_Hospitals" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        DeleteCommand="DELETE FROM [Sub_Hospitals] WHERE [HospID] = @HospID" InsertCommand="INSERT INTO [Sub_Hospitals] ([UserID], [Hospitalname]) VALUES (@UserID, @Hospitalname)" 
        SelectCommand="SELECT * FROM [Sub_Hospitals] WHERE ([UserID] = @UserID) ORDER BY [Hospitalname]" 
        UpdateCommand="UPDATE [Sub_Hospitals] SET [UserID] = @UserID, [Hospitalname] = @Hospitalname WHERE [HospID] = @HospID"
        <SelectParameters> 
            <asp:CookieParameter CookieName="UserID" Name="UserID" Type="Int32" /> 
        </SelectParameters> 
        <DeleteParameters> 
            <asp:Parameter Name="HospID" Type="Int32" /> 
        </DeleteParameters> 
        <UpdateParameters> 
            <asp:Parameter Name="UserID" Type="Int32" /> 
            <asp:Parameter Name="Hospitalname" Type="String" /> 
            <asp:Parameter Name="HospID" Type="Int32" /> 
        </UpdateParameters> 
        <InsertParameters> 
            <asp:Parameter Name="UserID" Type="Int32" /> 
            <asp:Parameter Name="Hospitalname" Type="String" /> 
            <asp:Parameter Name="HospID" Type="Int32" /> 
        </InsertParameters> 
    </asp:SqlDataSource> 
    </form> 
 

GlenB
Top achievements
Rank 1
 answered on 17 May 2010
6 answers
424 views
Ok... just a very quick (i hope) question. I'm very confused with some of the Client API calls... it seems that they work in some cases and not in others (specifically depending on where the data was bound).

In the case of get_dataItem ... is it right to expect that this work for grids that have had their data bound on the server? I have been using this call with no problems on some grids where I have bound the data on the client... but it always returns null on another grid that I have recently done via server binding. 

Any help would be appreciated... : )

-Brian
Billy Bernard
Top achievements
Rank 1
 answered on 16 May 2010
2 answers
267 views
Hi,

How to disable RadMenuItem in Context Menu when click over Radgrid . which is suitable event to place a code..

     if (Convert.ToInt32(RadGrid1.SelectedItems.Count) > 1)
      {
          ...Code here Disable the Menu item..

     }

in Which event this code placed..either in  RadGrid based Event   ( or )  Radmenu based Events..

Advance thanks for your help.

Raja Mohammed
Top achievements
Rank 1
 answered on 16 May 2010
2 answers
200 views
Hi.

I have a RadGrid that I populate with a collection of objects from the class A. This class has one property (propertyB) that is an instance of another class B. And this class B has a property(propertyString) that is an String.

In the design of RadGrid I put DataKeyNames="propertyB.propertyString". 

And I have the following error:

DataBinding: 'Namespace.A' doesn`t contain a property with the name 'propertyB.propertyString'.


I have seen that this schema function in another place. What is missing to me?

Thanks.

Regards

Daniel Cuba
Top achievements
Rank 1
 answered on 15 May 2010
1 answer
183 views
Hi


I want to use following on my site
http://awardwinningfjords.com/2009/06/29/prototype-iphone-style-checkboxes.html

Problem:

I have a master page where i put Formdecoration like
 <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" 
            Skin="Office2007" /> 

And lot of pages using this So when i am putting iPhone style related Code in a single aspx file like below

    <table> 
            <tr class="disabled"
                <th> 
                    <label for="disabled"
                        Disabled</label> 
                </th> 
                <td> 
                    <input type="checkbox" id="disabled" disabled="disabled" /> 
                </td> 
            </tr> 
            <tr class="on_off"
                <th> 
                    <label for="on_off"
                        Default</label> 
                </th> 
                <td> 
                    <input type="checkbox" id="on_off" /> 
                </td> 
            </tr> 
            <tr class="on_off"
                <th> 
                    <label for="on_off_on"
                        Default On</label> 
                </th> 
                <td> 
                    <input type="checkbox" checked="checked" id="on_off_on" /> 
                </td> 
            </tr> 
            <tr class="css_sized_container"
                <th> 
                    <label for="css_sized_container"
                        CSS Sized Container and Handle</label> 
                </th> 
                <td> 
                    <input type="checkbox" id="css_sized_container" /> 
                </td> 
            </tr> 
            <tr class="long_tiny"
                <th> 
                    <label class="left" for="long_tiny"
                        Long and short labels</label> 
                </th> 
                <td> 
                    <input type="checkbox" id="long_tiny" /> 
                </td> 
            </tr> 
            <tr class="onchange"
                <th> 
                    Event tracking 
                </th> 
                <td> 
                    <input type="checkbox" id="onchange" /> 
                    <p> 
                        Checkbox status is <strong><span id="status">...</span></strong>.</p> 
                </td> 
            </tr> 
        </table> 

Then due to FormDecoration in master page applies style on iPhone related checkbox it should not my requirement. So how i can avoid to apply formdecoration on that?

thx


Muhammad Imran
Top achievements
Rank 1
 answered on 15 May 2010
11 answers
183 views
Hello
I have a grid that is created dynamically by the data that is passed. I create the grid's columns in code behind and bind the grid on every postback.
That works fine for the beginning. Even filtering works fine. But when I filer more than one columns the first column's filter gets lost.

Is there a way to persist the grid's filter settings or to load my data in a way that the grid's settings do not get lost?

Thanks in advance

Ferdinand
Pavlina
Telerik team
 answered on 15 May 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?