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

I am working on telerik. In which i have facilitate with virtual loading. And I am having nearly 800 data. I have given the page size as 35. I fell when ever the grid is getting load first time grid is showing with 9 data, but in one second the grid will come in its original size. I want when the grid get load first time, that time itself it should load in original size. Let me know whether this is possible or not. Can anybody help me on this....???

Regards:
Vimal Kumar Srivastava
Madhepura, Bihar
Email Id: vimaltech04@gmail.com
 
senthil
Top achievements
Rank 1
 answered on 06 Apr 2009
1 answer
53 views
Hi,

There is an example for Triggering an AJAX call outside of the grid

Can I do this on an expanded table within hierarchy while preserving the state of the hierarchy? Any tips?

Thanks.
Georgi Krustev
Telerik team
 answered on 06 Apr 2009
2 answers
85 views

Hi All,

I am stuck with a problem in RadEditor and this is urgent.

I have used HyperlinkManager in RadEditor.
Is there a way to customize it, so that i can remove the apply-css option?

My problem is that it is fetching all the css-classes from the included css file, and
a css class like the one below is causing javascript error within the rad-editors javascript.

 

*

html iframe.loader-fix

 

 

 

{

 

position: absolute;

 

 

top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ?

 

 

 

 

documentElement.scrollTop+((documentElement.clientHeight-this.clientHeight)/2 )

 

 

 

 

: document.body.scrollTop+((document.body.clientHeight-this.clientHeight)/2));

 

}

Any help is greatly appreciated. I am not getting any help related to this in the forums/documentation.

Thank & Regards,
Sachin

Sachin
Top achievements
Rank 1
 answered on 06 Apr 2009
1 answer
167 views

----------my aspx page------------------------------------------------------------------------
<%

@ Register TagPrefix="test" TagName="FolderExplorer" Src="~/Controls/SingleLevel.ascx" %>
<body>
......etc
<
test:FolderExplorer ID="folderExplorer" runat="server" />
</body>
--------------------------------------------------------------------------------------------------

---------SingleLevel.ascx----------------------------------------------------------------------
 <telerik:RadContextMenu ID="folderContextMenu" runat="server" MaxDataBindDepth="3">
<Targets>
<telerik:ContextMenuControlTarget ControlID="folderPanelBar" />
</Targets>
<CollapseAnimation Duration="200" Type="OutQuint" />
<Items>
..
</Items>
</t
elerik:RadContextMenu>
----------------------------------------------------------------------------------------------------
Inside SingleLevel.ascx, I have Teleric component with id called "folderContextMenu".

From my asp.net page using client side, I am able to find the component but it does not have all of the function that Telerik provided. I am clueless...any ideas?

var
Folders = <%=((RadContextMenu) folderExplorer.FindControl("folderContextMenu")).ClientID %>;
but Folders does not have any Telerik methods??

Thanks for any feedbacks!

Genady Sergeev
Telerik team
 answered on 06 Apr 2009
1 answer
154 views
I have an AJAX form, one will let user type their input. If user click "Send" button, a modal-box will appear as so user can confirm their input. I use RadToolTip to solve the problem. But after user click "Send" button, the tooltip apear without any information in it (which has been done in the button click Event).

Any suggestion? Here is my code:
THE FORM: 
 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
<asp:UpdatePanel ID="UpdatePanel2" runat="server"
                        <ContentTemplate> 
<telerik:RadTextBox ID="txtInput" runat="server"></telerik:RadTextBox><br /> 
<asp:Button ID="bttnSend" runat="server" Onclick="bttnSend_Click"></asp:Button ><br /> 
</ContentTemplate> 
                        <Triggers> 
                        <asp:AsyncPostBackTrigger ControlID="bttnSend" EventName="Click" /> 
                        </Triggers> 
                    </asp:UpdatePanel> 
 
THE TOOLTIP: 
 
<telerik:RadToolTip ID="pAttack" runat="server" ShowEvent="OnClick" Skin="Office2007" 
        TargetControlID="bttnAttack" Position="Center" RelativeTo="BrowserWindow" Title="Tấn công" 
        Modal="True" ShowDelay="100" ShowCallout="False" ManualClose="true"
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"
            <ContentTemplate> 
<asp:Label ID="lblConfirm" runat="server"></asp:Label> 
 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </telerik:RadToolTip> 
 
SEND BUTTON ONCLICK EVENT: 
protected void bttnSupport_Click(object sender, EventArgs e) 
this. lblConfirm.Text = this. txtInput.Text; 

By the way, how did you make the Format Code Block? What RadControl are you using?
Svetlina Anati
Telerik team
 answered on 06 Apr 2009
1 answer
142 views
I resolved my original .FocusedDate issue- was trying to set it server side in RadDateInput _TextChanged event. Changed it to client side.

Is it possible to bold individual days within a month (not selecting them)?
The goal is to indicate which days of the months have appointments scheduled.
When the user changes months, I make a database query returning dates within the month that have appointments scheduled and need to bold/highlight those dates for the user.

Only method I have found is to use the SelectedDates collection, but when the user clicks on one of these dates it has the effect of 'un-selecting it'. Which leaves me with constantly adding/removing items from the collection within the serverside _SelectionChanged event.

Is there a better way to do this?


 

Shinu
Top achievements
Rank 2
 answered on 06 Apr 2009
10 answers
211 views
Hi

I am getting error in this internal code block of telerik Rad Schedular while loading the Schedular for the first time in Month View .

This error is coming in mouseover for the appointments.....


var

_168=this.getAppointmentDomElement(e.eventMapTarget);

var

_169=this.getAppointmentFromDomElement(_168);

var

_16a=(_169.get_allowDelete()!=null)?_169.get_allowDelete():this.get_allowDelete();

In the above code _169 is coming as Null..

Please help me out ..

For 2 days I am trying to overcome this but not able to do it..

Thanks
Archan

T. Tsonev
Telerik team
 answered on 06 Apr 2009
1 answer
59 views
Hey Folks,

After checking out the "Google Filtering" demo, and the accompanying article here http://www.telerik.com/support/kb/aspnet-ajax/grid/google-suggest-style-filtering-in-radgrid.aspx I set out to accomplish something similar. Everything worked well but I felt that there must be a better way than programatically swapping out the columns.

In my <Columns> Collection for the RadGrid I put the following:


    
    <Columns>
        <rg:TelerikGoogleFilterColumnNomenclature CurrentFilterFunction="Contains"  
            DataField="Nomenclature" FilterListOptions="VaryByDataType"
            ForceExtractValue="None"  HeaderText="Nomenclature" UniqueName="Nomenclature" >
        </rg:TelerikGoogleFilterColumnNomenclature>
        <rg:TelerikGoogleFilterColumnPartNumbers CurrentFilterFunction="Contains"
            DataField="PartNumber" FilterListOptions="VaryByDataType"
            ForceExtractValue="None" Groupable="False" HeaderText="PartNumber"
            ReadOnly="True" UniqueName="PartNumber">
        </rg:TelerikGoogleFilterColumnPartNumbers>
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Cost"
            DataType="System.Int32" FilterListOptions="VaryByDataType"
            ForceExtractValue="None" HeaderText="Cost" UniqueName="Cost" DataFormatString="{0:c}" >
        </telerik:GridBoundColumn>
...
...
...
</Columns>
And added an entry into web.config for the "rg" prefix like so:

 <add tagPrefix="rg" namespace="RadGrid" />


My Class file containing (straight from the article) the Filter Column Contained the following:

   public class TelerikGoogleFilterColumn : GridBoundColumn
    {

        //override the following to change path/method in a child

        public virtual string GetWebServicePath()
        {
            return  "./MyService.asmx";            
        }

        

        public virtual string GetWebServiceMethod()
        {
            return "SomeMethod";
        
        }



        protected override void SetupFilterControls(TableCell cell)
        {
            base.SetupFilterControls(cell);
            cell.Controls.RemoveAt(0);
            RadComboBox combo = new RadComboBox();
            combo.ID = ("RadComboBox1" + this.DataField);
            combo.ShowToggleImage = false;
            combo.Skin = "WebBlue";
            combo.EnableLoadOnDemand = true;
            combo.AutoPostBack = true;
            combo.MarkFirstMatch = false;
            combo.Height = Unit.Pixel(280);
            combo.Width = Unit.Pixel(300);
            //combo.ItemsRequested += new RadComboBoxItemsRequestedEventHandler(this.list_ItemsRequested);
            combo.SelectedIndexChanged += new Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventHandler(this.list_SelectedIndexChanged);
            //setup web service info here
            combo.WebServiceSettings.Path = GetWebServicePath();
            combo.WebServiceSettings.Method = GetWebServiceMethod();
            combo.ShowToggleImage = false;
            combo.NoWrap = true;
            cell.Controls.AddAt(0, combo);
            cell.Controls.RemoveAt(1);
        }
... etc

This works out as I simply override the method/path values for different columns and dont have to manipulate the grid at runtime.


Just thought it would be useful for others. Works ALOT simpler for me anyways :)  

















Yavor
Telerik team
 answered on 06 Apr 2009
1 answer
113 views
Hi,

with the selectedvalue property i can get the key of the row the user selected.
Is there some way of setting this value as well?

For example a grid with customers with paging enabled : The user clicks on a row to modify the customer. We redirect to a modify customer page and when the user is done on that page we go back to the page with customers.
We know the customers ID and using that i need to reposition the grid on the proper page again.

Does somebody have advice on what the best way is to do this?

Kind regards,
Marco van Kimmenade
Princy
Top achievements
Rank 2
 answered on 06 Apr 2009
6 answers
318 views
Hi,
Is there a way to pass parameters to the GetAppointments function in a custom DB provider.  I want to select the appointments based on criteria that is chosen by the user, and then update the schedule with appointments that match the criteria.  Is there another way to do this that I'm overlooking?  Basically, I don't want to select all appointments and then filter on the scheduling page, I want to filter the appointments that are selected from the database.

Thanks
T. Tsonev
Telerik team
 answered on 06 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?