Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
1.1K+ views

Hi,

is there known problem of radbutton not showing image until hover is off with IE9?

I have RadButton in one page where is also RadEditor:

<telerik:RadButton ID="ibtnSave" runat="server" CausesValidation="false" Width="43px" Height="43px" Text="<%$ Resources:ibtnSave %>" UseSubmitBehavior="false">

<Image ImageUrl="images/save.gif" EnableImageButton="true" />

</telerik:RadButton>

When I go to the page the button is there but the image is not showing. When you go over the button with mouse and go off then image turns visible.

Matt
Top achievements
Rank 1
 answered on 15 Apr 2013
2 answers
56 views

Only the 1st page has any rows, so what am I missing?  Here's the code:

<telerik:RadGrid ID="RadGridHistPats" runat="server" AutoGenerateColumns="False"
Skin="Outlook" AllowPaging="true" PageSize="10">
<MasterTableView >
<Columns>
<telerik:GridBoundColumn DataField="PatientID"
HeaderText="PatientID" UniqueName="PatientID">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        DataTable dt = new DataTable();
        dt.Columns.Add("PatientID");
        for (int iCount = 0; iCount < 200; iCount++)
        {
            DataRow dr = dt.NewRow();
            dr["PatientID"] = iCount.ToString();
            dt.Rows.Add(dr);
        }
        RadGridHistPats.DataSource = dt;
        RadGridHistPats.DataBind();
    }
}


Scott
Top achievements
Rank 1
 answered on 15 Apr 2013
2 answers
127 views
I am using a RadTabScript in a .NET master page.  I have javascript functions defined that help track whether any changes have been made on pages inheriting the master page.  (i.e. a version of the "is dirty" algorithm)  It works save for 1 aspect; when I click on another child tab (when a tab has children), there is no change to that child tab.  The child tab's header is select, but I'm still looking at the original child tab.

Not all tabs have child tabs so whatever I come up with has to detect dynamically whether there are child tabs and which child tab has been clicked on.

Here is the javascript I have so far.  In the code-behind of each page, I've created the appropriate "onclick"/"onchange" Attribute calling the appropriate function.  I've noted where I'm uncertain what to do with copious question marks.  I've tried using get_selectedTab() on the resulting get_tabs list.  I've tried get_tab on that list trying to use selectedIndex on the sub tab list and the tab from get_tab.  Something always errs out.

<script language="javascript" type="text/javascript">
    var isTabClicked = "false";

    function OnClientTabSelecting(sender, args) {
        if (isTabClicked == "false") {
            //cancel the action
            args.set_cancel(true);

            //get the tab which is clicked
            var tab = args.get_tab();
            var sub_tabs = tab.get_tabs();
            if (sub_tabs != null) {
                //                ????????
                }
            }

            //check to see if a change has been logged
            var sChangedHF = document.getElementById('<%=ChangedHiddenField.ClientID%>');
            if (sChangedHF.value == "True") {
                if (confirm('You have unsaved changes on this page.  Continue without saving?')) {
                    isTabClicked = "true";
                    tab.click();
                }
            }
            else {
                isTabClicked = "true";
                tab.click();
            }
        }
    }
    function OnClientTabSelected() {
        //reset the isTabClicked variable
        isTabClicked = "false";
    }
    function confirmChange() {
        var sChangedHF = document.getElementById('<%=ChangedHiddenField.ClientID%>');
        sChangedHF.value = "True";
    }
    function resetChange() {
        var sChangedHF = document.getElementById('<%=ChangedHiddenField.ClientID%>');
        sChangedHF.value = "False";
    }
</script>

Here is the XML that references it.  (Obviously it has been scrubbed ... and by hand so please forgive any possible syntax errors.)

    <asp:HiddenField ID="ChangedHiddenField" runat="server" Value="False" />
confirmIgnoreChange();' EnableViewState="true" CausesValidation="false" runat="server">--%>
    <TRad:RadTabStrip id="CaseTabStrip" ClickSelectedTab="true" Skin="Sitefinity" OnClientTabSelecting="OnClientTabSelecting" OnClientTabSelected="OnClientTabSelected" EnableViewState="true" CausesValidation="false" runat="server">
        <Tabs>
            <TRad:RadTab Text="No Child 1" NavigateUrl="~/NoChild1.aspx" runat="server"></TRad:RadTab>
            <TRad:RadTab Text="Children 1" runat="server">
                <Tabs>
                    <TRad:RadTab Text="Child 1.1" NavigateUrl="~/Child1_1.aspx" runat="server"></TRad:RadTab>
                    <TRad:RadTab Text="Child 1.2" NavigateUrl="~/Child1_2.aspx" runat="server"></TRad:RadTab>
                    <TRad:RadTab Text="Child 1.3" NavigateUrl="~/Child1_3.aspx" runat="server"></TRad:RadTab>
                    <TRad:RadTab Text="Child 1.4" NavigateUrl="~/Child1_4.aspx" runat="server"></TRad:RadTab>
                    <TRad:RadTab Text="Child 1.5" NavigateUrl="~/Child1_5.aspx" runat="server"></TRad:RadTab>
                    <TRad:RadTab Text="Child 1.6" NavigateUrl="~/Child1_6.aspx" runat="server"></TRad:RadTab>
                </Tabs>
            </TRad:RadTab>
            <TRad:RadTab Text="Children 2" runat="server">
                <Tabs>
                    <TRad:RadTab Text="Child 2.1" NavigateUrl="~/Child2_1.aspx" runat="server"></TRad:RadTab>
                    <TRad:RadTab Text="Child 2.2" NavigateUrl="~/Child2_2.aspx" runat="server"></TRad:RadTab>
                </Tabs>
            </TRad:RadTab>
            <TRad:RadTab Text="No Child 2" NavigateUrl="~/NoChild2.aspx" runat="server"></TRad:RadTab>
            <TRad:RadTab Text="Children 3" runat="server">
                <Tabs>
                    <TRad:RadTab Text="Child 3.1" NavigateUrl="~/Child3_1.aspx" runat="server"></TRad:RadTab>
                    <TRad:RadTab Text="Child 3.2" NavigateUrl="~/Child3_2.aspx" runat="server"></TRad:RadTab>
                </Tabs>
            </TRad:RadTab>
            <TRad:RadTab Text="No Child 3" NavigateUrl="~/NoChild3.aspx" runat="server"></TRad:RadTab>
        </Tabs>
    </TRad:RadTabStrip>

If you need any more information to help me with this please do not hesitate to ask.  It is a high priority for me but I can move onto something else for now.

Thanks.
Nencho
Telerik team
 answered on 15 Apr 2013
1 answer
76 views
Here the online solutions depending drop down not vice versa. I have there drop down , data populate using wcf service. Please consider my scenario 
Step 1 : i am requesting first drop downs  values ( OnClientItemsRequesting="OnClientItemsRequesting" ) i am getting 500 records.
    function OnClientItemsRequesting(sender, e) {
        var context = e.get_context();
        context["UpdateKeys"] = UpdateKeys();// thjis function give 3 dropdown selected value
    }

Step 2: I am requesting second drop downs values now i am getting 400 records ( these 400 records are depending values on first drop down )
Step 3: I am requesting third drop downs values now i am getting 300 records ( these 400 records are depending values on first & second drop downs )
Step 4: Now i am again requesting First drop down values . This time i need to get only 50(which are depending on 2&3 drop downs). i am update getting 50 records when i am start type on drop down text box.
                            But i need to update when i open drop down. Here have client event OnClientDropDownOpening or OnClientDropDownOpened. But this event doesn't have e.get_context(); and all auto wcf calling like OnClientItemsRequesting event.
<telerik:RadComboBox runat="server" ID="dropdown1" CloseDropDownOnBlur="true" EnableAjaxSkinRendering="true"
        EnableTextSelection="true" ShowWhileLoading="true" EnableLoadOnDemand="true"
       OnClientItemsRequesting="OnClientItemsRequesting"
        ShowMoreResultsBox="true" MinFilterLength="3" EnableVirtualScrolling="true" EmptyMessage="Type refresh values..."
        Width="380" Height="250">
        <WebServiceSettings Path="/Services/service.svc" Method="FillFristDrop" />
    </telerik:RadComboBox>
     <telerik:RadComboBox runat="server" ID="dropdown2" CloseDropDownOnBlur="true" EnableAjaxSkinRendering="true"
        EnableTextSelection="true" ShowWhileLoading="true" EnableLoadOnDemand="true"
       OnClientItemsRequesting="OnClientItemsRequesting"
        ShowMoreResultsBox="true" MinFilterLength="3" EnableVirtualScrolling="true" EmptyMessage="Type refresh values..."
        Width="380" Height="250">
        <WebServiceSettings Path="/Services/service.svc" Method="FillSecondDrop" />
    </telerik:RadComboBox>
     <telerik:RadComboBox runat="server" ID="dropdown3" CloseDropDownOnBlur="true" EnableAjaxSkinRendering="true"
        EnableTextSelection="true" ShowWhileLoading="true" EnableLoadOnDemand="true"
       OnClientItemsRequesting="OnClientItemsRequesting"
        ShowMoreResultsBox="true" MinFilterLength="3" EnableVirtualScrolling="true" EmptyMessage="Type refresh values..."
        Width="380" Height="250">
        <WebServiceSettings Path="/Services/service.svc" Method="FillThirdDrop" />
    </telerik:RadComboBox>
  
  
<script language="javascript" type="text/javascript">
    function OnClientItemsRequesting(sender, e) {
        var context = e.get_context();
        context["UpdateKeys"] = UpdateKeys();
    }
    function UpdateKeys() {
       return values // return remaing 2 dropdown selected value
    }
</script>
Hristo Valyavicharski
Telerik team
 answered on 15 Apr 2013
1 answer
122 views
Hy, i have:
Page.aspx--> UC_.ascx --> UC_TelerikEditor.ascx
UC_Editor.ascx:
<asp:MultiView ID="MLVeditor" runat="server" ActiveViewIndex="0">
    <asp:View ID="VIWnone" runat="server">
     
    </asp:View>
    <asp:View ID="VIWtextareaEditor" runat="server">
        <CTRL:TextareaEditor id="CTRLtextarea" runat="server"></CTRL:TextareaEditor>
    </asp:View>
    <asp:View ID="VIWliteEditor" runat="server">
        <CTRL:LiteEditor id="CTRLliteEditor" runat="server"></CTRL:LiteEditor>
    </asp:View>
    <asp:View ID="VIWtelerikEditor" runat="server">
        <CTRL:TelerikEditor id="CTRLtelerikEditor" runat="server"></CTRL:TelerikEditor>
    </asp:View>
</asp:MultiView>

UC_TelerikEditor.ascx:
<telerik:radeditor ID="RDEtelerik" runat="server" Visible="true" Width="800px" Height="200px">
 
</telerik:radeditor>

And result is:
<div id="ctl00_CPHservice_CTRLeditorQ_CTRLtelerikEditor_RDEtelerik" style="height:200px;width:800px;">
	<!-- 2013.1.403.35 -->
</div>

UC_Editor display specific view for desired editor... if i wrote:

<asp:MultiView ID="MLVeditor" runat="server" ActiveViewIndex="0">
    <asp:View ID="VIWnone" runat="server">
     
    </asp:View>
    <asp:View ID="VIWtextareaEditor" runat="server">
        <CTRL:TextareaEditor id="CTRLtextarea" runat="server"></CTRL:TextareaEditor>
    </asp:View>
    <asp:View ID="VIWliteEditor" runat="server">
        <CTRL:LiteEditor id="CTRLliteEditor" runat="server"></CTRL:LiteEditor>
    </asp:View>
    <asp:View ID="VIWtinyEditor" runat="server">
         <CTRL:TinyEditor id="CTRLtinyEditor" runat="server"></CTRL:TinyEditor>
    </asp:View>
    <asp:View ID="VIWtelerikEditor" runat="server">
            <telerik:radeditor ID="Radeditor1" runat="server" Visible="true" Width="800px" Height="450">
    </telerik:radeditor>
    </asp:View>
</asp:MultiView>

i can see editor render... any idea ??
Rumen
Telerik team
 answered on 15 Apr 2013
1 answer
51 views
Very disappointed to see the Simple Skin being retired.  We need more basic, "non busy" skins.  The newer skins (like Glow and Silk) have their place but the sizing throws off most designs not built around them.  The simple skin provided a clean, basic option that fits in most designs (even more than the Default skin) and w/o it I fear for an increased need for custom skins (which are complicated by my need to use CDNs for all style sheets.)

I was hoping for more options around simple skins - not the loss of the only one out there.  I realize its likely too late to save "Simple" - but please consider the need for "business-like" skins in the future.
(Metro is close - but is tied to a specific color scheme - and lacks in contrast in some important areas - like Grid header items.)

Thanks,
Bill
Ivan Zhekov
Telerik team
 answered on 15 Apr 2013
12 answers
763 views
Hi ,

 I have a telerikgrid inside that i have a
  <telerik:GridDropDownColumn  DropDownControlType="RadComboBox" HeaderText="Expiration Units" DataField="qual_req_units"
                                SortExpression="qual_req_units" />

OnItemDataBound and when it is in the edit mode i bind the combobox with the values.

OnItemCreated i tried to display the value from that is stored in the db. 
 GridDataItem item = (GridDataItem)e.Item;
 DataRowView drv = (DataRowView)e.Item.DataItem;
 item["qual_req_units"].Text = drv.Row["qual_req_units"].ToString();

Still it doesn't show any value in the view mode. In edit mode it shows the radcombo box's correctly. But even when select and update it doesn't show any value.

Please let me know what i need to do to display the value in the view mode.


Thanks,
Nirmala Kalakonda
Kenneth
Top achievements
Rank 1
 answered on 15 Apr 2013
1 answer
84 views
Is it possible to make the ImageManager Viewpath an absolute url from another website?
Vessy
Telerik team
 answered on 15 Apr 2013
5 answers
263 views

Hi Telerik,

 

We have problem with RadGrid localization. Our web page (which contains the RadGrid) is localized by local resources using the functionality „Generate Local Resource“. Applying such function adds the meta information into the RadGrid. Thus, here is the problem. The RadGrid doesn’t work correctly with those meta information. So, when the AJAX is used the RadGrid doesn’t load the data, or more exactly in other words:  the “NeedDataSource” event is not fired and therefore the RadGridData_NeedDataSource handler is not called.

 

Here is the code snippet of our implementation:

 

 

        protected void Page_Load(object sender, EventArgs e)

        {

             RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(RadGridData, RadGridData, RadAjaxLoadingPanel);

 

            if (IsPostBack == false)

                   RadGridData.Rebind();

         }

 

        protected void RadGridData_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)

        {

            DataTable  dataTable = GetObjectData();

            RadGridData.DataSource = dataTable;

        }

If the meta information are deleted, the RadGrid works normally again. The other telerik controls are localized as well, and they’re working normally. If we keep at least one meta information at some place, the problem appears again. 

We found an example of using Global resources for telerik controls localization on your websites. We’ve tried it, however it didn’t make desired effect. We’ve copied the file RadGrid.Main. sk-SK.resx into the App_GlobalResources folder. Although the entire page is localized, the RadGrid is not. In addition, these settings is not working although the property (Culture = "sk-SK") is set directly.

 

Is there any way to perform mentioned localization using the  ‘local resources‘ approach?

Thank you very much for your advice.

 

Kind regards,

SCT

Pavlina
Telerik team
 answered on 15 Apr 2013
3 answers
133 views
A client wants a grid where only some of the rows can be dragged around and re-ordered.  Is it possible to present the drag bar only on some rows in the table but not others?  If so, can you point me towards the area of the documentation for this?  Thank you.
Jayesh Goyani
Top achievements
Rank 2
 answered on 15 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?