Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
165 views
I have an issue with the raddatepicker when running in firefox. If the user enters an invalid date and tab out i pop up an invalid date message and set the focus back to the control

function

 

ShowError(sender, args) {

 

alert(

"Enter a Valid Date in MM/DD/YYYY or MM/DD/YY Format");

 

sender.focus();

}


when in firefox the cursor blinks in the text entry area but the user cannot enter anything without clicking in the box. This behavior does not appear with ie.
I want to have the same behavior with ff, help?
Daniel
Telerik team
 answered on 10 Feb 2010
1 answer
75 views
hi all,
  I created self refernceing heirarchy with edit functionality. When edit and update update functions work nicely for all levels. But after update i bind the grid again to sshow with all values. But in the first level / master table only came out from edit mode and bind. In the nested tables after pdate also exist in the edit mode itself. but new values updated successfulyl. Can i manually hard code to come out from edit mode ?

Radoslav
Telerik team
 answered on 10 Feb 2010
1 answer
68 views
I am new to telerik controls, i am having an issue with the filtering in the grid view.
I am using an MVP architecture were i am binding the a datatable to a radgrid in code behind .
I have set the gridviews allowfilterbycolumn set but still i am not able to filter.

Pls help me.


this is the UI look like

<telerik:RadGrid  ID="systemsRadGrid" AllowFilteringByColumn="True"  runat="server" Width="500" PageSize="10"
            AllowSorting="True" AllowMultiRowSelection="True" OnColumnCreated="RadGrid2_ColumnCreated"  AllowPaging="True" EnableLinqExpressions="false" ShowGroupPanel="True">
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
            <MasterTableView AllowFilteringByColumn="True" runat="server">
            
            </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                <Selecting AllowRowSelect="True"></Selecting>
                <Resizing AllowRowResize="True" AllowColumnResize="True"  EnableRealTimeResize="True"
                    ResizeGridOnColumnResize="False"></Resizing>
                    <Scrolling AllowScroll="false" />
                 </ClientSettings>
            <GroupingSettings ShowUnGroupButton="true"  />
        </telerik:RadGrid>



The code for binding is
 SettingsForBusiness obj1 = new SettingsForBusiness();
systemsRadGrid.DataSource = obj1.getSystemsGrid();
systemsRadGrid.DataBind();




please help meeee






Pavlina
Telerik team
 answered on 10 Feb 2010
1 answer
75 views
Hello,

As i have implemented Radschedualr in my project, and the project requirement indicates that Print appoint same as out look , in any Month / day / week view...

If you look the outlook, and go to calendar , click "File Menu", and see Print Preview, We want same look in this....

Please help me ASAP...

REgards
Samir
Peter
Telerik team
 answered on 10 Feb 2010
1 answer
128 views
How can I set the boundary of the RadMenu? 

Instead of detecting screen width, I would like for it to use the width of the menu itself.  For example, my menu is centered in the page and I want at least the last menu item to drop down and be right-aligned.  Please look at the menu on target.com as an example.


Peter
Telerik team
 answered on 10 Feb 2010
1 answer
291 views
Hi,
I have a repeater that shows product information including a picture for each product. If you click on the picture, it will display an enlarged image in a RadWindow. I just need to know how to pass an ID to the RadWindowManager to display the enlarged image of the picture that was clicked. I'm just harcoding an image right now but I need to make it dynamic.

Here is my code:
<telerik:RadCodeBlock id="RadCodeBlock1" runat="server">  
   <script type="text/javascript">     
     function ShowDialog()     
     {     
         window.radopen(null, "ShowImage");     
     }     
   </script>    
</telerik:RadCodeBlock> 
    
<telerik:RadWindowManager id="RadWindowManager1" style="z-index:7001" runat="server">  
  <Windows> 
    <telerik:RadWindow id="ShowImage" width="400" height="400" modal="true" navigateurl="imgPreview.aspx?img=~/images/Products/image1_large.png" runat="server"></telerik:RadWindow> 
  </Windows> 
</telerik:RadWindowManager>  

and here is the repeater...I'm just showing the image to keep it short.
<asp:Repeater ID="rptProducts" runat="server">  
    <ItemTemplate> 
    
      <div class="divProduct">  
        <div class="divImage">  
          <asp:Label ID="lblProductNumber" runat="server" Text=""></asp:Label><br /> 
          <asp:HyperLink ID="lnkImage" OnClick="ShowDialog()" runat="server">  
              <asp:Image ID="imgProduct" runat="server" />               
          </asp:HyperLink>   
        </div> 
     </ItemTemplate> 
</asp:Repeater> 
 

How can I pass information to the ShowDialog dynamically based on the image that was clicked?
Thanks
Georgi Tunev
Telerik team
 answered on 10 Feb 2010
3 answers
488 views
Hi Telerik team!

I dropped some telerik controls on my Masterpage like:

<telerik:RadComboBox ID="ddlLanguage" runat="server" AutoPostBack="True" >

next i added a radSkinManager like this:

<telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Telerik">
    </telerik:RadSkinManager>

This works well, and my combobox is well skinned, but i tried to add a simple asp:button in my masterpage (In order to change theming on the fly) like this:

  RadSkinManager1.Skin = "Forest"

But nothing happens . Any one got any idea's? thanks a lot
le N
Top achievements
Rank 1
 answered on 10 Feb 2010
4 answers
167 views
Hi,

I have a case where I dynamically create Docks in UserControl and then load the control into a page, which is a content page of a Master page. Attached is a screen-shot of the page (excluding the master parts). The selected RadPageView has a RadAjaxPanel that wraps all its content. After each + sign, I load a UserControl that contains one RadDockLayout,  one RadDockZone, and dynamic number of RadDocks. The docks are drag-and-drop enabled within their zone, using a grip as dock handle. The page works great when first loaded.

The problem comes when I update the content using RadAjaxPanel.ajaxRequest. On server-side I call the same function that generates the UserControls. Everything looks fine and the content is updated, except that the grip and drag-and-drop do not function at all (mouse over the grip does not even change the cursor to dragging mode). I tried RaisePostBackEvent and radAjaxPanel_AjaxRequest (separetaly) methods on server-side and both produce the same issue. I guess a specific script and css is missing.

Any help would be appreciated.

thanks.
eyal




Note: The js methods ajaxRequest and ajaxRequestWithTarget are erroneously typed in the documentation for RadAjaxPanel with a capital A.


eyal
Top achievements
Rank 1
 answered on 10 Feb 2010
1 answer
186 views
I've searched the forums and tried a few of the suggestions to fix the issue I'm having, but I'm not having any luck. I need for the RadDatePicker to look like a LinkButton, where it's just the Date (January 1, 2010) underlined and when clicked, shows the RadCalendar. I have that part working thanks to another forum post, but the width of the RadDatePicker is causing problems. The goal is to have something like:

January 1, 2010 to February 1, 2010

Both dates are RadDatePickers. However, I can't find a way to automatically set the width of the RadDatePicker, so it ends up looking like:

January 1, 2010                  to February 1, 2010

Hard-coding the width wouldn't seem to be a practical solution due to localization concerns. Any ideas? I've created a sample page that demonstrates the problem:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
 
<style type="text/css" media="all">
.RadInput_Default .riTextBox     
{       
   border: 0px solid orange !important;  /*changing the border to 1px will show all the extra whitespace/padding*/
   background: none transparent !important;    
   text-decoration: underline !important;
}
</style>
</head>
<body style="background-color: #cdcdcd">
    <form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />

<telerik:RadDatePicker id="RadDatePicker1" runat="server" Skin="Default" SelectedDate="2009-04-06">
<DateInput ID="DateInput1" runat="server" onclick="ToggleFirstPopup()" DateFormat="MMMM d, yyyy" />         
<DatePopupButton Visible="False" />    
</telerik:RadDatePicker>
&nbsp;<asp:Label runat="server" ID="lblTo" Text="To"></asp:Label>&nbsp;

<telerik:RadDatePicker id="RadDatePicker2" runat="server" Skin="Default" SelectedDate="2009-04-06">
<DateInput ID="DateInput2" runat="server" onclick="ToggleSecondPopup()" DateFormat="MMMM d, yyyy" />         
<DatePopupButton Visible="False" />    
</telerik:RadDatePicker>
<script type="text/javascript">
function ToggleFirstPopup()
{
$find("<%= RadDatePicker1.ClientID %>").showPopup();
}

function ToggleSecondPopup()
{
$find("<%= RadDatePicker2.ClientID %>").showPopup();
}

</script>
</form>
</body>

</html>

Thanks,

Tye
Dimo
Telerik team
 answered on 10 Feb 2010
8 answers
175 views
HI,
I'm using 5 RadComboBoxes with WebServices and it works fine. But sometimes the WebMethods are called two times (with exactly the same context value). Is this a normal behavior or am I doing something wrong? I would like to optimize the WebMethods as optimized as possible because it's making an sql select in an oracle db. This selects are very big and it spends some seconds to retrieve the results.

 

Thanks,
Andrea

All RadComboBoxes are build in this way:

                                                    <td style="width: 275px;">  
                                                        <telerik:RadComboBox ID="radComboBoxStr" runat="server" Width="250px" DropDownWidth="260px" 
                                                            AutoPostBack="true" MaxHeight="200px" EnableLoadOnDemand="true" MarkFirstMatch="false" 
                                                            ShowMoreResultsBox="true" OnSelectedIndexChanged="radComboBoxStr_SelectedIndexChanged" 
                                                            EnableVirtualScrolling="true" ChangeTextOnKeyBoardNavigation="false" OnClientItemsRequesting="OnClientItemsRequesting" 
                                                            OnClientItemsRequested="OnClientItemsRequested" OnClientDropDownOpening="OnClientDropDownOpening" 
                                                            EnableItemCaching="true" TabIndex="3">  
                                                            <HeaderTemplate> 
                                                                <table id="ResultsHeadersStr" style="width: 200px;">  
                                                                    <tr> 
                                                                        <td class="column" style="width: 200px;">  
                                                                            <b> 
                                                                                <asp:Literal ID="litStrasse" runat="server" Text="<%$ Resources:Language, combobox_Strasse %>"></asp:Literal></b>  
                                                                        </td> 
                                                                    </tr> 
                                                                </table> 
                                                            </HeaderTemplate> 
                                                            <WebServiceSettings Method="GetItemsStr" Path="ComboBoxWebService.asmx" /> 
                                                        </telerik:RadComboBox> 
                                                    </td> 
 

 

Simon
Telerik team
 answered on 10 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?