Telerik Forums
Kendo UI for jQuery Forum
2 answers
809 views
Hi,

I have used KendoUI with jQuery and it works very well. Now I need to develop an application that will not use jQuery.

Can I work with kendoUI without jQuery. How can I do it ???

Thanks in advance
mvbaffa
Top achievements
Rank 1
 answered on 06 Jun 2012
0 answers
120 views
I have some splitters which remember state per user.

If I collapse a panel then expand it all works fine.

But if I collapse the panel, reload the page so that its initialised collapsed, then expand it, I am unable to resize it.

Reloading the page so it starts expanded and all is fine again.



  $("#main_wrap").kendoSplitter({
orientation: "horizontal",
panes: [
<? if ($_SESSION['horizontal'] <= 0){$sidebar_state = ", collapsed: true"; $_SESSION['horizontal'] = 100;} ?>
{ collapsible: true<?=$sidebar_state?>,  resizable:true,  size: "<?=$_SESSION['horizontal']?>px" },  
{ collapsible: false, resizable:true} 
]
        });

PPCnSEO
Top achievements
Rank 1
 asked on 06 Jun 2012
2 answers
144 views
Hi,
I have a problem with the chart component.
I have a wcf service for retrieving data for the kendo ui chart.
<script type="text/javascript">
       $(document).ready(function () {
           $("#chart").kendoChart({
               dataSource: {
                   transport: {
                       read: {
                           type:"post",
                           url:"http://localhost:1038/Services/ProductService.svc/jIlBazliAnaliz",
                           dataType: "json",
                           data: '{BasTar:"2011-01-01",SonTar:"2011-12-31"}'
                           }
                   }
               },
               seriesDefaults: {
                   type: "column"
               },
               series: [{
                   field: "Sayi",
                   name: "Sayi"
               }],
               categoryAxis: {
                   field: "IlAdi",
                   labels: {
                       rotation:-90
                   }
               }
           });
       });
 
   </script>

I just would like to transfer two parameters by using the line ;

 data: '{BasTar:"2011-01-01",SonTar:"2011-12-31"}'

and my service side is 
in IProductService.cs
[OperationContract]
        [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "jIlBazliAnaliz")]
        IList<ModelIlBazliAnaliz> jIlBazliAnaliz(DateTime BasTar, DateTime SonTar);
and in ProductService.svc.cs
 public IList<ModelIlBazliAnaliz> jIlBazliAnaliz(DateTime BasTar, DateTime SonTar)
        {
            IList<ModelIlBazliAnaliz> Iller=new List<ModelIlBazliAnaliz>();
            using (mxKalibrasyonEntities client = new mxKalibrasyonEntities())
            {
                var bak = client.kal_IlBazliAnaliz(BasTar, SonTar).ToList();
                foreach (var kalIlBazliAnalizResult in bak)
                {
                    Iller.Add(new ModelIlBazliAnaliz
                                  {
                                      Sayi = kalIlBazliAnalizResult.Sayi.Value,
                                      Oran = kalIlBazliAnalizResult.Oran.Value,
                                      IlAdi = kalIlBazliAnalizResult.IlAdi
                                  });
                }
                return Iller;
            }
        }

The issue is I am getting always null (0001-01-01) date value in the  ProductService.svc.cs .

If ı don't use any parameters, I mean with the

public IList<ModelIlBazliAnaliz> jIlBazliAnaliz() ;

without any parameters , my chart works great. But it is an obligation to have the chart filled for some time intervals. 


I wonder how can I send the BasTar and SonTar datetime parameters to the wcf service? I think this is possible.
Kind regards.
Inanc
inanc
Top achievements
Rank 1
 answered on 06 Jun 2012
0 answers
73 views
Why do we need grid for kendo UI and how to get and start kendo with grid?


thanks.
Parvathi
Parvathi
Top achievements
Rank 1
 asked on 06 Jun 2012
0 answers
105 views
i am not getting kendo effect while running the html page with kendo code in wamp server.why the tags are not supported in wamp?
and also kendo button event is not performing any action while running in google chrome.It would be helpful when anyone gives the solution..



Thanks,
Parvathi
Parvathi
Top achievements
Rank 1
 asked on 06 Jun 2012
8 answers
694 views
Hi,

We use jQuery very much, and rely on many of the features as well as plugins that make life easy.
One of the plugins we use a lot is livequery.  this plugin allows us to do modifications on elements that are being added to the DOM after the page was already loaded, by AJAX for instance.

Example code:
$('h1,h2,h2 a,h3,h5,h6:not(.fx-cufon)').livequery(function() {
        $(this).addClass('fx-cufon');
        Cufon.replace($(this), { fontFamily: 'Decker', hover:true });
    });

As I'm sure you can read yourself, this bit of code says "each time you find a new h1 tag which is added to the dom, and which does not yet have the classname fx-cufon assigned to it, add the class name (to indicate this element has been processed already), and replace the tag with its Cufon font.

This works really great, and I can recommend anyone doing so, as I never need to think about newly added items; in fact this enables me to write grid initialisation code just once, and initialise it everytime I load a <div> with a specifica class...

Now my question.  I noticed this was no longer working when we migrated from jQueryUI dialogs to the KendoUI Window widget.  Digging into the code, I noticed that your window put the page in an iFrame (??!!??) which in my opinion isn't a nice solution really, as that means that the code is NOT being added to the DOM.

I found a configuration "iframe" in the documentation which I set to false, but that test didn't being a solution that helped me out. (I still got iframes as a result...)


I'm sure I can work around this by loading the ajax content myself, adding it to a newly created div, and popup the window from that div, but I don't think that should be the way we should be adding.

Is there a reason why you use iframes?  It just doesn't make sense to me to be honest.
Neo Wong
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
786 views
I am try to bind data to a list view (http://demos.kendoui.com/web/listview/index.html) from result of asp.net mvc controller method.
What is the way we can attach the model data or Controller data to the kendo datasource?

Below code does not work.

--MVC Controller Method returning Products results set.
public ActionResult GetProducts()
{
----------
  return Json(Products, JsonRequestBehavior.AllowGet);
}

--Javascript to bind datasource
var dataSource = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: ('@Url.Action("GetProducts")'),
                            dataType: "jsonp"
                        }
                    },
                    pageSize: 12
                });
// Model View @model IEnumerable<Models.Product>
@{
    ViewBag.Title = "Index";
}

nachid
Top achievements
Rank 1
 answered on 05 Jun 2012
4 answers
186 views
I try to open my IE9 Developer Tools and my grid goes into edit mode instead!

Jerry T.
Top achievements
Rank 1
 answered on 05 Jun 2012
0 answers
195 views
Hi,
I have seen couple of examples related to the same functionality but didn't find a working solution.

I'm using WCF services, Html Pages with Kendo Library. Please share me some working example on how to add a handler / method in WCF service & use the same in client end.

Please share how to write a WCF operation contract for this. Quick reply is greatly appreciated !

$(document).ready(function () {
                    $("#files").kendoUpload({
                        async: {
                            saveUrl: "WCF URL",
                            autoUpload: true
                        }
                    });
                });

Thanks,
Balu D.
Balu
Top achievements
Rank 1
 asked on 05 Jun 2012
0 answers
168 views
Hi,

I have a issue in IE 8 with window ui , I am using window as modal and when I open its show me perfect only silver light object is not working with shadow.

you can see in attached image.
wajimam
Top achievements
Rank 1
 asked on 05 Jun 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?