Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
114 views
Hi. one of my customer application pages language has some Arabic, Persian words. when I try to export to pdf, this words showed incorrectly and are ####.
why this accrued?
is there anyone familiar with this?
Daniel
Telerik team
 answered on 17 May 2010
1 answer
94 views
Hi

I want to change the a few styles of all comobo boxes with Skin = webblue without adding a new skin.

I have tried the following which I had thought would work but to no avail

div.RadComboBox_WebBlue .rcbDisabled
{
     color : black
}

Basically want to just change the color of the text disabled combo boxes - also to make the lower edge of the text visible (in webblue there is now lower edge)

Regards
K
Kamen Bundev
Telerik team
 answered on 17 May 2010
2 answers
162 views
HI anubody
  i'm new in asp.net ajax telerik tool
  so how to i know that tool ,
  any online book or pdf there means
  please tell me
Martin
Telerik team
 answered on 17 May 2010
2 answers
108 views
I have a RadGrid where I am handling the event InsertCommand and doing the data insertion through a call to a BLL method (so no datasource is bound to the grid) the problem is after the insertion teh grid stays in insert mode, i want it to go back to list mode?

This is what I have:

void grid_InsertCommand(object source, GridCommandEventArgs e) 
        { 
            GridEditableItem eeditedItem = e.Item as GridEditableItem; 
            Dictionary<string, Object> newnewValues = new Dictionary<string, object>(); 
            e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem); 
            bool success = new SRA.Utils.GenericCodeBLL(TableName, DataKeyName, EnabledKeyName).Insert(newValues); 
             
            
            if (success) 
            { 
                //Display feedback message here 
                
                grid.MasterTableView.Rebind(); 
            } 
} 

thanks


Luis Silva
Top achievements
Rank 1
 answered on 17 May 2010
4 answers
372 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
130 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
88 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
192 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
294 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
439 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?