Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
1.0K+ views
How do you set the Z-Index of a RadWindow or what is the Z-Index so that it is behind another element.?

Michael
Michael
Top achievements
Rank 1
 answered on 01 May 2013
5 answers
131 views
Hello Telerik team,

I have been struggling with one issue, how to declaratively localize PagerTextFormat through App_GlobalResources custom file. I have created Application.resx file from which I want to add text to PagerTextFormat.

Here is the current definition inside of MasterTableView, which works normally:
<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{4}Celkový počet záznamov: <b>{5}</b>" />
In English it means: Total records: 18

Now, I want to make it multilingual, so I tried to replace text with variable from my .resx file, something like this:
<PagerStyle Mode="NextPrevAndNumeric" ShowPagerText="true" PagerTextFormat="{4}<%$ Resources: Application, String1 %>{5}" />

The problem is that Radgrid doesn't show my text from variable String1, instead of full text, it shows just number 18.

Please help me to solve this issue. I don't want to use codebehind solution...

Thank you.

Best regards

Vasssek
Eyup
Telerik team
 answered on 01 May 2013
1 answer
120 views
hi all,

som im trying to do a grid view with hierarchical details, but having problems if i connect directlyu to DB no prob using sqldatasource, trhe problem begins when i do with a objectadatasource, i have exeptions and i doesnt work whant can i be doing wrong?
Martin
Telerik team
 answered on 01 May 2013
1 answer
78 views
Hi
After checking nodes I need to update a Grid. I do this by handeling the EntryAdded and EntryRemoved events. After handling those events, I call Rebind() on the grid. The problem is that when I am using "CheckChildNodes", the Rebind on the grid only fires the first time EntryAdded event is handled. After that, Rebind() is ignored.
How can I trigger the Rebind() event after all entries are added to the DropDownTree? All my code is serverside.

- Thorgeir
Peter Filipov
Telerik team
 answered on 01 May 2013
1 answer
148 views
Hi,

I have created a RadCombo control and binded some values to it. I want to add filter to that combobox and applied the filter value using Filter="Contains" property as seen in the code below. When I expect the values to be filtered, it does not. Please find the screenshot attached. 

btw, I have referenced the script resource assembly i.e. axd file in the web.config (included) and is there anything wrong in that file. 
Am I missing anything ? 

  
<form id="form1" runat="server">
   <div>
        
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1">
          
    </telerik:RadScriptManager>
    <table>
       <tr>
           <td><telerik:RadComboBox ID="RadComboBox1" runat="server" Width="186px"  AutoPostBack="true"  EnableLoadOnDemand = "true" Filter="Contains" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" Label="Country:" /></td>
           <td><telerik:RadComboBox ID="RadComboBox2" runat="server" Width="186px" AllowCustomText="true" Filter="Contains" Label="Province:" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" /></td>
       </tr>
        <tr>
           <td>Country : <asp:Label ID="lblCountry" runat="server" Text=""></asp:Label> </td>
           <td>Province :<asp:Label ID="lblProvince" runat="server" Text=""></asp:Label></td>
       </tr>
    </table>
     <asp:XmlDataSource runat="server" id="XmlDataSource1" XPath="Countries"
           DataFile="~/App_Data/CountryRegionMapping.xml"/>
   </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadComboBox1" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />
                </UpdatedControls>
            </telerik:AjaxSetting>           
        </AjaxSettings>        
       </telerik:RadAjaxManager>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
   </form>
<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
      <httpHandlers>
        <remove verb="*" path="*.asmx" />
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      </httpHandlers>
      <httpModules>
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </httpModules>
    </system.web>
    
   
</configuration>
Plamen
Telerik team
 answered on 01 May 2013
2 answers
760 views
How and where can you check a RadComboBox for a value? I am getting an error because I am trying to set the selected value of my RCB to a value in my grid that I use databinder to get at. If the value is not in the original dataset I bound to my RCB it errors out. What I want to do is when I open my custom edit form that has this RCB in it, check to see if the value from the grid exists in the available items of the RCB. I cannot add it as it is no longer a valid option but my client keeps it for historical records. I am calling the following code in the pageLoad method but it is not working as it seems as if the RCB data items are not available here.

    myDDL.DataTextField = ds.Tables[0].Columns["DATA"].ToString();
    myDDL.DataValueField = ds.Tables[0].Columns[0].ToString();
    myDDL.DataSource = ds.Tables[0];
 
    var myValue = String.Empty;
    var ddlValue = DataBinder.Eval(DataItem, "DATA");
    Session["ddlValue"] = ddlValue;
    myValue = Session["ddlValue"].ToString();
    
    if (DataItem != null)
    {
        if (myDDL.FindItemByValue(ddlValue.ToString()) == null)
        {
            myDDL.SelectedIndex = -1;
        }
        else
        {
            myDDL.SelectedValue = ddlValue.ToString();
        }
    }
    else
    {
        myDDL.SelectedValue = myValue;
    }
}
Plamen
Telerik team
 answered on 01 May 2013
5 answers
1.1K+ views
Hi,

I want to avoid double clicks on the Insert button as it cause duplicate entry.
I have checked in the InsertCommand event that the user clicked twice but if I cancel the event - none of the entry is saved to the DB.

How can I avoid this?
Kostadin
Telerik team
 answered on 01 May 2013
5 answers
53 views
How would you add to the QAT using XML and how you you add items from the Application Toolbar to your QAT?
Bozhidar
Telerik team
 answered on 01 May 2013
2 answers
97 views
There is an issue where the contents of the controls spill over the size of the window if it is being called for the first time (like an insert or update event). However every subsequent call the window seems to adjust to the perfect height. Any thoughts on how to solve this issue? 

<telerik:RadGrid ID="rgContacts" runat="server" AutoGenerateColumns="False" OnNeedDataSource="rgContacts_NeedDataSource" Skin="Silk"
    ShowHeader="false" GridLines="None" BorderStyle="Groove" BorderWidth="1px" Width="250px" BorderColor="#555555"
    AlternatingItemStyle-BackColor="White" BackColor="#bbeaf3">
    <MasterTableView DataKeyNames="contact_id" EditMode="PopUp">
    <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="Add a New Contact"/>
    <EditFormSettings PopUpSettings-Modal="true" UserControlName="controls/Contacts/CustomerContact.ascx" EditFormType="WebUserControl"  InsertCaption="Create New Contact" CaptionFormatString="Edit Contact" FormCaptionStyle-Font-Bold="true" FormCaptionStyle-Font-Size="X-Large" FormStyle-BackColor="#dedddc" />
Angel Petrov
Telerik team
 answered on 01 May 2013
3 answers
316 views

Hi,

My requirement is to export RadGrid data to excel when user clicks on button outside RadGrid.

The following are the customizations that are needed:

1) Save or Open dialogue box should show up for opening or saving excel file.
2) Add company logo to excel file at certain position. Like row1 column1 to row5 column5. Logo size (gif format) is
      always going to be same. Currently we are doing it by accessing worksheet and adding it.
3) we should be able to specify from where data should start showing up like row7..
4) We are hiding some columns in the grid. When exported, these shouldn't be exported.
5) Some rows in the grid are disabled. User can't click them. They shouldn't be exported.
6) Add a title and format it.
7) Format print options like margin etc..

I appreciate your help. Please let me know if there are any links about how to take care of it.

Thanks,
Prathiba.

Kostadin
Telerik team
 answered on 01 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?